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

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

Good fit Use it to create embeddings, store and search them with systems such as ChromaDB or pgvector, build semantic search, and assemble RAG pipelines.

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/furkangonel/cowrangler/vector-databases"><img src="https://agentmods.dev/badge/skills/furkangonel/cowrangler/vector-databases.svg" alt="Reviewed on agentmods" width="80" 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. 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.00021 $0.03284
Opus 5.5 $0.00008 $0.01314
Sonnet 5.5 $0.00004 $0.00657
Haiku 4.5 $0.00002 $0.00328

Measured 1mo ago against content hash 5579c104d24b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (1 stars, last pushed 1mo ago), licensed MIT. It adds 21 tokens to every session and 3,284 once invoked, about $0.0001 per session on Opus 5.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 Databases

Guides retrieval-store design, indexing, and query behavior for embedding-backed systems without confusing storage with application truth.

agentic-in/elephant-agent · 26 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-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

qdrant-vector-search

High-performance vector similarity search engine for RAG and semantic search. Use when building production RAG systems requiring fast nearest neighbor search, hybrid search with filtering, or scalable vector storage with Rust-powered performance.

synthetic-sciences/openscience · 46 tokens

llm-ops

LLM Operations -- RAG, embeddings, vector databases, fine-tuning, prompt engineering avancado, custos de LLM, evals de qualidade e arquiteturas de IA para producao.

davila7/claude-code-templates · 44 tokens

local-embedding

Run embedding on-device with ONNX Runtime. Build from source, model selection, offline mode. Use when setting up local embedding without an API key.

matrixorigin/memoria · 34 tokens