skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
yoanbernabeu/grepai-skills571 installs

grepai-storage-qdrant

Configure Qdrant vector database for GrepAI. Use this skill for high-performance vector search.

How do I install this agent skill?

npx skills add https://github.com/yoanbernabeu/grepai-skills --skill grepai-storage-qdrant
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides safe documentation and configuration instructions for setting up Qdrant as a vector database backend. It follows security best practices for credential management and uses standard deployment tools.

  • Socketpass

    No alerts

  • Snykpass

    Risk: LOW · No issues

  • Runlayerwarn

    1/1 file flagged

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

GrepAI Storage with Qdrant

This skill covers using Qdrant as the storage backend for GrepAI, offering high-performance vector search.

When to Use This Skill

  • Need fastest possible search performance
  • Very large codebases (50K+ files)
  • Already using Qdrant infrastructure
  • Want advanced vector search features

What is Qdrant?

Qdrant is a purpose-built vector database offering:

  • ⚡ Extremely fast vector similarity search
  • 📏 Excellent scalability
  • 🔧 Advanced filtering capabilities
  • 🐳 Easy Docker deployment

Prerequisites

  1. Qdrant server running
  2. Network access to Qdrant

Advantages

BenefitDescription
⚡ PerformanceFastest vector search
📏 ScalabilityHandles millions of vectors
🔍 AdvancedFiltering, payloads, sharding
🐳 Easy deployDocker-ready
☁️ Cloud optionQdrant Cloud available

Setting Up Qdrant

Option 1: Docker (Recommended)

# Run Qdrant with persistent storage
docker run -d \
  --name grepai-qdrant \
  -p 6333:6333 \
  -p 6334:6334 \
  -v qdrant_storage:/qdrant/storage \
  qdrant/qdrant

Ports:

  • 6333: REST API
  • 6334: gRPC API (used by GrepAI)

Option 2: Docker Compose

# docker-compose.yml
version: '3.8'
services:
  qdrant:
    image: qdrant/qdrant
    ports:
      - "6333:6333"
      - "6334:6334"
    volumes:
      - qdrant_storage:/qdrant/storage
    environment:
      - QDRANT__SERVICE__GRPC_PORT=6334

volumes:
  qdrant_storage:
docker-compose up -d

Option 3: Qdrant Cloud

  1. Sign up at cloud.qdrant.io
  2. Create a cluster
  3. Get your endpoint and API key

Configuration

Basic Configuration (Local)

# .grepai/config.yaml
store:
  backend: qdrant
  qdrant:
    endpoint: localhost
    port: 6334

With TLS (Production)

store:
  backend: qdrant
  qdrant:
    endpoint: qdrant.company.com
    port: 6334
    use_tls: true

With API Key (Qdrant Cloud)

store:
  backend: qdrant
  qdrant:
    endpoint: your-cluster.aws.cloud.qdrant.io
    port: 6334
    use_tls: true
    api_key: your-api-key

grepai does not substitute ${VAR} in config.yaml and does not read a Qdrant key from the environment: the key goes in api_key. Keep a config holding it out of version control.

Configuration Options

OptionDefaultDescription
endpointlocalhostQdrant server hostname
port6334gRPC port
use_tlsfalseEnable TLS encryption
collectionproject pathCollection name. If empty, the absolute project path with /, \ and : replaced by _ (workspace_<name> for a workspace)
api_keynoneAuthentication key

Sharing a Collection

Set collection explicitly to let several projects or machines use the same collection:

store:
  backend: qdrant
  qdrant:
    endpoint: qdrant.company.com
    port: 6334
    use_tls: true
    collection: team-code

Each point then carries a project_namespace payload field (also part of the point ID), and every search, listing, stats count and deletion only sees the current repository:

  • Same repository, shared index: the namespace is the normalized origin remote URL (git@github.com:org/app.git, ssh://git@github.com/org/app and https://github.com/org/app all match; credentials in the URL are dropped). Clones on other machines, CI, colleagues and linked worktrees share the same points. Checkouts on different branches still overwrite each other's version of a file.
  • Different repositories, isolated: they never see or change each other's points, even with identical file paths. A project in a subdirectory adds it to the namespace (github.com/org/app#services/api).
  • No git repository, no origin, or a local-path origin: the namespace is the project's absolute path.
  • Changing the origin URL changes the namespace: the next grepai index or grepai watch re-indexes from scratch, and the old points stay until you delete them.

Default collections (no collection key) and workspace collections hold a single project and have no namespace: nothing changes for them.

Upgrading with an explicit collection: grepai search, grepai status and the MCP tools keep reading the existing points until the project is re-indexed. The first grepai index or grepai watch migrates it, reusing the stored vectors for unchanged chunks (no new embedding cost). grepai warns at startup while old points remain. Once every project sharing the collection has been upgraded and re-indexed, delete the leftover points without a namespace:

curl -X POST http://localhost:6333/collections/<collection>/points/delete \
  -H 'Content-Type: application/json' \
  -d '{"filter": {"must": [{"is_empty": {"key": "project_namespace"}}]}}'

Upgrade every project that shares the collection: an earlier grepai release ignores the namespace and can still overwrite or delete the other projects' points.

Verifying Setup

Check Qdrant is Running

# REST API health check
curl http://localhost:6333/health

# Expected: {"status":"ok"}

Check Collections (after indexing)

# List collections
curl http://localhost:6333/collections

# Get collection info
curl http://localhost:6333/collections/<collection>

From GrepAI

grepai status

# Should show Qdrant backend info

Qdrant Dashboard

Access the web dashboard at http://localhost:6333/dashboard:

  • View collections
  • Browse vectors
  • Execute queries
  • Monitor performance

Performance Characteristics

Search Latency

Codebase SizeVectorsSearch Time
Small (1K files)5,000<10ms
Medium (10K files)50,000<20ms
Large (100K files)500,000<50ms

Memory Usage

Qdrant loads vectors into memory for fast search:

VectorsDimensionsMemory
10,000768~60 MB
100,000768~600 MB
1,000,000768~6 GB

Advanced Configuration

Qdrant Server Configuration

Create config/production.yaml:

storage:
  storage_path: /qdrant/storage

service:
  grpc_port: 6334
  http_port: 6333
  max_request_size_mb: 32

optimizers:
  memmap_threshold_kb: 200000
  indexing_threshold_kb: 50000

Mount in Docker:

docker run -d \
  -v ./config:/qdrant/config \
  -v qdrant_storage:/qdrant/storage \
  qdrant/qdrant

Collection Settings

When the collection does not exist, GrepAI creates it (named after the project path, or collection if set) with:

  • Vector size: matches your embedding dimensions
  • Distance: Cosine similarity

An existing collection is never resized: after changing to a model with other dimensions, delete the collection or set a new collection name, then re-index.

Clustering (Advanced)

For very large deployments, Qdrant supports distributed mode:

# qdrant config
cluster:
  enabled: true
  p2p:
    port: 6335

Backup and Restore

Snapshot Creation

# Create snapshot via REST API
curl -X POST 'http://localhost:6333/collections/<collection>/snapshots'

Restore Snapshot

# Restore from snapshot
curl -X PUT 'http://localhost:6333/collections/<collection>/snapshots/recover' \
  -H 'Content-Type: application/json' \
  -d '{"location": "/path/to/snapshot"}'

Migrating from GOB

  1. Start Qdrant:
docker run -d --name qdrant -p 6333:6333 -p 6334:6334 qdrant/qdrant
  1. Update configuration:
store:
  backend: qdrant
  qdrant:
    endpoint: localhost
    port: 6334
  1. Delete old index:
rm .grepai/index.gob
  1. Re-index:
grepai watch

Migrating from PostgreSQL

  1. Start Qdrant
  2. Update configuration to use Qdrant
  3. Re-index (embeddings must be regenerated)

Common Issues

❌ Problem: Connection refused ✅ Solution: Ensure Qdrant is running:

docker ps | grep qdrant
docker start grepai-qdrant

❌ Problem: gRPC connection failed ✅ Solution: Check port 6334 is exposed:

docker run -p 6334:6334 ...

❌ Problem: Authentication failed ✅ Solution: Check store.qdrant.api_key in the config (it is not read from the environment)

❌ Problem: Hybrid search (search.hybrid.enabled: true) returns a single result ✅ Solution: Bug in grepai v0.18.0 up to 1.1.0, fixed in grepai v1.2.0. Upgrade with grepai update; no re-index needed. Hybrid search works normally with Qdrant from that version.

❌ Problem: Another repository's files show up, or disappear, in a shared collection ✅ Solution: A project sharing the collection still runs a grepai version older than v1.2.0. Upgrade every project, then run grepai index in each (see Sharing a Collection).

❌ Problem: Out of memory ✅ Solutions:

  • Enable on-disk storage in Qdrant config
  • Increase Docker memory limit
  • Use Qdrant Cloud for managed scaling

❌ Problem: Slow initial indexing ✅ Solution: This is normal; Qdrant optimizes in background. Searches will be fast after indexing completes.

Qdrant vs PostgreSQL

FeatureQdrantPostgreSQL
Search speed⚡⚡⚡⚡⚡
Setup complexityEasy (Docker)Medium
SQL queries❌✅
ScalabilityExcellentGood
Memory efficiencyExcellentGood
Team familiarityLowerHigher

Recommendation: Use Qdrant for large codebases or maximum performance. Use PostgreSQL if you need SQL integration or team is familiar with it.

Best Practices

  1. Use persistent volume: Mount /qdrant/storage
  2. Enable TLS in production: Set use_tls: true
  3. Secure API key: Never commit a config holding api_key
  4. Monitor memory: Vector search is memory-intensive
  5. Regular snapshots: Backup before major changes

Output Format

Qdrant storage status:

✅ Qdrant Storage Configured

   Backend: Qdrant
   Endpoint: localhost:6334
   TLS: disabled
   Collection: grepai

   Contents:
   - Files: 5,000
   - Vectors: 25,000
   - Dimensions: 768

   Performance:
   - Connection: OK
   - Indexed: Yes
   - Search latency: ~15ms

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/yoanbernabeu/grepai-skills/grepai-storage-qdrant">View grepai-storage-qdrant on skillZs</a>