[fix]Update the knowledge base configuration to address the issue of not being able to change embeding_id when it is null

This commit is contained in:
lixiangcheng1
2025-12-29 16:16:16 +08:00
parent f5af5cc58d
commit adbba8773b
2 changed files with 4 additions and 2 deletions

View File

@@ -224,6 +224,7 @@ def parse_document(file_path: str, document_id: uuid.UUID):
async def _run(row: dict, document_ids: list[str], language: str, parser_config: dict, vector_service,
chat_model, embedding_model, callback, with_resolution: bool = True,
with_community: bool = True, ) -> dict:
await trio.sleep(5) # Delay for 10 seconds
nonlocal progress_msg # Declare the use of an external progress_msg variable
result = await run_graphrag_for_kb(
row=row,