Replies: 9 comments 4 replies
-
我也遇到了这个问题,之前都正常,昨天重启服务报此错误 |
Beta Was this translation helpful? Give feedback.
-
我靠我也是,我上周用还好好的,昨天用就不行了,今天改了一天还是不行,我尝试了重新下载源码/重新创建虚拟环境/使用docker/修改嵌入模型的位置,都不行,你认为这个错是为啥呢,咱两一起解决呗~ |
Beta Was this translation helpful? Give feedback.
-
0.2.x 版本已经停止维护,推荐使用 0.3.x版,所有RAG功能都包含了。 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
我将要用的embed_model下载到langchain-chatchat目录下,同时将embed_model文件夹复制一份改名为None,配置文件写明embed_model的本地路径。以上操作后可以创建知识库和知识库问答,不过webui页面知识库上传后全是叉号,正常应该是对号 |
Beta Was this translation helpful? Give feedback.
-
咱两的问题好像不一样了,我后来发现连接hf.co是分词器那块的毛病,不碍事可以忽略,我的真正问题变成了上传文件后无法查看文件, 排查之后发现调用list_docs这个函数去获取切后文件的时候,没有返回正确的json, |
Beta Was this translation helpful? Give feedback.
-
0.2.x 版本已经停止维护。该 issue 移到讨论区,有需要的同学请移步。 |
Beta Was this translation helpful? Give feedback.
-
我尝试很多次,在线embedding模型都无法工作,有没有具体的解决办法 |
Beta Was this translation helpful? Give feedback.
-
我的在线模型也总是报错,有解决办法吗 |
Beta Was this translation helpful? Give feedback.
-
V0.2.10版本上传文件至faiss,无法使用本地嵌入模型,程序自动连接huggingface.co,内网环境无法访问,但仍然可以实现切分和读取文件,使用RapidOCRDocLoader读取文件后,报错
We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like None is not the path to a directory containing a file named config.json.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/transformers/installation#offline-mode'.
复现问题的步骤 / Steps to Reproduce
File "D:\Code\AIGC\Langchain-Chatchat-master\server\knowledge_base\kb_service\base.py", line 235, in list_docs
doc_with_id = DocumentWithVSId(**doc_info.dict(), id=x["id"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: server.knowledge_base.model.kb_document_model.DocumentWithVSId() got multiple values for keyword argument 'id'
File "D:\Code\AIGC\Langchain-Chatchat-master\webui_pages\knowledge_base\knowledge_base.py", line 329, in knowledge_base_page
data = [
~^^^^^^
TypeError: string indices must be integers, not 'str'
预期的结果 上传成功
实际结果
环境信息 / Environment Information
model_config.py设置为:
MODEL_ROOT_PATH = "D:/Code/AIGC/"
选用的 Embedding 名称
EMBEDDING_MODEL = "bge-base-zh-v1.5"
新建faiss向量库未出现任何错误,只有上传文件时连接huggingface.co了,不理解为什么
Beta Was this translation helpful? Give feedback.
All reactions