mirror of
https://github.com/Mintplex-Labs/anythingllm-docs.git
synced 2026-07-21 17:25:29 -04:00
[GH-ISSUE #50] vectorDB connection failed #28
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @liyingchunvip on GitHub (Jun 20, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anythingllm-docs/issues/50
when I upload my local file into my workspace ,then I save and embed , but when I chat in the workspace , I got an error:
LanceDBError: LanceError(IO): Query vector must have non-zero length, /home/build_user/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lance-0.9.18/src/dataset/scanner.rs:378:27
my local docker compose env is as follows: how can I solve this problem
version: '3.3'
services:
anythingllm:
privileged: true
user: "root"
network_mode: "host"
image: mintplexlabs/anythingllm
container_name: anythingllm
ports:
- "3001:3001"
environment:
- STORAGE_DIR=/app/server/storage
- JWT_SECRET="your-jwt-secret"
- LLM_PROVIDER=ollama
- OLLAMA_BASE_PATH=http://127.0.0.1:11434
- OLLAMA_MODEL_PREF=llama3
- OLLAMA_MODEL_TOKEN_LIMIT=4096
- EMBEDDING_ENGINE=ollama
- EMBEDDING_BASE_PATH=http://127.0.0.1:11434
- EMBEDDING_MODEL_PREF=nomic-embed-text:latest
- EMBEDDING_MODEL_MAX_CHUNK_LENGTH=8192
- VECTOR_DB=lancedb
- VECTOR_DB_PATH=/app/server/storage/lancedb
- WHISPER_PROVIDER=local
- TTS_PROVIDER=native
- PASSWORDMINCHAR=8
- AGENT_SERPER_DEV_KEY="your-serper-dev-key"
- AGENT_SERPLY_API_KEY="your-serply-api-key"
volumes:
- /home/ubuntu/anythingllm:/app/server/storage
restart: always
ollama:
image: ollama
container_name: ollama
ports:
- "11434:11434"
environment:
- BIND_ADDRESS=0.0.0.0
command: serve
restart: always
volumes:
anythingllm_storage:
driver: local
driver_opts:
type: none
o: bind
device: /home/ubuntu/anythingllm
@timothycarambat commented on GitHub (Jun 20, 2024):
This means that the embedder failed to vectorize the query and the response came back empty (0)
or
You changed the embedder at some point after documents or workspaces already had been embedded or used and now the next embedder dimensions do not match what was previously used.
What are you using as your embedder and did you even change it. Second, do you get this error on a new empty workspace?
vectorDB connection failedto [GH-ISSUE #50] vectorDB connection failed