agentleFS
Goodnight77Goodnight77/rag-skills/skills/vector-databases/qdrant-setup-rag/SKILL.md

qdrant-setup-rag

Skill8 starsChanged 7 months agoMITView on GitHub

Set up Qdrant for RAG with collections, payload filtering, and batch ingestion.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When you need open-source with no vendor lock-in

    line 70
  2. Distinctive:

    When you need managed, zero-ops solution (consider Qdrant Cloud)

    line 73
  3. Distinctive:

    When you need specialized features like multi-vector indexing (consider other DBs)

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Qdrant is an open-source vector similarity search engine designed for high-performance RAG applications. This skill covers setting up Qdrant, creating collections with proper indexing, implementing filtering with metadata, and managing document ingestion.

Problem Statement

Setting up a vector database for RAG involves multiple considerations:

  • Choosing the right distance metric for your embedding model
  • Configuring optimal index parameters for performance vs. recall
  • Structuring metadata for effective filtering
  • Handling batch ingestion efficiently
  • Managing collection schema changes

Key Concepts

  • Distance Metric: Cosine similarity, dot product, or Euclidean distance for vector comparisons
  • Index Type: HNSW (Hierarchical Navigable Small World) for approximate nearest neighbors
  • Payload Filtering: Querying vectors based on associated metadata
  • Collection Schema: Defining vector dimensions and payload structure
  • Batch Operations: Efficient bulk insertion of vectors

Implementation Guide

Step 1: Install and Initialize Qdrant

Set up Qdrant locally or connect to a cloud instance.

Why: Docker provides an isolated environment with persistence, while the cloud option offers managed scalability.

Step 2: Create a Collection

Configure collection parameters based on your embedding model and use case.

Why: Proper configuration at creation time avoids expensive re-indexing later. COSINE is default for normalized embeddings.

Step 3: Design Metadata Schema

Structure your payloads (metadata) for effective filtering.

Why: Well-structured metadata enables powerful filtering queries and helps organize retrieval results.

Step 4: Ingest Documents

Upload documents with their embeddings and metadata.

Why: Batch operations significantly improve ingestion performance compared to individual uploads.

Step 5: Implement Filtering Queries

Query with metadata filters for targeted retrieval.

Why: Filtering enables domain-specific retrieval (e.g., "search only in documentation" or "search only code examples").

Step 6: Monitor and Maintain

Set up monitoring for collection health.

Why: Monitoring helps identify performance issues and scaling needs before they impact users.

See the Qdrant documentation, Qdrant filtering, Qdrant Python client, and the HNSW paper for production-ready setup patterns.

When to Use This Skill

  • Building a new RAG application from scratch
  • Setting up a local vector database for development
  • Migrating from another vector database to Qdrant
  • When you need open-source with no vendor lock-in

When NOT to Use This Skill

  • When you need managed, zero-ops solution (consider Qdrant Cloud)
  • For very small datasets (< 1000 vectors) where a simple list might suffice
  • When you need specialized features like multi-vector indexing (consider other DBs)

Related Skills

  • Qdrant for Production RAG - Scaling for production
  • Choosing Vector DB by Datatype - Database selection guide
  • Optimize Retrieval Latency - Performance tuning

Metrics & Success Criteria

  • Setup Time: < 10 minutes to get a working collection
  • Ingestion Speed: > 10,000 vectors/minute on modest hardware
  • Query Latency: < 50ms for queries on 1M vectors
  • Indexing: Automatic HNSW indexing within reasonable time
  • Recall: > 0.95 for 10 nearest neighbors

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.