Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

知识库我已经更新好了,为什么报错 Exception occurred in knowledge query: 'NoneType' object has no attribute 'query' #207

Open
mymoonsoft opened this issue Dec 2, 2024 · 2 comments

Comments

@mymoonsoft
Copy link

我需要从知识库中查找关于预计负债核算错误的相关案例。这将帮助我理解常见的错误类型及其原因,从而更好地回答用户的问题。
Action: account_rule_knowledge
Action Input:

{
  "query_str": "预计负债 核算 错误 案例",
  "similarity_top_k": 5
}

Building prefix dict from the default dictionary ...
Loading model from cache C:\Users\Administrator\AppData\Local\Temp\jieba.cache
Loading model cost 0.352 seconds.
Prefix dict has been built successfully.
This is Query Result:
2024-12-02 18:29:46.384 | ERROR | [default] | agentuniverse.agent.action.knowledge.knowledge:query_knowledge:190 | Exception occurred in knowledge query: 'NoneType' object has no attribute 'query'
2024-12-02 18:29:46.384 | ERROR | [default] | agentuniverse.agent.action.knowledge.knowledge:query_knowledge:190 | Exception occurred in knowledge query: 'NoneType' object does not support the context manager protocol

@AniviaTn
Copy link
Collaborator

AniviaTn commented Dec 3, 2024

如果不是启动的web server可以检查下AgentUniverse.start()里面有没有带上core_mode=True的参数。
可以单独确定一下store对应的数据库是否有对应的collection和表,保证知识插入成功了。

@mymoonsoft
Copy link
Author

mymoonsoft commented Dec 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants