chatchat-space / Langchain-Chatchat

Langchain-Chatchat(原Langchain-ChatGLM)基于 Langchain 与 ChatGLM, Qwen 与 Llama 等语言模型的 RAG 与 Agent 应用 | Langchain-Chatchat (formerly langchain-ChatGLM), local knowledge based LLM (like ChatGLM, Qwen and Llama) RAG and Agent app with langchain
Apache License 2.0
31.59k stars 5.51k forks source link

0.2.10,知识库 #4015

Closed zmxccxy closed 3 months ago

zmxccxy commented 5 months ago
e500723f76702b8c5f5a173b1b0971c

在知识库加了一个文件,这两个位置,打的都是x,之前是打√的。这是什么问题?对知识库文档有不有影响?

dosubot[bot] commented 5 months ago

The change from check marks to "x" marks in your application's UI after adding a file to the knowledge base indicates a change in the document's status regarding its presence in the folder or database. This is controlled by the cell_renderer function, which renders "✓" for documents present (true) and "×" for those not present (false). This directly affects the document's functionality or accessibility within the application, depending on its expected presence for certain operations.

The application handles documents not present in the folder or database by providing functionality to delete such documents from the database if they are not found in the local folder, and vice versa. This ensures consistency and prevents accessibility issues for missing documents. The process of adding a document involves preparing the document, generating embeddings, assigning a unique ID, and adding the document to the ChromaDB collection. The UI is then updated to reflect the addition of the document to the knowledge base.

There are specific requirements or constraints for documents to be successfully added to the knowledge base, including file existence in the folder, inclusion in the vector store (database), file upload constraints, and document processing parameters. Failure to meet these requirements could result in an "x" mark in the UI, indicating issues with the document's addition or presence in the knowledge base.

This behavior is designed to maintain the integrity and reliability of the document management system, ensuring that only existing, consistent documents are accessible and managed by the application.

#### Details **Sources** - [[BUG] 知识库页面的表格出错](https://github.com/chatchat-space/Langchain-Chatchat/issues/2795) - [将文件添加至向量库没有报错,但知识库中源文件和向量库都显示x](https://github.com/chatchat-space/Langchain-Chatchat/issues/3428) - [[BUG] 访问知识库文件报错](https://github.com/chatchat-space/Langchain-Chatchat/issues/1962) - [webui_pages/knowledge_base/knowledge_base.py](https://github.com/chatchat-space/Langchain-Chatchat/blob/master/webui_pages/knowledge_base/knowledge_base.py) - [server/knowledge_base/kb_doc_api.py](https://github.com/chatchat-space/Langchain-Chatchat/blob/master/server/knowledge_base/kb_doc_api.py) - [server/knowledge_base/migrate.py](https://github.com/chatchat-space/Langchain-Chatchat/blob/master/server/knowledge_base/migrate.py) - [server/knowledge_base/kb_service/chromadb_kb_service.py](https://github.com/chatchat-space/Langchain-Chatchat/blob/master/server/knowledge_base/kb_service/chromadb_kb_service.py)
**About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.

zmxccxy commented 5 months ago

image 已经在磁盘了,但是源文件和向量库,还是打x。

oucyangshuai commented 5 months ago

这是个bug,我回退到上一个版本,先用着

ZG688 commented 4 months ago

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

zmxccxy commented 4 months ago

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

我的可以用

pyxiaoxiaobo commented 4 months ago

image image 我的也是 找不到文档

yanke901 commented 4 months ago

@oucyangshuai 请问一下是哪个日期地版本呢,这个×会影响向量库地使用么,谢谢!!

yanke901 commented 4 months ago

这是个bug,我回退到上一个版本,先用着

@oucyangshuai 请问一下是哪个日期地版本呢,这个×会影响向量库地使用么,谢谢!!

Alan-zhong commented 4 months ago

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

我的知识库问答也不行,请问解决了吗

Alan-zhong commented 4 months ago

我的知识库问答也不行,请问解决了吗

image image 我的也是 找不到文档

image image 我的也是 找不到文档

请问您解决了吗?我也遇到同样问题

pyxiaoxiaobo commented 4 months ago

没有 

Tale off @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年6月12日(星期三) 下午5:31 收件人: @.>; 抄送: "Tale @.>; @.>; 主题: Re: [chatchat-space/Langchain-Chatchat] 0.2.10,知识库 (Issue #4015)

我的知识库问答也不行,请问解决了吗

我的也是 找不到文档

我的也是 找不到文档

请问您解决了吗?我也遇到同样问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

liunux4odoo commented 4 months ago

该问题在0.3.x版已经修复: #4179 0.2.10版的可以自己把 webui_pages/knowledge_base.py config_aggrid 里面的 cell_render都去掉就行了。

pyxiaoxiaobo commented 4 months ago

依然匹配不到知识库,只是图表对了也没用

Tale off @.***

 

------------------ 原始邮件 ------------------ 发件人: "chatchat-space/Langchain-Chatchat" @.>; 发送时间: 2024年6月13日(星期四) 中午12:16 @.>; 抄送: "Tale @.**@.>; 主题: Re: [chatchat-space/Langchain-Chatchat] 0.2.10,知识库 (Issue #4015)

该问题在0.3.x版已经修复: #4179 0.2.10版的可以自己把 webui_pages/knowledge_base.py config_aggrid 里面的 cell_render都去掉就行了。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Alan-zhong commented 4 months ago

依然匹配不到知识库,只是图表对了也没用 Tale off @.   ------------------ 原始邮件 ------------------ 发件人: "chatchat-space/Langchain-Chatchat" @.>; 发送时间: 2024年6月13日(星期四) 中午12:16 @.>; 抄送: "Tale @*.**@*.>; 主题: Re: [chatchat-space/Langchain-Chatchat] 0.2.10,知识库 (Issue #4015) 该问题在0.3.x版已经修复: #4179 0.2.10版的可以自己把 webui_pages/knowledge_base.py config_aggrid 里面的 cell_render都去掉就行了。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.>

解决了不,解决了不

Alan-zhong commented 4 months ago

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

请问解决了吗

pyxiaoxiaobo commented 4 months ago

不能用不了  

Tale off @.***

 

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年6月17日(星期一) 中午11:07 收件人: @.>; 抄送: "Tale @.>; @.>; 主题: Re: [chatchat-space/Langchain-Chatchat] 0.2.10,知识库 (Issue #4015)

这个×可能是显示错误,你的知识库问答能用吗?我的不行,一直都是未找到相关文档

请问解决了吗

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

tankGe commented 3 months ago

knowledge_base.py中的204、205行注释掉就可以了

doc_details["in_folder"] = doc_details["in_folder"].replace(True, "✓").replace(False, "×")

doc_details["in_db"] = doc_details["in_db"].replace(True, "✓").replace(False, "×")