ragflow/graphrag
BUJIQI 627fd002ae
Update utils.py (#7091)
### What problem does this PR solve?

when there are multiple entities, the variable `v` may be a list, which
will lead to this error:
```
| File "/mnt/d/wrf/ragflow/ragflow/graphrag/utils.py", line 59, in replace_all
| result = result.replace(f"{{{k}}}", v)
| TypeError: replace() argument 2 must be str, not list
```
this pr assign this `v` to be a str

### 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):
2025-04-17 17:17:09 +08:00
..
general Fix:When parsing documents with graph, an error occurred:[ERROR][Exception]: 'method' (#6836) 2025-04-07 12:29:25 +08:00
light Optimize graphrag again (#6513) 2025-03-26 15:34:42 +08:00
__init__.py Cache the result from llm for graphrag and raptor (#4051) 2024-12-17 09:48:03 +08:00
entity_resolution.py fix: correct [AttributeError: 'set' object has no attribute 'nodes' T… (#6699) 2025-04-01 09:38:21 +08:00
entity_resolution_prompt.py Add graphrag (#1793) 2024-08-02 18:51:14 +08:00
query_analyze_prompt.py Light GraphRAG (#4585) 2025-01-22 19:43:14 +08:00
search.py Fix: float transfer exception. (#6197) 2025-03-18 11:13:44 +08:00
utils.py Update utils.py (#7091) 2025-04-17 17:17:09 +08:00