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.
我使用产品模式传入手册中的示例文档,图存储也成功了,但提问时出现报错
执行失败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)
我使用产品模式传入手册中的示例文档,图存储也成功了,但提问时出现报错 执行失败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)