-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Enhance the triplets extraction in the knowledge graph by the batch size #2091
feat: Enhance the triplets extraction in the knowledge graph by the batch size #2091
Conversation
Co-authored-by: Appointat <appointat@shu.edu.cn>
Co-authored-by: Appointat <appointat@shu.edu.cn>
@Aries-ckt @fanzhidongyzby Could you please review it and add some tags? thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The read and write order of chunk_history in _graph_extractor
needs to be adjusted, otherwise it will lead to inconsistency between text block recall and serial semantics.
Co-authored-by: Appointat <appointat@shu.edu.cn>
Co-authored-by: Appointat <appointat@shu.edu.cn>
Co-authored-by: Appointat <appointat@shu.edu.cn>
…thod Co-authored-by: Appointat <appointat@shu.edu.cn>
Thank you for your comment, I fixed it just now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refine the code by following comments
…ySummaryKnowledgeGraph
…GraphStoreAdapter
…CommunitySummaryKnowledgeGraph
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
It calls the async function to accelerate the process of triplets extraction from the chunk text. The config can be set in the
.env
TRIPLET_EXTRACTION_BATCH_SIZE
(default to 20).How Has This Been Tested?
I have run the app server by set the value of TRIPLET_EXTRACTION_BATCH_SIZE differently. (1, 5, 100), and the running time varies.
Snapshots:
Checklist: