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

knowledge_metadata_model.py代码有笔误metadata #5147

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

knowledge_metadata_model.py代码有笔误metadata #5147

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

Comments

@yangyousan123
Copy link

问题描述 / Problem Description
knowledge_metadata_model.py代码有笔误

注意到 repr 方法中使用了 metadata 而不是 meta_data,这可能是笔误。为了保持一致性,建议修改为 self.meta_data。

def __repr__(self): return ( f"<SummaryChunk(id='{self.id}', kb_name='{self.kb_name}', summary_context='{self.summary_context}'," f" doc_ids='{self.doc_ids}', metadata='{self.metadata}')>" )

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

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

dosubot bot commented Dec 20, 2024

Hello @yangyousan123! I'm here to assist you with any bugs, questions, or contributions you might have. Let's tackle this issue together!

Yes, there is a typo in the __repr__ method of the SummaryChunk class in the knowledge_metadata_model.py file. The method uses metadata instead of meta_data. It should be changed to self.meta_data for consistency. Here is the corrected line:

return (
    f"<SummaryChunk(id='{self.id}', kb_name='{self.kb_name}', summary_context='{self.summary_context}',"
    f" doc_ids='{self.doc_ids}', meta_data='{self.meta_data}')>"
)

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