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

[BUG] knowledge_file_repository.py有笔误x.metadata #5149

Open
yangyousan123 opened this issue Dec 20, 2024 · 1 comment
Open

[BUG] knowledge_file_repository.py有笔误x.metadata #5149

yangyousan123 opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yangyousan123
Copy link

问题描述 / Problem Description
knowledge_file_repository.py有笔误,x.metadata 应该改为 x.meta_data 以保持属性名称的一致性。

return [{"id": x.doc_id, "metadata": x.metadata} for x in docs.all()]

附加信息 / Additional Information
Langchain-Chatchat-0.3.1.3\libs\chatchat-server\chatchat\server\db\repository\knowledge_metadata_repository.py

@yangyousan123 yangyousan123 added the bug Something isn't working label Dec 20, 2024
Copy link

dosubot bot commented Dec 20, 2024

In the knowledge_file_repository.py file, the attribute x.metadata should indeed be changed to x.meta_data to maintain consistency with the FileDocModel, which uses meta_data as the attribute name [1].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant