### What problem does this PR solve?

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Kevin Hu
2025-07-01 14:05:18 +08:00
committed by GitHub
parent 103027580e
commit e3edcc3064
3 changed files with 8 additions and 3 deletions

View File

@ -57,7 +57,7 @@ async def run_graphrag(
subgraph = await generate_subgraph(
LightKGExt
if "method" not in row["kb_parser_config"]["graphrag"] or row["kb_parser_config"]["graphrag"]["method"] != "general"
if "method" not in row["kb_parser_config"].get("graphrag", {}) or row["kb_parser_config"]["graphrag"]["method"] != "general"
else GeneralKGExt,
tenant_id,
kb_id,