소스 검색

Fix: KeyError: 'method' when build run_graphrag (#7899)

### What problem does this PR solve?
Close #7879
I checked the current master code, the kb_parser_config is join from
knowledge table, so I think should be some edge cases due to history
data

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.1
Stephen Hu 5 달 전
부모
커밋
a71376ad6a
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      graphrag/general/index.py

+ 1
- 1
graphrag/general/index.py 파일 보기

@@ -57,7 +57,7 @@ async def run_graphrag(

subgraph = await generate_subgraph(
LightKGExt
if row["kb_parser_config"]["graphrag"]["method"] != "general"
if "method" not in row["kb_parser_config"]["graphrag"] or row["kb_parser_config"]["graphrag"]["method"] != "general"
else GeneralKGExt,
tenant_id,
kb_id,

Loading…
취소
저장