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.18k stars 5.44k forks source link

chatchat.init_database:worker:61 - 向量库 samples 加载失败。 #4610

Open sevenandseven opened 1 month ago

sevenandseven commented 1 month ago

你好,我先进行chatchat init,然后运行chatchat kb -r 出现以下错误:

2024-07-25 18:06:36.050 | INFO | chatchat.server.knowledge_base.kb_cache.faiss_cache:load_vector_store:109 - loading vector store in 'samples/vector_store/quentinz/bge-large-zh-v1.5' from disk. 2024-07-25 18:06:36.070 | ERROR | chatchat.server.knowledge_base.kb_cache.faiss_cache:load_vector_store:140 - Error raised by inference endpoint: HTTPConnectionPool(host='127.0.0.1', port=11434): Max retries exceeded with url: /api/embeddings (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f0945d1dd50>: Failed to establish a new connection: [Errno 111] Connection refused')) 2024-07-25 18:06:36.070 | ERROR | chatchat.init_database:worker:61 - 向量库 samples 加载失败。

以上问题怎么解决?

zqt996 commented 1 month ago

xif可用么

lhtpluto commented 1 month ago

xif可用么 llm没问题

但 2024-07-25 23:25:13,224 transformers.dynamic_module_utils 20594 INFO Patched resolve_trust_remote_code: (False, '/root/.xinference/cache/bge-base-zh-v1.5', True, False) {} 2024-07-25 23:25:13,227 transformers.modeling_utils 20594 INFO loading weights file /root/.xinference/cache/bge-base-zh-v1.5/pytorch_model.bin 2024-07-25 23:25:13,287 transformers.modeling_utils 20594 INFO All model checkpoint weights were used when initializing BertModel.

2024-07-25 23:25:13,287 transformers.modeling_utils 20594 INFO All the weights of BertModel were initialized from the model checkpoint at /root/.xinference/cache/bge-base-zh-v1.5. If your task is similar to the task the model of the checkpoint was trained on, you can already use BertModel for predictions without further training. 2024-07-25 23:25:13,297 transformers.dynamic_module_utils 20594 INFO Patched resolve_trust_remote_code: (False, '/root/.xinference/cache/bge-base-zh-v1.5', True, False) {}

sevenandseven commented 1 month ago

xif可用么

xif可用,但是还是报以上错误。

lhtpluto commented 1 month ago

感觉是没有从Xinference中读到运行的embedding 导致的

lhtpluto commented 1 month ago

xif可用么

xif可用,但是还是报以上错误。 默认选用的 Embedding 名称: bge-m3

用bge-m3后这步能过去,但仅限于这步,后面上传文件还会报错 File is not a zip file

coder-zc commented 1 month ago

小白这里蹲一个解决方案

pwlinsanity commented 1 month ago

试一下pip install xinference-client

lb17620075923 commented 1 month ago

解决了吗,我这边也是碰到这样的问题

Raymddup commented 4 weeks ago

蹲一下,Error raised by inference API HTTP code: 404 {"error":"model\"bge-large-zh-v1.5\" not found, try pulling it first"}, 也是向量数据库samples加载失败,求问怎么解决