AGENT SKILL

vector-database-engineer

Use when implementing vector database functionality with production-grade patterns and safeguards.

License 许可
MIT
最近更新
2026-04-11
Stars
★ 3
Forks
0

01 前言 Front Matter

name
vector-database-engineer
metadata
{ "hermes": { "tags": [ "codex-agent", "databases-storage" ], "source": "codex-field-kit/databases-storage" } }
description
Use when implementing vector database functionality with production-grade patterns and safeguards.

03 SKILL.md 正文

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

  1. Analyze requirements: Data volume, query patterns, latency needs
  2. Select embedding model: Match model to use case (general, code, domain)
  3. Design chunking pipeline: Balance context preservation with retrieval precision
  4. Choose vector database: Based on scale, features, operational needs
  5. Configure index: Optimize for recall/latency tradeoffs
  6. Implement hybrid search: If keyword matching improves results
  7. Add reranking: For precision-critical applications
  8. 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"

04 同仓库更多 Skills

0xharryriddle
0xharryriddle/codex-field-kit

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

swarm-planner

[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

super-swarm-spark

Only to be triggered by explicit super-swarm-spark commands.

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

role-creator

Create and install Codex custom agent roles in ~/.codex/config.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

read-github

Read and search GitHub repository documentation via gitmcp.io MCP service. **WHEN TO USE:** - User provides a GitHub URL - User mentions a specific repo in owner/repo format - User asks "what does this repo do?", "read the docs for X repo", or similar - User wants to search code or docs within a repo

★ 3
0xharryriddle
0xharryriddle/codex-field-kit

planner

Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: "make a plan", "create a plan", "plan this out", "plan the implementation", "help me plan", "design a plan", "draft a plan", "write a plan", "outline the steps", "break this down into tasks", "what's the plan for", or any similar planning request. Also triggers on explicit "/planner" or "/plan" commands.

★ 3