data-vector-databases

data-vector-databases is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 90 tokens per session (2,069 once invoked), scanned A, original, MIT.

A guide for choosing and designing vector databases, which store numeric representations of content so similar items can be found quickly.

In plain words
What is it for?
Use it to choose a vector store, design its collections and metadata, tune nearest-neighbour search, and plan recall testing.
Why use it?
It addresses the practical choices behind similarity search, including storage, indexes, metadata filters, scale, speed, and accuracy.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to choose a vector store, design its collections and metadata, tune nearest-neighbour search, and plan recall testing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/j4flmao/agent-skills/vector-databases
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.

Any agent
npx skills add j4flmao/agent-skills --skill vector-databases
Clone the repo
git clone --depth 1 https://github.com/j4flmao/agent-skills

Made for: Claude Code, Codex.

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 data-vector-databases

README.md
[![agentmods](https://agentmods.dev/badge/skills/j4flmao/agent-skills/vector-databases/github.svg)](https://agentmods.dev/skills/j4flmao/agent-skills/vector-databases)
Your own site
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/vector-databases"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/vector-databases/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-vector-databases

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/vector-databases"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/vector-databases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,069 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.00090 $0.02069
Opus 5.5 $0.00036 $0.00828
Sonnet 5.5 $0.00018 $0.00414
Haiku 4.5 $0.00009 $0.00207

Measured 12d ago against content hash 50ae58ba4b0a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-vector-databases 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 12d 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.

skills/data/vector-databases/SKILL.md · 143 lines

How it starts

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

Vector Databases

Purpose

Store embedding vectors with metadata and return the nearest neighbors of a query vector fast enough for interactive use. Exact search compares the query with every vector (O(N·d)); approximate nearest neighbor (ANN) indexes trade a measurable amount of recall for large speedups. The work is choosing the store, the index and its parameters, and proving recall on your own data.

Agent Protocol

Trigger

"vector database", "vector db", "pgvector", "qdrant", "milvus", "pinecone", "weaviate", "hnsw", "ivfflat", "ivf-pq", "ann", "similarity search", "store embeddings", "hybrid search", "recall@k".

Input Context

  • Number of vectors now and in 12 months, dimensions, embedding model, update rate.
  • Query latency SLO and QPS, filter requirements (tenant, ACL, dates), existing database.
  • Accuracy target (recall@k vs exact search).

Output Artifact

Store choice + schema + index parameters + evaluation plan. No file unless requested.

Response Format

Scale: {N vectors} x {d dims} {dtype} ≈ {GB raw}
Store: {pgvector|Qdrant|Milvus|managed...} because {reason}
Index: {HNSW m/ef_construction/ef_search | IVF nlist/nprobe | +PQ/quantization}
Filtering: {pre/in-index/post}
Eval: recall@{k} vs exact on {n} queries, p95 latency

Completion Criteria

  • Distance metric matches how the embedding model was trained (cosine / dot / L2).
  • Recall@k measured against exact (brute-force) results on a sample of real queries.
  • Filters applied inside the query, with a check that filtered queries still return k results.
  • Re-embedding plan when the model changes (never mix models in one index).

Embeddings Basics

  • Embedding models map text/images to fixed-length float vectors; similar meaning → nearby vectors. Dimensions depend on the model (e.g. OpenAI text-embedding-3-small defaults to 1536 and can be shortened with its dimensions parameter).
  • Normalize vectors to unit length to make cosine similarity equal to dot product (faster in most engines).
  • Memory: N x d x 4 bytes for float32. 10M x 1536 ≈ 61 GB raw, before index overhead.

Read the full file on GitHub · 143 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago Changed · +4 lines · -80 tokens per session 50ae58ba4b0a
  2. 13d ago First seen · 139 lines · 170 tokens per session scan A 7948725bab60

Subscribe to this mod's changes

data-vector-databases is a skill published in the GitHub repository j4flmao/agent-skills (46 stars, last pushed 13d ago), licensed MIT. It adds 90 tokens to every session and 2,069 once invoked, about $0.0004 per session on Opus 5.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-11-17.

Related

data-vector-databases compared with skills from other repositories

data-vector-databases next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-vector-databasesj4flmao/agent-skillsSkill4613d agoMITA90Claude Code, Codex
vector-databasesLuuOW/meridian-mcpSkill01mo agoMITA71Claude Code, Codex
chromadbalivirgo/Major-AI-SkillsSkill6yesterdayMITA39Claude Code
rag-qdrantdavila7/claude-code-templatesSkill34ktodayMITA45Claude Code, Codex
chromasynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A63Claude Code, Codex
rag-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A97Claude Code
chromaOrchestra-Research/AI-Research-SKILLsSkill15k1mo agoMITA63Claude Code