labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.51k stars 4.7k forks source link

ollama向量模型知识库上传数据一直卡在索引,docker日志报404 #1372

Closed zyc1128 closed 4 months ago

zyc1128 commented 5 months ago

例行检查

你的版本

问题描述, 日志截图 xinference没有此异常,已确定oneapi最新版本 复现步骤

预期结果

相关截图

c121914yu commented 5 months ago

ollama 配置问题吧,curl测试结果呢?

SkyWallker-Y commented 5 months ago

ollama 配置问题吧,curl测试结果呢?

我使用ollama 也遇到相同问题,能使用聊天,ollama连接无问题,但知识库上传数据一直卡在索引docker日志报404 Embedding Error ez [Error]: 404 404 page not found 2024-05-08 17:28:04 at eL.generate (/app/projects/app/.next/server/chunks/80555.js:21:70115) 2024-05-08 17:28:04 at af.makeStatusError (/app/projects/app/.next/server/chunks/80555.js:21:81687) 2024-05-08 17:28:04 at af.makeRequest (/app/projects/app/.next/server/chunks/80555.js:21:82610) 2024-05-08 17:28:04 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) 2024-05-08 17:28:04 at async c (/app/projects/app/.next/server/chunks/50444.js:30:1260) 2024-05-08 17:28:04 at async w (/app/projects/app/.next/server/chunks/50444.js:22:399) 2024-05-08 17:28:04 at async Promise.all (index 0) 2024-05-08 17:28:04 at async u (/app/projects/app/.next/server/chunks/16378.js:54:26810) 2024-05-08 17:28:04 at async y (/app/projects/app/.next/server/chunks/16378.js:56:1906) { 2024-05-08 17:28:04 status: 404, 2024-05-08 17:28:04 headers: { 2024-05-08 17:28:04 'content-length': '18', 2024-05-08 17:28:04 'content-type': 'text/plain', 2024-05-08 17:28:04 date: 'Wed, 08 May 2024 09:28:04 GMT' 2024-05-08 17:28:04 }, 2024-05-08 17:28:04 error: undefined, 2024-05-08 17:28:04 code: undefined, 2024-05-08 17:28:04 param: undefined, 2024-05-08 17:28:04 type: undefined 2024-05-08 17:28:04 } 2024-05-08 17:28:04 error => 404 404 page not found

c121914yu commented 5 months ago

404 = 不存在。 你说没问题,测试结果呢?

SkyWallker-Y commented 5 months ago

404 = 不存在。 你说没问题,测试结果呢?

找到原因了ollama embedding访问地址是 api/embeddings, 但是oneApi与fastgpt embedding默认访问地址是v1/embeddings不兼容只有手动指定地址 "vectorModels": [ { "model": "m3e-base:latest", "name": "m3e-base:latest", "avatar": "/imgs/model/openai.svg", "charsPointsPrice": 0, "defaultToken": 512, "maxToken": 8192, "weight": 100, "dbConfig": {}, "queryConfig": {}, "requestUrl":"http:host.docker.internal:11434/api/embeddings" },

chaoqunxie commented 4 months ago

应该是oneapi没有配置正确, 不能配置成自定义,应该按照如下配置 image