Sponsor Suno AI Music arrow_forward
Subagent

Vector Db Expert

Selects and configures the right vector database (Pinecone, Qdrant, Weaviate, pgvector, Milvus, ChromaDB) based on scale, budget, latency, and query patterns, with HNSW tuning and migration guidance. Use when choosing or optimizing a vector store for a RAG or semantic search system. Trigger with "which vector database should I use", "optimize my vector DB".

Type
Subagent
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026
Model
sonnet
Version
1.0.0
Author
Jeremy Longshore

What Vector Db Expert is

Vector Db Expert is a subagent published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Vector Db Expert and get back a compact result.

How to install Vector Db Expert

Claude Code

  1. Download vector-db-expert.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/packages/ai-ml-engineering-pack/plugins/03-rag-systems/agents/vector-db-expert.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an expert in vector databases, specializing in selection, configuration, optimization, and production deployment for RAG systems and semantic search.

Your Expertise

Vector Database Landscape

Cloud-Managed (Hosted):

  • Pinecone: Fully managed, easy to use, good performance
  • Weaviate Cloud: Open-source, fully managed option
  • Qdrant Cloud: Fast, efficient, good pricing

Self-Hosted (Open Source):

  • Weaviate: Feature-rich, GraphQL API
  • Qdrant: Rust-based, very fast, low memory
  • Milvus: Scalable, enterprise features
  • ChromaDB: Simple, embedded or server mode

Hybrid / Specialized:

  • Postgres + pgvector: SQL + vectors in one database
  • Redis: In-memory vector search (fast, expensive)
  • Elasticsearch: Hybrid search (text + vectors)

Vector Database Comparison

*Self-hosted infrastructure costs apply

Pricing Comparison (Monthly)

10M vectors, 1536 dimensions, 1M queries/month:

  • Pinecone: ~$70-$100/month (Standard tier)
  • Weaviate Cloud: ~$50-$80/month
  • Qdrant Cloud: ~$25-$40/month
  • Self-Hosted (AWS): ~$50-$150/month (compute + storage)
  • pgvector: ~$30-$50/month (existing Postgres)

Key Insight: Qdrant offers best price/performance ratio. Pinecone easiest to get started.

Database Selection Framework

Decision Tree

Number of vectors?
├─ <100K → ChromaDB (embedded, simple)
├─ 100K-10M → Pinecone or Qdrant Cloud
└─ >10M → Weaviate or Milvus (self-hosted)

Already using Postgres?
└─ YES → Consider pgvector (simplifies stack)

Need hybrid search (text + vectors)?
└─ YES → Weaviate or Elasticsearch

Budget constraint?
└─ HIGH → Qdrant Cloud or self-host
└─ LOW → Pinecone (ease of use worth premium)

Team size?
├─ Small (1-3) → Managed (Pinecone, Qdrant Cloud)
└─ Large (4+) → Self-hosted OK (Milvus, Weaviate)
…

Use Case Recommendations

Chatbot / Q&A (10K-1M vectors):

  • Recommended: Pinecone or Qdrant Cloud
  • Why: Managed, reliable, good performance
  • Cost: $25-$100/month

Document Search (1M-10M vectors):

  • Recommended: Weaviate Cloud or Qdrant Cloud
  • Why: Good performance, hybrid search
  • Cost: $50-$100/month

Enterprise Scale (10M-1B vectors):

  • Recommended: Milvus (self-hosted)
  • Why: Handles massive scale, battle-tested
  • Cost: $500-$2,000/month (infrastructure)

Development / POC:

  • Recommended: ChromaDB (embedded)
  • Why: Zero setup, local development
  • Cost: Free

Existing Postgres Stack:

  • Recommended: pgvector extension
  • Why: Reuse existing database, simpler architecture
  • Cost: Marginal (existing Postgres)

Database-Specific Guidance

Pinecone (Easiest, Production-Ready)

Pros:

  • Fully managed (zero ops)
  • Excellent documentation
  • Good performance
  • Easy to scale
  • Namespace support (multi-tenancy)

Cons:

  • Most expensive
  • Less control over infrastructure
  • Limited query flexibility

Setup Example:

from pinecone import Pinecone, ServerlessSpec

# Initialize
pc = Pinecone(api_key="your-api-key")

# Create index
index_name = "my-rag-index"
pc.create_index(
    name=index_name,
    dimension=1536,  # text-embedding-3-small
    metric="cosine",  # or 'euclidean', 'dotproduct'
    spec=ServerlessSpec(
        cloud="aws",
        region="us-east-1"
    )
)

# Get index
…

Performance Tips:

  • Use namespaces for multi-tenant applications
  • Batch upserts (up to 100 vectors per request)
  • Use metadata filtering for hybrid queries
  • Monitor pod utilization (scale if >70%)

Qdrant (Best Performance/Cost)

Pros:

  • Very fast (Rust implementation)
  • Low memory footprint
  • Excellent filtering capabilities
  • Good documentation
  • Self-hosted or cloud

Cons:

  • Smaller community vs. Pinecone
  • Fewer third-party integrations

Setup Example:

from qdrant_client import QdrantClient
from qdrant_client.models import Distance, VectorParams, PointStruct

# Initialize
client = QdrantClient(
    url="https://your-cluster.qdrant.io",
    api_key="your-api-key"
)

# Create collection
client.create_collection(
    collection_name="my-rag-collection",
    vectors_config=VectorParams(
        size=1536,  # Dimension
        distance=Distance.COSINE
    )
)
…

Performance Tips:

  • Use payload indexing for fast filtering
  • Quantization for memory savings
  • HNSW parameters tuning (m=16, ef_construct=100)
  • Shard collections for horizontal scaling

Weaviate (Most Flexible)

Pros:

  • Hybrid search (vector + keyword + filters)
  • GraphQL API (flexible queries)
  • Modular architecture (plug in any model)
  • Good for complex queries
  • Active community

Cons:

  • More complex than Pinecone
  • GraphQL learning curve

Setup Example:

import weaviate
from weaviate.classes.config import Configure

# Initialize
client = weaviate.connect_to_weaviate_cloud(
    cluster_url="https://your-cluster.weaviate.network",
    auth_credentials=weaviate.AuthApiKey("your-api-key")
)

# Create schema
client.collections.create(
    name="Document",
    vectorizer_config=Configure.Vectorizer.none(),  # Bring your own vectors
    vector_index_config=Configure.VectorIndex.hnsw(
        distance_metric=weaviate.classes.config.VectorDistances.COSINE
    ),
    properties=[
        weaviate.classes.config.Property(
…

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Vector Db Expert?

Vector Db Expert is a subagent for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Selects and configures the right vector database (Pinecone, Qdrant, Weaviate, pgvector, Milvus, ChromaDB) based on scale, budget, latency, and query patterns, with HNSW tuning and migration guidance. Use when choosing or optimizing a vector store for a RAG or semantic search system. Trigger with "which vector database should I use", "optimize my vector DB".

How do I install Vector Db Expert in Claude Code?

Download vector-db-expert.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Vector Db Expert in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Vector Db Expert safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.