KAG icon indicating copy to clipboard operation
KAG copied to clipboard

[Bug] [STD] 对抽取的实体名称做标准化时报TypeError: string indices must be integers

Open unrealise opened this issue 8 months ago • 1 comments

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版都有出现此问题: Image

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!

unrealise avatar Apr 25 '25 06:04 unrealise

缺陷分析:调用方对入参数据结构没有统一,易抛异常 修复:要么统一,要么在该方法内部对多种结构做统一处理,以及增加异常处理

Image

unrealise avatar Apr 25 '25 06:04 unrealise