#755·KAG

[Bug] [Module Name] Bug title schema配置成功后,任务工作流也没报错,但生成实体不成功

Author: duanlp555333Created Aug 11, 2026Updated Aug 16, 2026

Search before asking

  • I had searched in the issues and found no similar issues.

Operating system information

Linux

What happened

OpenSPG + KAG 的 Schema 加载、Prompt生成以及LLM调用链路均正常,问题并非Schema未传递给DeepSeek,而是KAG默认 knowledge_unit_extractor.py 中的 SCHEMA_DICT 仅包含部分英文类别映射,没有覆盖用户自定义中文Schema类型名称。导致LLM返回中文实体类别(如“人物”)后,KAG无法通过 get_stand_schema() 转换为OpenSPG真实类型 Person,最终造成实体无法按照Schema类型写入。补充中文到英文EntityType映射后,链路恢复正常。

How to reproduce

1、对schema进行自定义 2、选择非结构化文档进行知识抽取 3、任务执行成功后核查节点信息

Are you willing to submit PR?

  • Yes I am willing to submit a PR!