vector-database-ops

vector-database-ops is a skill for Claude Code, Codex from BagelHole/DevOps-Security-Agent-Skills. It costs 54 tokens per session (2,150 once invoked), scanned A, original, MIT.

A guide to operating vector databases, which store numerical representations of text or other data so applications can find similar items. It covers Qdrant, Weaviate, pgvector, Pinecone, and Chroma for semantic search and RAG, a method of answering with retrieved source material.

In plain words
What is it for?
Use it to run collections and indexes, choose a vector database, set up production RAG or semantic search, configure backups, and support multi-tenant search.
Why use it?
It helps you choose, deploy, and maintain the storage layer behind AI search and retrieval systems. It addresses indexing, backups, performance, migrations, and separating data between customers.

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/bagelhole/devops-security-agent-skills/vector-database-ops
Any agent
npx skills add BagelHole/DevOps-Security-Agent-Skills --skill vector-database-ops
Clone the repo
git clone --depth 1 https://github.com/BagelHole/DevOps-Security-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 vector-database-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/vector-database-ops.svg)](https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/vector-database-ops)
Your own site
<a href="https://agentmods.dev/skills/bagelhole/devops-security-agent-skills/vector-database-ops"><img src="https://agentmods.dev/badge/skills/bagelhole/devops-security-agent-skills/vector-database-ops.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,150 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.1 $0.00054 $0.02150
Opus 5 $0.00027 $0.01075
Sonnet 5 $0.00011 $0.00430
Haiku 4.5 $0.00005 $0.00215

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

Security

Grade A, and why

vector-database-ops scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

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

curl -X POST "http://localhost:6333/collections/documents/snapshots"
infrastructure/databases/vector-database-ops/SKILL.md · 286 lines

How it starts

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

Vector Database Operations

Run production vector databases for AI-powered search, RAG, and recommendation systems.

When to Use This Skill

Use this skill when:

  • Setting up a vector database for a RAG or semantic search application
  • Choosing between Qdrant, Weaviate, pgvector, or Pinecone
  • Managing collections, indexes, and data migrations
  • Optimizing query performance and indexing for production loads
  • Implementing multi-tenant vector search with namespace isolation

Vector Database Comparison

Database Best For Hosting Filtering Scale
Qdrant High-performance, rich filtering, self-hosted Self / Cloud Excellent Very High
Weaviate Schema-first, hybrid search, multi-modal Self / Cloud Good High
pgvector Already on Postgres, simple use cases Self Good Medium
Pinecone Zero-ops managed, serverless Managed only Good Very High
Chroma Local dev, prototyping Self only Basic Low-Medium

Qdrant — Production Deployment

# Docker (single node)
docker run -d \
  --name qdrant \
  -p 6333:6333 \
  -p 6334:6334 \
  -v $(pwd)/qdrant-data:/qdrant/storage \
  qdrant/qdrant:latest

# With custom config
docker run -d \
  --name qdrant \
  -p 6333:6333 \
  -v $(pwd)/qdrant-data:/qdrant/storage \
  -v $(pwd)/qdrant-config.yaml:/qdrant/config/production.yaml \
  qdrant/qdrant:latest
# qdrant-config.yaml
storage:
  storage_path: /qdrant/storage
  on_disk_payload: true          # store payload on disk (saves RAM)

service:
  max_request_size_mb: 32

hnsw_index:
  m: 16                          # graph connections per node
  ef_construct: 100              # accuracy vs build time trade-off
  full_scan_threshold: 10000     # switch to brute force below this

quantization:
  scalar:
    type: int8
    quantile: 0.99
    always_ram: true             # keep quantized index in RAM

telemetry_disabled: true

Qdrant Collection Management

Read the full file on GitHub · 286 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. 2d ago First seen · 286 lines · 54 tokens per session scan A c9e8f6f8a31e

Subscribe to this mod's changes

vector-database-ops is a skill published in the GitHub repository BagelHole/DevOps-Security-Agent-Skills (1,037 stars, last pushed 3mo ago), licensed MIT. It adds 54 tokens to every session and 2,150 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.