[Bug] #6803
Replies: 10 comments
-
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Beta Was this translation helpful? Give feedback.
-
@xuwengen0909 你好!我是Dosu,我是一个可以帮助你解决错误、回答问题并成为贡献者的机器人。我在这里帮助你,等待人类维护者。 To configure the AI provider for embeddings in the lobe-chat application, you can specify a different embedding model by adding a line to your DEFAULT_FILES_CONFIG="embedding_model=openai/text-embedding-3-large" This configuration allows you to change the default embedding model used by the application. If you are experiencing To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
I found a similar discussion that might be relevant to your issue. The discussion titled "[Bug] 将.txt文件加入知识库进行分块向量化时,向量化失败" was resolved by correcting the format of the API proxy address [1]. For your specific issue, it seems like the vectorization process is failing due to a connection error (ECONNREFUSED) when trying to access the OpenAI API. You can configure the API proxy by setting the version: '3.8'
services:
lobe-chat:
image: lobehub/lobe-chat
container_name: lobe-chat
restart: always
ports:
- '3210:3210'
environment:
OPENAI_API_KEY: sk-xxxx
OPENAI_PROXY_URL: https://api-proxy.com/v1
ACCESS_CODE: lobe66 Make sure to replace To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
我不需要使用openi的embedding模型,我需要指定自定义的AI服务商的embedding模型,或者说是我自己的ollama 部署的embedding模型。 |
Beta Was this translation helpful? Give feedback.
-
I don't need to use openi's embedding model, I need to specify a custom AI service provider's embedding model, or my own ollama deployment embedding model. |
Beta Was this translation helpful? Give feedback.
-
@dosu |
Beta Was this translation helpful? Give feedback.
-
@dosu |
Beta Was this translation helpful? Give feedback.
-
我不需要使用openi的embedding模型,我需要指定自定义的AI服务商的embedding模型,或者说是我自己的ollama 部署的embedding模型。 |
Beta Was this translation helpful? Give feedback.
-
To specify a custom AI service provider's embedding model or integrate your own Ollama deployment in Lobe Chat, you can follow these steps:
By following these steps, you can configure Lobe Chat to use a custom AI service provider or your own Ollama deployment for embeddings. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
用oneapi中转一下或许是个好方法 |
Beta Was this translation helpful? Give feedback.
-
📦 部署环境
Docker
📦 部署模式
服务端模式(lobe-chat-database 镜像)
📌 软件版本
v1.68.7
💻 系统环境
Ubuntu
🌐 浏览器
Chrome
🐛 问题描述
在做文本上传后,做向量化操作报错,需要怎么配置,默认他使用了https://api.openai.com/v1/embeddings ,这个可以在哪里配置
[rewrite] /repos/kb_ezGV6zl1M1Q9 -> http://127.0.0.1:3210/zh-CN__0__light/repos/kb_ezGV6zl1M1Q9
[rewrite] /repos/kb_ezGV6zl1M1Q9 -> http://127.0.0.1:3210/zh-CN__0__light/repos/kb_ezGV6zl1M1Q9
[rewrite] /repos/kb_ezGV6zl1M1Q9 -> http://127.0.0.1:3210/zh-CN__0__light/repos/kb_ezGV6zl1M1Q9
[rewrite] /repos/kb_ezGV6zl1M1Q9 -> http://127.0.0.1:3210/zh-CN__0__light/repos/kb_ezGV6zl1M1Q9
run embedding task 1
run embedding task 2
run embedding task 3
[rewrite] /repos/kb_ezGV6zl1M1Q9 -> http://127.0.0.1:3210/zh-CN__0__light/repos/kb_ezGV6zl1M1Q9
[rewrite] /files -> http://127.0.0.1:3210/zh-CN__0__light/files
[rewrite] /discover -> http://127.0.0.1:3210/zh-CN__0__light/discover
[rewrite] /chat -> http://127.0.0.1:3210/zh-CN__0__light/chat
embeddingChunks error {
message: '{"endpoint":"https://api.openai.com/v1","error":{"message":"request to https://api.openai.com/v1/embeddings failed, reason: connect ECONNREFUSED 199.59.148.7:443","type":"system","errno":"ECONNREFUSED","code":"ECONNREFUSED"},"errorType":"ProviderBizError","provider":"openai"}',
name: 'EmbeddingError'
}
📷 复现步骤
No response
🚦 期望结果
No response
📝 补充信息
No response
Beta Was this translation helpful? Give feedback.
All reactions