Comments (12)
能提问正常回答就是向量化了,否则后台会报错
from langchain-chatchat.
To address the issues you're facing with the Langchain-Chatchat application, here are focused solutions:
-
Adding Content to the Vector Knowledge Base Failing:
- Verify that all necessary models and modules, such as sentence-transformers and
modelscope
, are correctly installed and accessible. - A workaround mentioned in similar issues suggests commenting out lines 202 and 203 in
knowledge_base.py
. This might help but proceed with caution and consider the implications on your setup. - Use the
recreate_vector_store
endpoint after uploading your documents to ensure they are vectorized and recognized by the system.
- Verify that all necessary models and modules, such as sentence-transformers and
-
Issues Retrieving Uploaded Documents:
- Confirm that your documents are correctly uploaded by checking if the system recognizes the CSV file. The system should acknowledge the file's presence for it to be searchable.
- Review the logs for any errors during the document upload process to ensure there were no failures or issues that might prevent document retrieval.
- If retrieval issues persist, consider adjusting the
distance_strategy
toMAX_INNER_PRODUCT
as it resolved similar issues for other users.
These steps are derived from solutions to similar problems reported in the repository. If these do not resolve your issues, providing more details about the documents (format, size, content) and any specific error messages or logs could help further diagnose the problem.
Details
Sources
- [BUG] 上传文件后,知识库文件加载失败
- [BUG] 知识库上传csv没有进入向量库
- [BUG] 上传json/jsonl文件且向量化后,网页端看不到划分后的知识库并且模型找不到相应的检索知识库
- zhipu-api轻量版本,知识库问答报错‘未找到相关文档,该回答为大模型自身能力解答!’
- [BUG] 无法使用zhipu的在线embedding
- [BUG] v0.2.8 知识库上传文件会生成两份文件记录
- server/knowledge_base/kb_service/default_kb_service.py
- server/knowledge_base/kb_service/es_kb_service.py
- server/api.py
- server/chat/file_chat.py
- .gitmodules
- knowledge_base/samples/content/test_files/langchain-ChatGLM_closed.jsonl
- knowledge_base/samples/content/test_files/langchain-ChatGLM_open.jsonl
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.
from langchain-chatchat.
而且都启动和文档上传及添加向量数据库过程都没有报错
from langchain-chatchat.
能提问正常回答就是向量化了,否则后台会报错
不行,我也遇到同样问题了,回答知识库点开显示红色字体,未找到相关文档,该回答为大模型自身能力解答!
from langchain-chatchat.
楼主解决了吗,我也遇到这个问题了
from langchain-chatchat.
我也遇到了,0.2.10版本,上传后源文件和向量库都是x,这什么bug?
from langchain-chatchat.
我也遇到了,请问解决了吗
from langchain-chatchat.
我也遇到了 一点错误没有 就是找不到文档
from langchain-chatchat.
我这边也遇到相同的问题,可以试试把model_config中用的模型路径写完整就可以解决了。MODEL_ROOT_PATH这参数可能是有的地方没有自动拼接上,我还没来得及去逐行排查代码,你们遇到可以试试看。
from langchain-chatchat.
我这边也遇到相同的问题,可以试试把model_config中用的模型路径写完整就可以解决了。MODEL_ROOT_PATH这参数可能是有的地方没有自动拼接上,我还没来得及去逐行排查代码,你们遇到可以试试看。
model_config.py这个文件里面的模型路径绝对的相对的都能用,LLM问答里面没有问题,构建向量库也没有报错,就是知识库问答找不到相关文档,后台也没错误,成功加载向量库 麻了
from langchain-chatchat.
我这边也遇到相同的问题,可以试试把model_config中用的模型路径写完整就可以解决了。MODEL_ROOT_PATH这参数可能是有的地方没有自动拼接上,我还没来得及去逐行排查代码,你们遇到可以试试看。
model_config.py这个文件里面的模型路径绝对的相对的都能用,LLM问答里面没有问题,构建向量库也没有报错,就是知识库问答找不到相关文档,后台也没错误,成功加载向量库 麻了
问题解决了吗
from langchain-chatchat.
我这边也遇到相同的问题,可以试试把model_config中用的模型路径写完整就可以解决了。MODEL_ROOT_PATH这参数可能是有的地方没有自动拼接上,我还没来得及去逐行排查代码,你们遇到可以试试看。
model_config.py这个文件里面的模型路径绝对的相对的都能用,LLM问答里面没有问题,构建向量库也没有报错,就是知识库问答找不到相关文档,后台也没错误,成功加载向量库 麻了
问题解决了吗
哥们,问题解决了吗?
from langchain-chatchat.
Related Issues (20)
- AttributeError: 'NoneType' object has no attribute 'conjugate' HOT 2
- chatchat 未找到相关文档,该回答为大模型自身能力解答! HOT 1
- 知识库管理界面,对切片内容修改后只保存修改过的切片,其他切片不保存
- [BUG] Using the API to call the Embedding model of Aliyun Tongyi Qianwen, it is unable to perform knowledge base question answering. HOT 1
- 上传文件时一直卡在这里
- 'NoneType' object is not iterable
- 无
- [BUG] RemoteProtocolError: Caught exception: peer closed connection without sending complete message body (incomplete chunked read)
- [FEATURE] 知识库增加在线预览功能
- [FEATURE] 支持图片和表格输出渲染功能
- [FEATURE] 增加markdown公式渲染功能
- [FEATURE] 增加用户和管理员登录管理功能
- [FEATURE] 支持管理员后台统计功能 HOT 1
- 知识库加载doc文档出现问题 HOT 1
- 环境变量调整后,webui的python路径修改不成功
- chatglm3-6b cpu本地运行报错
- 未找到相关文档,该回答为大模型自身能力解答! HOT 12
- 求助! 求助! 求助! 为什么API里面没有 停止问答的的API HOT 1
- 知识库问答,Temperature 设置为0,模型回答还是会变
- 本地部署的 ChatGLM3-6B不使用提示词模板里面配置的信息(prompt_config.py)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain-chatchat.