-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea179ce
commit 973a028
Showing
27 changed files
with
294 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# Copyright (c) 2024 Microsoft Corporation. | ||
# Licensed under the MIT License | ||
|
||
"""Command line interface for the fine_tune module.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
# Copyright (c) 2024 Microsoft Corporation. | ||
# Licensed under the MIT License | ||
|
||
from .entity_relationship import generate_entity_relationship_examples | ||
from .entity_types import generate_entity_types | ||
from .persona import generate_persona | ||
"""Prompt generation module.""" | ||
|
||
from .community_report_summarization import create_community_summarization_prompt | ||
from .community_reporter_role import generate_community_reporter_role | ||
from .defaults import MAX_TOKEN_COUNT | ||
from .domain import generate_domain | ||
from .entity_extraction_prompt import create_entity_extraction_prompt | ||
from .defaults import MAX_TOKEN_COUNT | ||
from .entity_relationship import generate_entity_relationship_examples | ||
from .entity_summarization_prompt import create_entity_summarization_prompt | ||
from .community_reporter_role import generate_community_reporter_role | ||
from .community_report_summarization import create_community_summarization_prompt | ||
|
||
from .entity_types import generate_entity_types | ||
from .persona import generate_persona | ||
|
||
__all__ = [ | ||
"generate_entity_relationship_examples", | ||
"generate_entity_types", | ||
"generate_persona", | ||
"generate_domain", | ||
"MAX_TOKEN_COUNT", | ||
"create_community_summarization_prompt", | ||
"create_entity_extraction_prompt", | ||
"create_entity_summarization_prompt", | ||
"generate_community_reporter_role", | ||
"MAX_TOKEN_COUNT", | ||
"generate_domain", | ||
"generate_entity_relationship_examples", | ||
"generate_entity_types", | ||
"generate_persona", | ||
] |
19 changes: 16 additions & 3 deletions
19
graphrag/fine_tune/generator/community_report_summarization.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.