db-vector-expert

db-vector-expert is an agent for Claude Code from andisab/swe-marketplace. It costs 46 tokens per session (4,209 once invoked), scanned A, original, MIT.

A specialist for vector databases, which store numerical representations of content so similar items can be found by meaning.

In plain words
What is it for?
Use it for semantic search, recommendations, and retrieval-augmented generation (RAG), where an AI retrieves relevant information before answering.
Why use it?
It helps build and tune similarity search without having to choose and configure indexing, embeddings, and database scaling methods alone.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the databases plugin — 7 agents shipped together

Good fit Use it for semantic search, recommendations, and retrieval-augmented generation (RAG), where an AI retrieves relevant information before answering.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andisab/swe-marketplace/db-vector-expert
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/andisab/swe-marketplace

Made for: Claude Code.

Or install databases, the plugin that ships this one along with the rest of its 7 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for db-vector-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/andisab/swe-marketplace/db-vector-expert.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/db-vector-expert)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/db-vector-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/db-vector-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.04209
Opus 5 $0.00023 $0.02105
Sonnet 5 $0.00009 $0.00842
Haiku 4.5 $0.00005 $0.00421

Measured 8d ago against content hash f01c0d45521e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

db-vector-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/databases/agents/db-vector-expert.md · 635 lines

How it starts

The opening of the file, as written. The whole thing — 635 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Focus Areas

  • Vector data indexing and retrieval (HNSW, IVF, Product Quantization)
  • Similarity search algorithms (cosine, euclidean, dot product)
  • Vector embedding techniques (OpenAI, Cohere, sentence-transformers)
  • Dimensionality reduction methods (PCA, UMAP, product quantization)
  • Optimization of vector queries with approximate nearest neighbor (ANN)
  • Scalability of vector databases for billion-scale datasets
  • Managing large-scale vector datasets with sharding and replication
  • Vector database architecture (pgvector, Pinecone, Weaviate, Qdrant, FAISS)
  • Data preprocessing and normalization for embeddings
  • Use cases: semantic search, recommendation systems, RAG applications

Approach

  • Implement efficient indexing for vector data (HNSW for recall, IVF for speed)
  • Optimize vector similarity search with approximate nearest neighbor algorithms
  • Design schemas tailored for hybrid search (vector + metadata filtering)
  • Utilize production embedding models (OpenAI ada-002, BGE, E5)
  • Reduce dimensionality while preserving semantic meaning
  • Efficiently handle high-dimensional vector queries with quantization
  • Scale systems with horizontal sharding and read replicas
  • Architect resilient vector databases with backup and disaster recovery
  • Develop preprocessing pipelines for text/image/multimodal embeddings
  • Benchmark performance: QPS (queries per second), recall@k, latency p99

Vector Database Implementation Examples

pgvector with PostgreSQL

Setup and Configuration
-- Enable pgvector extension
CREATE EXTENSION IF NOT EXISTS vector;

-- Create table with vector column
CREATE TABLE documents (
    id SERIAL PRIMARY KEY,
    title TEXT NOT NULL,
    content TEXT,
    embedding vector(1536),  -- OpenAI ada-002 dimension
    metadata JSONB,
    created_at TIMESTAMP DEFAULT NOW()
);

-- Create indexes for similarity search
-- IVFFlat: Faster but lower recall
CREATE INDEX ON documents USING ivfflat (embedding vector_cosine_ops)
WITH (lists = 100);  -- lists ≈ sqrt(n_rows)

-- HNSW: Better recall, slower build (recommended for production)
CREATE INDEX ON documents USING hnsw (embedding vector_l2_ops)
WITH (m = 16, ef_construction = 64);  -- Higher m = better recall

Read the full file on GitHub · 635 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 635 lines · 46 tokens per session scan A f01c0d45521e

Subscribe to this mod's changes

db-vector-expert is an agent published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed 20d ago), licensed MIT. It adds 46 tokens to every session and 4,209 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

embed

Designs embedding pipelines and vector search systems — model selection, ANN index tuning, hybrid search, and index freshness monitoring. Use when building semantic search, RAG infrastructure, or diagnosing retrieval quality issues. Trigger with "design embedding pipeline", "optimize vector search".

jeremylongshore/tons-of-skills-marketplace · 55 tokens

rag-system-designer

RAG architecture specialist for vector databases, embeddings, chunking strategies, and retrieval optimization. Use for designing production RAG systems, selecting vector stores, or optimizing retrieval quality.

SteveGJones/ai-first-sdlc-practices · 40 tokens

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens

vector-search-expert

Expert in semantic search, vector embeddings, and pgvector v0.8.0 optimization for memory retrieval. Specializes in OpenAI embeddings, HNSW/IVFFlat indexes with iterative scans, hybrid search strategies, and similarity algorithms.

Matt-Dionis/claude-code-configs · 54 tokens

vector-db-expert

Expert in Vector Databases, handling indexing, querying, and optimization of vector data.

0xfurai/claude-code-subagents · 22 tokens

vector-db-expert

Expert in vector database selection, optimization, and production deployment.

jeremylongshore/plugins-nixtla · 16 tokens