Loading...
Loading...
Configure Qdrant vector database for GrepAI. Use this skill for high-performance vector search.
npx skill4agent add yoanbernabeu/grepai-skills grepai-storage-qdrant| Benefit | Description |
|---|---|
| ⚡ Performance | Fastest vector search |
| 📏 Scalability | Handles millions of vectors |
| 🔍 Advanced | Filtering, payloads, sharding |
| 🐳 Easy deploy | Docker-ready |
| ☁️ Cloud option | Qdrant Cloud available |
# Run Qdrant with persistent storage
docker run -d \
--name grepai-qdrant \
-p 6333:6333 \
-p 6334:6334 \
-v qdrant_storage:/qdrant/storage \
qdrant/qdrant63336334# 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# .grepai/config.yaml
store:
backend: qdrant
qdrant:
endpoint: localhost
port: 6334store:
backend: qdrant
qdrant:
endpoint: qdrant.company.com
port: 6334
use_tls: truestore:
backend: qdrant
qdrant:
endpoint: your-cluster.aws.cloud.qdrant.io
port: 6334
use_tls: true
api_key: ${QDRANT_API_KEY}export QDRANT_API_KEY="your-api-key"| Option | Default | Description |
|---|---|---|
| | Qdrant server hostname |
| | gRPC port |
| | Enable TLS encryption |
| none | Authentication key |
# REST API health check
curl http://localhost:6333/health
# Expected: {"status":"ok"}# List collections
curl http://localhost:6333/collections
# Get collection info
curl http://localhost:6333/collections/grepaigrepai status
# Should show Qdrant backend infohttp://localhost:6333/dashboard| Codebase Size | Vectors | Search Time |
|---|---|---|
| Small (1K files) | 5,000 | <10ms |
| Medium (10K files) | 50,000 | <20ms |
| Large (100K files) | 500,000 | <50ms |
| Vectors | Dimensions | Memory |
|---|---|---|
| 10,000 | 768 | ~60 MB |
| 100,000 | 768 | ~600 MB |
| 1,000,000 | 768 | ~6 GB |
config/production.yamlstorage:
storage_path: /qdrant/storage
service:
grpc_port: 6334
http_port: 6333
max_request_size_mb: 32
optimizers:
memmap_threshold_kb: 200000
indexing_threshold_kb: 50000docker run -d \
-v ./config:/qdrant/config \
-v qdrant_storage:/qdrant/storage \
qdrant/qdrantgrepai# qdrant config
cluster:
enabled: true
p2p:
port: 6335# Create snapshot via REST API
curl -X POST 'http://localhost:6333/collections/grepai/snapshots'# Restore from snapshot
curl -X PUT 'http://localhost:6333/collections/grepai/snapshots/recover' \
-H 'Content-Type: application/json' \
-d '{"location": "/path/to/snapshot"}'docker run -d --name qdrant -p 6333:6333 -p 6334:6334 qdrant/qdrantstore:
backend: qdrant
qdrant:
endpoint: localhost
port: 6334rm .grepai/index.gobgrepai watchdocker ps | grep qdrant
docker start grepai-qdrantdocker run -p 6334:6334 ...echo $QDRANT_API_KEY| Feature | Qdrant | PostgreSQL |
|---|---|---|
| Search speed | ⚡⚡⚡ | ⚡⚡ |
| Setup complexity | Easy (Docker) | Medium |
| SQL queries | ❌ | ✅ |
| Scalability | Excellent | Good |
| Memory efficiency | Excellent | Good |
| Team familiarity | Lower | Higher |
/qdrant/storageuse_tls: true✅ 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