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

law_knowledge.insert_knowledge( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'insert_knowledge' #203

Open
mymoonsoft opened this issue Dec 1, 2024 · 6 comments

Comments

@mymoonsoft
Copy link

No description provided.

@mymoonsoft
Copy link
Author

是不是我的数据库没有创建成功

@AniviaTn
Copy link
Collaborator

AniviaTn commented Dec 2, 2024

能麻烦提供下更详细的情况吗,比如运行的代码、知识库和store的yaml配置文件等。

@mymoonsoft
Copy link
Author

mymoonsoft commented Dec 2, 2024 via email

@AniviaTn
Copy link
Collaborator

AniviaTn commented Dec 2, 2024

你的knowledge的name是account_case_knowledge,但是你get的是account_rule_knowledge。

KnowledgeManager().get_instance_obj("account_rule_knowledge")

@mymoonsoft
Copy link
Author

mymoonsoft commented Dec 2, 2024 via email

@AniviaTn
Copy link
Collaborator

AniviaTn commented Dec 2, 2024

看上去像是chroma对应的数据库原本已经存了一个384维的向量,然后你现在配的dashscope生成的向量是1536维的所以存不进去。'../../DB/A_1101_chroma_store.db'确认下这个db是不是新创建的,不是的话可以删了重跑。chromadb的collection会在第一个向量插入后固定维度

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