chat-ollama icon indicating copy to clipboard operation
chat-ollama copied to clipboard

重启服务后,知识库加载不出来,新增知识库失败

Open moffefei opened this issue 10 months ago • 5 comments

Chroma getOrCreateCollection error: Error: TypeError: fetch failed image

我是本地环境除了docker安装了ollama外,还直接安装了ollama客户端

moffefei avatar Apr 21 '24 03:04 moffefei

方便提供一下服务端的报错吗?

satrong avatar Apr 21 '24 04:04 satrong

image

我这也是,提交pdf文件 创建知识库

shenshiguan avatar Apr 22 '24 07:04 shenshiguan

@sugarforever 你有空看下这个问题,我这边无法使用 openai

satrong avatar Apr 22 '24 08:04 satrong

方便提供一下服务端的报错吗? 补充信息:我在本地和docker各部署了ollama 刚又重试了一下,新增成功一个知识库 image 但,访问这个知识库时报错: 2024-04-22 23:19:22 chatollama-1 | User query: 什么是RAG 2024-04-22 23:19:27 chatollama-1 | [nuxt] [request error] [unhandled] [500] Chroma getOrCreateCollection error: Error: TypeError: fetch failed 2024-04-22 23:19:27 chatollama-1 | at Chroma.ensureCollection (./.output/server/node_modules/@langchain/community/dist/vectorstores/chroma.js:99:23) 2024-04-22 23:19:27 chatollama-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-04-22 23:19:27 chatollama-1 | at async Chroma.similaritySearchVectorWithScore (./.output/server/node_modules/@langchain/community/dist/vectorstores/chroma.js:187:28) 2024-04-22 23:19:27 chatollama-1 | at async Chroma.similaritySearch (./.output/server/node_modules/@langchain/core/dist/vectorstores.js:104:25) 2024-04-22 23:19:27 chatollama-1 | at async ParentDocumentRetriever._getRelevantDocuments (./.output/server/node_modules/langchain/dist/retrievers/parent_document.js:103:23) 2024-04-22 23:19:27 chatollama-1 | at async ParentDocumentRetriever.getRelevantDocuments (./.output/server/node_modules/@langchain/core/dist/retrievers/index.js:67:29) 2024-04-22 23:19:27 chatollama-1 | at async Object.handler (./.output/server/chunks/routes/api/models/index.post.mjs:72:27) 2024-04-22 23:19:27 chatollama-1 | at async Object.handler (./.output/server/chunks/runtime.mjs:2963:19) 2024-04-22 23:19:27 chatollama-1 | at async Server.toNodeHandle (./.output/server/chunks/runtime.mjs:3229:7) 2024-04-22 23:19:43 chatollama-1 | Ollama: { host: 'http://127.0.0.1:11434', username: null, password: null }

moffefei avatar Apr 22 '24 15:04 moffefei

Chroma getOrCreateCollection error: Error: TypeError: fetch failed image

我是本地环境除了docker安装了ollama外,还直接安装了ollama客户端

@shenshiguan @moffefei 这个getOrCreateCollection的错误是来自Chromadb。请确认有正常运行chromadb。我看你们给到的错误信息,应该是运行的开发服务器吧?如果没有安装运行Chromadb,请参考 https://github.com/sugarforever/chat-ollama?tab=readme-ov-file#use-with-nuxt-3-development-server 的第二步。

如果是用的代码仓库的docker-compose.yaml,那么chroma应该是以容器化的方式运行的。请确认容器正常启动。

sugarforever avatar Apr 23 '24 22:04 sugarforever

Chroma getOrCreateCollection error: Error: TypeError: fetch failed image 我是本地环境除了docker安装了ollama外,还直接安装了ollama客户端

@shenshiguan @moffefei 这个getOrCreateCollection的错误是来自Chromadb。请确认有正常运行chromadb。我看你们给到的错误信息,应该是运行的开发服务器吧?如果没有安装运行Chromadb,请参考 https://github.com/sugarforever/chat-ollama?tab=readme-ov-file#use-with-nuxt-3-development-server 的第二步。

如果是用的代码仓库的docker-compose.yaml,那么chroma应该是以容器化的方式运行的。请确认容器正常启动。

删除docker里面chroma和chatolllama服务重新安装后,解决了问题。应该是docker里安装的ollama服务和本地ollama服务起冲突了

moffefei avatar Apr 24 '24 15:04 moffefei