瀏覽代碼

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 <caiming@sict.ac.cn>
tags/v0.18.0
caiming100 7 月之前
父節點
當前提交
d64c6870bb
No account linked to committer's email address
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      graphrag/general/index.py

+ 2
- 2
graphrag/general/index.py 查看文件



subgraph = await generate_subgraph( subgraph = await generate_subgraph(
LightKGExt LightKGExt
if row["parser_config"]["graphrag"]["method"] != "general"
if row["kb_parser_config"]["graphrag"]["method"] != "general"
else GeneralKGExt, else GeneralKGExt,
tenant_id, tenant_id,
kb_id, kb_id,
doc_id, doc_id,
chunks, chunks,
language, language,
row["parser_config"]["graphrag"]["entity_types"],
row["kb_parser_config"]["graphrag"]["entity_types"],
chat_model, chat_model,
embedding_model, embedding_model,
callback, callback,

Loading…
取消
儲存