From d64c6870bb47c1b4519f08acbf04001d2b64c5b8 Mon Sep 17 00:00:00 2001 From: caiming100 <365215504@qq.com> Date: Mon, 7 Apr 2025 12:29:25 +0800 Subject: [PATCH] Fix:When parsing documents with graph, an error occurred:[ERROR][Exception]: 'method' (#6836) [When parsing documents with graph, an error occurred:[ERROR][Exception]: 'method'] (https://github.com/infiniflow/ragflow/issues/6835) ### What problem does this PR solve? Close #6786 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): Co-authored-by: cm --- graphrag/general/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphrag/general/index.py b/graphrag/general/index.py index d4f5705f7..c9f654a8a 100644 --- a/graphrag/general/index.py +++ b/graphrag/general/index.py @@ -57,14 +57,14 @@ async def run_graphrag( subgraph = await generate_subgraph( LightKGExt - if row["parser_config"]["graphrag"]["method"] != "general" + if row["kb_parser_config"]["graphrag"]["method"] != "general" else GeneralKGExt, tenant_id, kb_id, doc_id, chunks, language, - row["parser_config"]["graphrag"]["entity_types"], + row["kb_parser_config"]["graphrag"]["entity_types"], chat_model, embedding_model, callback,