Fix: in case running KG repeatly. (#5538)

### What problem does this PR solve?

#5512

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu 2025-03-03 12:22:36 +08:00 committed by GitHub
parent 8b1a4365ed
commit 606ed0c8ab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,9 +382,9 @@ class DocumentService(CommonService):
def update_progress(cls):
MSG = {
"raptor": "Start RAPTOR (Recursive Abstractive Processing for Tree-Organized Retrieval).",
"graphrag": "Entities extraction progress",
"graph_resolution": "Start Graph Resolution",
"graph_community": "Start Graph Community Reports Generation"
"graphrag": "Entities",
"graph_resolution": "Resolution",
"graph_community": "Communities"
}
docs = cls.get_unfinished_docs()
for d in docs: