Skip to content

Commit 99af1cb

Browse files
authored
Update license (infiniflow#2086)
Signed-off-by: Jin Hai <[email protected]>
1 parent 63d0b39 commit 99af1cb

13 files changed

+26
-149
lines changed

graphrag/claim_extractor.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)
196
"""
7+
208
import argparse
219
import json
2210
import logging

graphrag/claim_prompt.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)

graphrag/community_report_prompt.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)

graphrag/community_reports_extractor.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)

graphrag/description_summary.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)

graphrag/entity_embedding.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)

graphrag/entity_resolution.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
1617
import logging
1718
import re
1819
import traceback

graphrag/graph_extractor.py

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,10 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
153
"""
164
Reference:
175
- [graphrag](https://github.com/microsoft/graphrag)
186
"""
7+
198
import logging
209
import numbers
2110
import re

graphrag/graph_prompt.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)
196
"""
7+
208
GRAPH_EXTRACTION_PROMPT = """
219
-Goal-
2210
Given a text document that is potentially relevant to this activity and a list of entity types, identify all entities of those types from the text and all relationships among the identified entities.

graphrag/leiden.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
#
2-
# Copyright 2024 The InfiniFlow Authors. All Rights Reserved.
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
15-
#
1+
# Copyright (c) 2024 Microsoft Corporation.
2+
# Licensed under the MIT License
163
"""
174
Reference:
185
- [graphrag](https://github.com/microsoft/graphrag)

0 commit comments

Comments
 (0)