Closed frost19k closed 3 months ago
What did you set as Max embedding chunk length
when configuring the connection?
1000
I don't understand, documents are chunked appropriately. This happens only with user query.
Same issue here. The problem is independent of the chosen embeddings model in lm studio (tested with the lm studio standard embedder nomic-embed-text-v1.5-GGUF and with the all-MiniLM-L6-v2). The user prompt is sent to the lm studio embedder in individual letters via POST each by each and not as a whole expression.
Thank you so much for fixing this so quickly. I've tried out the docker image and it works great. Although, I was wondering how long before this change is reflected in the Appimage?
@frost19k Thank you for pointing out this error!
As for desktop, we typically try to push at least a patch version per-week. Usually Wed/Thurs, any updates from master
since the preceding patch will appear in the next version.
Confirmed working on v1.5.2 ! Query is not sent to embedding endpoint as a single sequence.
How are you running AnythingLLM?
AnythingLLM desktop app
What happened?
Document embeddings are chunked properly, but user query embeddings are chunked per character resulting in useless embeddings - when using LM Studio as embedding provider. Default built-in embeddings work properly.
LM Studio Logs
```Bash [2024-04-29 22:21:19.847] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "D" } [2024-04-29 22:21:19.855] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.857] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "e" } [2024-04-29 22:21:19.865] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.866] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "f" } [2024-04-29 22:21:19.874] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.876] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "i" } [2024-04-29 22:21:19.884] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.886] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "n" } [2024-04-29 22:21:19.893] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.895] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "e" } [2024-04-29 22:21:19.903] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.904] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": " " } [2024-04-29 22:21:19.912] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.913] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "X" } [2024-04-29 22:21:19.921] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.923] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "S" } [2024-04-29 22:21:19.931] [INFO] Returning embeddings (not shown in logs) [2024-04-29 22:21:19.932] [INFO] Received POST request to /v1/embeddings with body: { "model": "nomic-ai/nomic-embed-text-v1.5-GGUF/nomic-embed-text-v1.5.Q8_0.gguf", "input": "S" } [2024-04-29 22:21:19.940] [INFO] Returning embeddings (not shown in logs) ```Are there known steps to reproduce?
No response