Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 7 tasks
zyc1128 opened this issue May 6, 2024 · 4 comments
Open
1 of 7 tasks
Labels
bug Something isn't working

Comments

@zyc1128
Copy link

zyc1128 commented May 6, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号:

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

预期结果

相关截图

@zyc1128 zyc1128 added the bug Something isn't working label May 6, 2024
@c121914yu
Copy link
Collaborator

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

@SkyWallker-Y
Copy link

SkyWallker-Y commented May 8, 2024

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
Copy link
Collaborator

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

@SkyWallker-Y
Copy link

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"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants