OpenSPG / KAG

KAG is a logical form-guided reasoning and retrieval framework based on OpenSPG engine and LLMs. It is used to build logical reasoning and factual Q&A solutions for professional domain knowledge bases. It can effectively overcome the shortcomings of the traditional RAG vector similarity calculation model.
https://spg.openkg.cn/en-US
Apache License 2.0
646 stars 49 forks source link

查询报错 #28

Closed kedaya0214 closed 2 weeks ago

kedaya0214 commented 2 weeks ago

我使用产品模式传入手册中的示例文档,图存储也成功了,但提问时出现报错 执行失败pemja.core.PythonException: <class 'AttributeError'>: 'NoneType' object has no attribute 'get' at /openspg_venv/lib/python3.8/site-packages/kag/solver/main_solver.invoke(main_solver.py:31) at /openspg_venv/lib/python3.8/site-packages/kag/solver/implementation/default_lf_planner.init(default_lf_planner.py:20) at /openspg_venv/lib/python3.8/site-packages/kag/interface/solver/lf_planner_abc.init(lf_planner_abc.py:15) at /openspg_venv/lib/python3.8/site-packages/kag/solver/common/base.init(base.py:114) at pemja.core.PythonInterpreter.invokeMethod(Native Method) at pemja.core.PythonInterpreter.invokeMethod(PythonInterpreter.java:118) at com.antgroup.openspgapp.core.reasoner.service.impl.TaskRunner$NlQueryTask.call(TaskRunner.java:143) at com.antgroup.openspgapp.core.reasoner.service.impl.TaskRunner$NlQueryTask.call(TaskRunner.java:122) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750)

xionghuaidong commented 2 weeks ago

I encountered the same problem. Could you share your solution to the problem?

xionghuaidong commented 2 weeks ago

I encountered the same problem. Could you share your solution to the problem?

Problem solved. We need to config the Prompt.

Product image

产品使用 image