Run Qdrant Locally in Docker as a Vector Store
Pull the Qdrant image, start it in Docker with persistent storage, and create a first collection for local embeddings.
WORKFLOW TAG
Generate, compare, and use text vectors for lookup.
Pull the Qdrant image, start it in Docker with persistent storage, and create a first collection for local embeddings.
Call the Ollama embeddings endpoint with the nomic-embed-text model and read the returned vector for local search.
Compare the question with the returned chunks, check the embedding and the filters, and fix the cause instead of adding more chunks.
Detect the empty result, tell the user the knowledge base has no answer, and log the question instead of letting the model…
Normalise every vector to length 1 before storing it, so cosine similarity becomes a simple dot product and rankings stay comparable.
Test embedding models in every language your documents use, and pick the one that stays consistent, not the one that wins in…
Use a Matryoshka-trained model, truncate its vectors to the size you need, and re-normalise before you store them.
Index the metadata fields you filter on, apply the filter before ranking, and check no other tenant results leak through.
Use cosine for direction, dot product for magnitude-aware ranking, and Euclidean only when the scale of the vectors matters.
Pick HNSW for fast recall on a changing collection, and IVF when build cost and memory matter more than top recall.