vector-db-ops

vector-db-ops is a skill for Claude Code from oyi77/1ai-skills. It costs 52 tokens per session (1,484 once invoked), scanned A, original, MIT.

A guide to storing and searching vector embeddings in databases such as Pinecone, Weaviate, Qdrant, and ChromaDB. Vector embeddings are numerical representations used to find similar text, images, or code.

In plain words
What is it for?
Use it to create indexes, store embeddings, filter metadata, run similarity or hybrid searches, and manage vector-database backups, scaling, and monitoring.
Why use it?
It helps handle the database work behind semantic search, recommendations, and RAG, where an AI retrieves relevant information before answering.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the 1ai-skills plugin — 187 skills, 4 commands shipped together

Good fit Use it to create indexes, store embeddings, filter metadata, run similarity or hybrid searches, and manage vector-database backups, scaling, and monitoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/oyi77/1ai-skills/vector-db-ops
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 oyi77/1ai-skills --skill vector-db-ops
Clone the repo
git clone --depth 1 https://github.com/oyi77/1ai-skills

Made for: Claude Code.

Or install 1ai-skills, the plugin that ships this one along with the rest of its 187 skills, 4 commands.

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-db-ops

README.md
[![agentmods](https://agentmods.dev/badge/skills/oyi77/1ai-skills/vector-db-ops/github.svg)](https://agentmods.dev/skills/oyi77/1ai-skills/vector-db-ops)
Your own site
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/vector-db-ops"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/vector-db-ops/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-db-ops

Your own site · 80×15
<a href="https://agentmods.dev/skills/oyi77/1ai-skills/vector-db-ops"><img src="https://agentmods.dev/badge/skills/oyi77/1ai-skills/vector-db-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,484 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00052 $0.01484
Opus 5 $0.00026 $0.00742
Sonnet 5 $0.00010 $0.00297
Haiku 4.5 $0.00005 $0.00148

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

Security

Grade A, and why

vector-db-ops 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 5d 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.

core/vector-db-ops/SKILL.md · 221 lines

How it starts

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

Overview

Vector database operations for AI applications. Covers embedding generation, index creation, metadata filtering, hybrid search, and production deployment across Pinecone, Weaviate, Qdrant, and ChromaDB.

Capabilities

  • Generate and store vector embeddings from text, images, and code
  • Create and manage collections with metadata schemas
  • Perform semantic similarity search with filters
  • Implement hybrid search (dense + sparse vectors)
  • Optimize index parameters for speed and recall
  • Manage vector database lifecycle (backup, scaling, monitoring)

When to Use

Trigger phrases:

  • "vector db ops"

  • "Vector database operations — Pinecone, Weaviate, Qdrant, ChromaDB"

  • Building RAG (Retrieval-Augmented Generation) systems

  • Implementing semantic search for documents or products

  • Creating recommendation engines based on similarity

  • Building memory systems for AI agents

  • Implementing image/code similarity search

When NOT to Use

  • Task is outside your authorization scope
  • You need to implement controls (use implementing-* skills)
  • Task is about analysis, not action (use analyzing-* skills)
  • You don't have access to target systems
  • Task requires compliance expertise (consult professionals)
  • Task is about defense, not offense (use defensive skills)

Pseudo Code

# Example workflow for this skill
def execute(input_data):
    # Step 1: Validate input
    if not input_data:
        raise ValueError("Input data is required")

    # Step 2: Process core logic
    result = process(input_data)

    # Step 3: Validate output
    validate_output(result)

    return result

Pinecone

import pinecone
from openai import OpenAI

# Initialize
pc = pinecone.Pinecone(api_key="YOUR_API_KEY")
index = pc.Index("my-index")

# Upsert vectors
openai = OpenAI()
response = openai.embeddings.create(input=["text"], model="text-embedding-3-small")
embeddings = response.data[0].embedding

index.upsert(vectors=[{
    "id": "doc-1",
    "values": embeddings,
    "metadata": {"source": "pdf", "page": 42}
}])

# Query
results = index.query(vector=query_embedding, top_k=10, include_metadata=True,
                       filter={"source": {"$eq": "pdf"}})

Read the full file on GitHub · 221 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. 5d ago First seen · 221 lines · 52 tokens per session scan A d201128702c8

Subscribe to this mod's changes

vector-db-ops is a skill published in the GitHub repository oyi77/1ai-skills (12 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,484 once invoked, about $0.0003 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-09-04.

Related

Other skills, from other repositories