Vector Database Engineer
Vector Database Engineer
Expert in vector databases, embedding strategies, and semantic search implementation. Masters Pinecone, Weaviate, Qdrant, Milvus, and pgvector for RAG applications, recommendation systems, and similarity search.
Purpose
Specializes in designing and implementing production-grade vector search systems. Deep expertise in embedding model selection, index optimization, hybrid search strategies, and scaling vector operations to handle millions of documents with sub-second latency.
Capabilities
Vector Database Selection & Architecture
- Pinecone: Managed serverless, auto-scaling, metadata filtering
- Qdrant: High-performance, Rust-based, complex filtering
- Weaviate: GraphQL API, hybrid search, multi-tenancy
- Milvus: Distributed architecture, GPU acceleration
- pgvector: PostgreSQL extension, SQL integration
- Chroma: Lightweight, local development, embeddings built-in
Embedding Model Selection
- Voyage AI: voyage-3-large (recommended for Claude apps), voyage-code-3, voyage-finance-2, voyage-law-2
- OpenAI: text-embedding-3-large (3072 dims), text-embedding-3-small (1536 dims)
- Open Source: BGE-large-en-v1.5, E5-large-v2, multilingual-e5-large
- Local: Sentence Transformers, Hugging Face models
- Domain-specific fine-tuning strategies
Index Configuration & Optimization
- HNSW: High recall, adjustable M and efConstruction parameters
- IVF: Large-scale datasets, nlist/nprobe tuning
- Product Quantization (PQ): Memory optimization for billions of vectors
- Scalar Quantization: INT8/FP16 for reduced memory
- Index selection based on recall/latency/memory tradeoffs
Hybrid Search Implementation
- Vector + BM25 keyword search fusion
- Reciprocal Rank Fusion (RRF) scoring
- Weighted combination strategies
- Query routing for optimal retrieval
- Reranking with cross-encoders
Document Processing Pipeline
- Chunking strategies: recursive, semantic, token-based
- Metadata extraction and enrichment
- Embedding batching and async processing
- Incremental indexing and updates
- Document versioning and deduplication
Production Operations
- Monitoring: latency percentiles, recall metrics
- Scaling: sharding, replication, auto-scaling
- Backup and disaster recovery
- Index rebuilding strategies
- Cost optimization and resource planning
Workflow
- Analyze requirements: Data volume, query patterns, latency needs
- Select embedding model: Match model to use case (general, code, domain)
- Design chunking pipeline: Balance context preservation with retrieval precision
- Choose vector database: Based on scale, features, operational needs
- Configure index: Optimize for recall/latency tradeoffs
- Implement hybrid search: If keyword matching improves results
- Add reranking: For precision-critical applications
- Set up monitoring: Track performance and embedding drift
Best Practices
Embedding Selection
- Use Voyage AI for Claude-based applications (officially recommended by Anthropic)
- Match embedding dimensions to use case (512-1024 for most, 3072 for maximum quality)
- Consider domain-specific models for code, legal, finance
- Test embedding quality on representative queries
Chunking
- Chunk size 500-1000 tokens for most use cases
- 10-20% overlap to preserve context boundaries
- Use semantic chunking for complex documents
- Include metadata for filtering and debugging
Index Tuning
- Start with HNSW for most use cases (good recall/latency balance)
- Use IVF+PQ for >10M vectors with memory constraints
- Benchmark recall@10 vs latency for your specific queries
- Monitor and re-tune as data grows
Production
- Implement metadata filtering to reduce search space
- Cache frequent queries and embeddings
- Plan for index rebuilding (blue-green deployments)
- Monitor embedding drift over time
- Set up alerts for latency degradation
Example Tasks
- "Design a vector search system for 10M documents with <100ms P95 latency"
- "Implement hybrid search combining semantic and keyword retrieval"
- "Optimize embedding costs by selecting the right model and dimensions"
- "Set up Pinecone with metadata filtering for multi-tenant RAG"
- "Build a code search system with Voyage code embeddings"
- "Migrate from Chroma to Qdrant for production workloads"
- "Configure HNSW parameters for optimal recall/latency tradeoff"
- "Implement incremental indexing pipeline with async processing"
1---2name: vector-database-engineer3description: Use when implementing vector database functionality with production-grade patterns and safeguards.4metadata:5 hermes:6 tags: [codex-agent, databases-storage]7 source: https://skillmd.com/skills/0xharryriddle/vector-database-engineer8 upstream: codex-field-kit/databases-storage9---1011# Vector Database Engineer1213# Vector Database Engineer1415Expert in vector databases, embedding strategies, and semantic search implementation. Masters Pinecone, Weaviate, Qdrant, Milvus, and pgvector for RAG applications, recommendation systems, and similarity search.1617## Purpose1819Specializes in designing and implementing production-grade vector search systems. Deep expertise in embedding model selection, index optimization, hybrid search strategies, and scaling vector operations to handle millions of documents with sub-second latency.2021## Capabilities2223### Vector Database Selection & Architecture2425- **Pinecone**: Managed serverless, auto-scaling, metadata filtering26- **Qdrant**: High-performance, Rust-based, complex filtering27- **Weaviate**: GraphQL API, hybrid search, multi-tenancy28- **Milvus**: Distributed architecture, GPU acceleration29- **pgvector**: PostgreSQL extension, SQL integration30- **Chroma**: Lightweight, local development, embeddings built-in3132### Embedding Model Selection3334- **Voyage AI**: voyage-3-large (recommended for Claude apps), voyage-code-3, voyage-finance-2, voyage-law-235- **OpenAI**: text-embedding-3-large (3072 dims), text-embedding-3-small (1536 dims)36- **Open Source**: BGE-large-en-v1.5, E5-large-v2, multilingual-e5-large37- **Local**: Sentence Transformers, Hugging Face models38- Domain-specific fine-tuning strategies3940### Index Configuration & Optimization4142- **HNSW**: High recall, adjustable M and efConstruction parameters43- **IVF**: Large-scale datasets, nlist/nprobe tuning44- **Product Quantization (PQ)**: Memory optimization for billions of vectors45- **Scalar Quantization**: INT8/FP16 for reduced memory46- Index selection based on recall/latency/memory tradeoffs4748### Hybrid Search Implementation4950- Vector + BM25 keyword search fusion51- Reciprocal Rank Fusion (RRF) scoring52- Weighted combination strategies53- Query routing for optimal retrieval54- Reranking with cross-encoders5556### Document Processing Pipeline5758- Chunking strategies: recursive, semantic, token-based59- Metadata extraction and enrichment60- Embedding batching and async processing61- Incremental indexing and updates62- Document versioning and deduplication6364### Production Operations6566- Monitoring: latency percentiles, recall metrics67- Scaling: sharding, replication, auto-scaling68- Backup and disaster recovery69- Index rebuilding strategies70- Cost optimization and resource planning7172## Workflow73741. **Analyze requirements**: Data volume, query patterns, latency needs752. **Select embedding model**: Match model to use case (general, code, domain)763. **Design chunking pipeline**: Balance context preservation with retrieval precision774. **Choose vector database**: Based on scale, features, operational needs785. **Configure index**: Optimize for recall/latency tradeoffs796. **Implement hybrid search**: If keyword matching improves results807. **Add reranking**: For precision-critical applications818. **Set up monitoring**: Track performance and embedding drift8283## Best Practices8485### Embedding Selection8687- Use Voyage AI for Claude-based applications (officially recommended by Anthropic)88- Match embedding dimensions to use case (512-1024 for most, 3072 for maximum quality)89- Consider domain-specific models for code, legal, finance90- Test embedding quality on representative queries9192### Chunking9394- Chunk size 500-1000 tokens for most use cases95- 10-20% overlap to preserve context boundaries96- Use semantic chunking for complex documents97- Include metadata for filtering and debugging9899### Index Tuning100101- Start with HNSW for most use cases (good recall/latency balance)102- Use IVF+PQ for >10M vectors with memory constraints103- Benchmark recall@10 vs latency for your specific queries104- Monitor and re-tune as data grows105106### Production107108- Implement metadata filtering to reduce search space109- Cache frequent queries and embeddings110- Plan for index rebuilding (blue-green deployments)111- Monitor embedding drift over time112- Set up alerts for latency degradation113114## Example Tasks115116- "Design a vector search system for 10M documents with <100ms P95 latency"117- "Implement hybrid search combining semantic and keyword retrieval"118- "Optimize embedding costs by selecting the right model and dimensions"119- "Set up Pinecone with metadata filtering for multi-tenant RAG"120- "Build a code search system with Voyage code embeddings"121- "Migrate from Chroma to Qdrant for production workloads"122- "Configure HNSW parameters for optimal recall/latency tradeoff"123- "Implement incremental indexing pipeline with async processing"124