KAG
KAG copied to clipboard
[Bug] [STD] 对抽取的实体名称做标准化时报TypeError: string indices must be integers
Search before asking
- [x] I had searched in the issues and found no similar issues.
Operating system information
Linux
What happened
在知识抽取和问答解析过程中进行命名实体标准化时抛出如下图所示异常,在0.6和0.7版都有出现此问题:
How to reproduce
openie_llm: model: Qwen2.5-72B-Instruct,type: vllm std_prompt: default_std
Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
缺陷分析:调用方对入参数据结构没有统一,易抛异常 修复:要么统一,要么在该方法内部对多种结构做统一处理,以及增加异常处理