vector-databases

vector-databases is a skill for Claude Code, Codex from furkangonel/cowrangler. It costs 21 tokens per session (3,284 once invoked), scanned B, original, MIT.

A guide to vector databases, which store numerical representations of text or other items so they can be searched by meaning. RAG, or retrieval-augmented generation, retrieves relevant stored information before an AI model writes an answer.

In plain words
What is it for?
Use it to create embeddings, store and search them with systems such as ChromaDB or pgvector, build semantic search, and assemble RAG pipelines.
Why use it?
It helps build searches that find related content even when the wording differs from the query, and provides a basis for document-questioning systems.

Skill for Claude CodeCodex

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.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/furkangonel/cowrangler/vector-databases.svg)](https://agentmods.dev/skills/furkangonel/cowrangler/vector-databases)
Your own site
<a href="https://agentmods.dev/skills/furkangonel/cowrangler/vector-databases"><img src="https://agentmods.dev/badge/skills/furkangonel/cowrangler/vector-databases.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,284 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
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 $0.00021 $0.03284
Opus 5 $0.00010 $0.01642
Sonnet 5 $0.00004 $0.00657
Haiku 4.5 $0.00002 $0.00328

Measured 4d ago against content hash 5579c104d24b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

vector-databases scanned grade B with 2 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 4d 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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

r = requests.post("http://localhost:11434/api/embeddings",

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

r = requests.post("http://localhost:11434/api/embeddings",
bundled_skills/mlops/vector-databases/SKILL.md · 422 lines

How it starts

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

Vector Databases SOP

Embed documents, store vectors, run similarity search, and build RAG retrieval pipelines using ChromaDB, pgvector, and popular embedding models.

When to Use

  • User wants to build semantic search over a document corpus
  • User wants to implement a RAG (Retrieval-Augmented Generation) pipeline
  • User wants to store and query embeddings efficiently
  • User wants to find similar items by meaning, not keyword
  • User wants to choose between embedding models and vector stores

Part 1 — Embedding Model Selection

Model Provider Dims Best For Cost
text-embedding-3-small OpenAI 1536 General purpose, fast ~$0.02/1M tokens
text-embedding-3-large OpenAI 3072 Higher accuracy ~$0.13/1M tokens
all-MiniLM-L6-v2 sentence-transformers 384 Local, fast, English Free
all-mpnet-base-v2 sentence-transformers 768 Local, balanced quality Free
BAAI/bge-m3 HuggingFace 1024 Multilingual, local Free
nomic-embed-text Ollama 768 Local, good quality Free
mxbai-embed-large Ollama 1024 Local, high quality Free

OpenAI Embeddings

import os
from openai import OpenAI

client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])

def embed_openai(texts: list[str], model="text-embedding-3-small") -> list[list[float]]:
    """Embed a batch of texts. Max 2048 inputs per call."""
    # Replace newlines — they degrade embedding quality
    texts = [t.replace("\n", " ") for t in texts]
    response = client.embeddings.create(input=texts, model=model)
    return [item.embedding for item in response.data]

# Single text
vec = embed_openai(["Hello world"])[0]
print(f"Dimension: {len(vec)}")

Sentence-Transformers (local)

# pip install sentence-transformers
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("all-MiniLM-L6-v2")

def embed_local(texts: list[str]) -> list[list[float]]:
    embeddings = model.encode(texts, batch_size=64, show_progress_bar=True, normalize_embeddings=True)
    return embeddings.tolist()

vecs = embed_local(["Semantic search is powerful", "Vector databases store embeddings"])
print(f"Shape: {len(vecs)} x {len(vecs[0])}")

Read the full file on GitHub · 422 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. 4d ago First seen · 422 lines · 21 tokens per session scan B 5579c104d24b

Subscribe to this mod's changes

vector-databases is a skill published in the GitHub repository furkangonel/cowrangler (2 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 3,284 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vector-collection-management

Create, populate, list, and delete vector-store collections through the vector-mcp MCP server's vectorcollectionmanagement tool. Use when the agent must stand up a new RAG collection, ingest documents (from a directory, file paths/URLs, or raw text) into an existing collection, enumerate collections, or drop one …

Knuckles-Team/vector-mcp · 123 tokens

chroma

Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…

synthetic-sciences/openscience · 63 tokens

vector-backend-operations

Select and connect the right vector-store backend for the vector-mcp MCP server — chromadb, postgres/pgvector, qdrant, couchbase, or mongodb — and supply the correct dbtype/connection parameters that every collection and search call needs. Use when the agent must decide which engine to target, wire up…

Knuckles-Team/vector-mcp · 113 tokens

RAG Workflow Planner

Designs a complete Retrieval-Augmented Generation (RAG) pipeline for a given use case, including chunking strategy, embedding model selection, and retrieval approach.

Notysoty/openagentskills · 37 tokens

vector-mcp-operations

Operate vector-mcp through its governed MCP and GraphOS capabilities. Use for collection lifecycle, root-confined document ingestion, semantic or lexical retrieval, hybrid search, backend readiness, troubleshooting, and sanitized verification evidence.

Knuckles-Team/vector-mcp · 48 tokens

data-scientist

!cat skills/shared/protocols/ux-protocol.md 2>/dev/null || true !cat skills/shared/protocols/input-validation.md 2>/dev/null || true !cat skills/shared/protocols/tool-efficiency.md 2>/dev/null || true !cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults".

buiphucminhtam/forgewright · 52 tokens