KAG
KAG copied to clipboard
Medicine 例子prompt需要修改
Search before asking
- [x] I had searched in the issues and found no similar feature requirement.
Description
schema_free_extractor.py 处理LLM生成的key是name,而Medicine例子下所有prompt都是Entity,没有修改过来,导致NER为空,标准化也为空,SPO因为不太依赖于实体,不为空。可以参考kag/builder/prompt/medicine进行修改
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
遇到同样问题,具体代码在schema_free_extractor.py:146