-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[Bug] #5495
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
I found a similar discussion that might be relevant to your issue: Embedding Error: Requested 9064 tokens instead of 8192 tokens, which is still open [1]. To configure a custom embedding model using Azure OpenAI in Lobe Chat, ensure that your environment variables are set correctly. Here are the key configurations you should verify:
If the error persists, you might want to enable debugging to capture more detailed information about the error. You can do this by setting the environment variable These steps should help you troubleshoot and resolve the embedding model configuration error. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
I have the exact same issue with Vercel-based deployment.
In addition, I have tried to test if AZURE_API_VERSION was the issue, since Azure models have different versions. It didn't turn out to be the problem. |
📦 Environment
Docker
📌 Version
v1.46.4
💻 Operating System
Windows
🌐 Browser
Chrome
🐛 Bug Description
I tried to configure the used embedding model to use my own azure-openai endpoint but I get an error.
I could not find any documentation about how to configure the custom embedding model and tried to do it based on the recent closed pull request.
In my region embedding-text-3-small is not available, so I am using embedding-text-3-large.
These are the relevant env variable settings:
This is the error I get:
embeddingChunks error { message: '{}', name: 'EmbeddingError' }
📷 Recurrence Steps
Setup lobe chat with docker compose and configure it with an env file with the settings from above.
🚦 Expected Behavior
The document embeddings should be calculated successfully.
📝 Additional Information
These are the console logs:
[+] Running 5/5
✔ Container lobe-network Created 0.0s
✔ Container lobe-minio Created 0.0s
✔ Container lobe-postgres Created 0.0s
✔ Container lobe-casdoor Created 0.0s
✔ Container lobe-chat Recreated 0.1s
Attaching to lobe-casdoor, lobe-chat, lobe-minio, lobe-network, lobe-postgres
lobe-minio | MinIO Object Storage Server
lobe-minio | Copyright: 2015-2025 MinIO, Inc.
lobe-minio | License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
lobe-minio | Version: RELEASE.2024-12-13T22-19-12Z (go1.23.4 linux/amd64)
lobe-minio |
lobe-minio | API: http://172.18.0.3:9000 http://127.0.0.1:9000
lobe-minio | WebUI: http://172.18.0.3:9001 http://127.0.0.1:9001
lobe-minio |
lobe-minio | Docs: https://docs.min.io
lobe-postgres |
lobe-postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
lobe-postgres |
lobe-minio | INFO:
lobe-minio | You are running an older version of MinIO released 4 days before the latest release
lobe-minio | Update: Run
mc admin update ALIAS
lobe-minio |
lobe-postgres | 2025-01-17 10:09:20.977 UTC [1] LOG: starting PostgreSQL 16.4 (Debian 16.4-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
lobe-minio |
lobe-postgres | 2025-01-17 10:09:20.977 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
lobe-postgres | 2025-01-17 10:09:20.977 UTC [1] LOG: listening on IPv6 address "::", port 5432
lobe-postgres | 2025-01-17 10:09:20.984 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
lobe-postgres | 2025-01-17 10:09:21.027 UTC [29] LOG: database system was shut down at 2025-01-17 10:09:05 UTC
lobe-postgres | 2025-01-17 10:09:21.229 UTC [1] LOG: database system is ready to accept connections
lobe-postgres | 2025-01-17 10:09:25.636 UTC [41] ERROR: database "casdoor" already exists
lobe-postgres | 2025-01-17 10:09:25.636 UTC [41] STATEMENT: CREATE DATABASE casdoor;
lobe-chat | 🌐 DNS Server: [ '127.0.0.11' ]
lobe-chat | -------------------------------------
lobe-chat | [Database] Start to migration...
lobe-chat | ✅ database migration pass.
lobe-chat | -------------------------------------
lobe-chat | ▲ Next.js 15.1.4
lobe-chat | - Local: http://localhost:3210
lobe-chat | - Network: http://0.0.0.0:3210
lobe-chat |
lobe-chat | ✓ Starting...
lobe-chat | ✓ Ready in 125ms
lobe-casdoor | 2025/01/17 10:09:28 Starting Radius server on 0.0.0.0:1812
lobe-casdoor | 2025/01/17 10:09:28 Listening on 0.0.0.0:389
lobe-casdoor | 2025/01/17 10:09:28.180 [I] http server Running on http://:8000
lobe-chat | {
lobe-chat | allowDangerousEmailAccountLinking: true,
lobe-chat | clientId: undefined,
lobe-chat | clientSecret: undefined,
lobe-chat | platformType: 'WebsiteApp',
lobe-chat | profile: [Function: profile]
lobe-chat | }
lobe-chat | (node:28) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.lobe-chat | (Use
node --trace-deprecation ...
to show where the warning was created)lobe-chat | {
lobe-chat | allowDangerousEmailAccountLinking: true,
lobe-chat | clientId: undefined,
lobe-chat | clientSecret: undefined,
lobe-chat | platformType: 'WebsiteApp',
lobe-chat | profile: [Function: profile]
lobe-chat | }
lobe-chat | 执行第 1 个任务
lobe-chat | 任务[1]: embeddings: 0.148ms
lobe-chat | embeddingChunks error { message: '{}', name: 'EmbeddingError' }
lobe-postgres | 2025-01-17 10:14:21.029 UTC [27] LOG: checkpoint starting: time
lobe-postgres | 2025-01-17 10:14:32.064 UTC [27] LOG: checkpoint complete: wrote 107 buffers (0.7%); 0 WAL file(s) added, 0 removed, 0 recycled; write=10.836 s, sync=0.100 s, total=11.036 s; sync files=80, longest=0.016 s, average=0.002 s; distance=412 kB, estimate=412 kB; lsn=0/2C95AA8, redo lsn=0/2C95A70
The text was updated successfully, but these errors were encountered: