vector-db-rag-expert

vector-db-rag-expert is a skill for Claude Code, Codex from roedyrustam/vibes-plug. It costs 62 tokens per session (838 once invoked), scanned A, original, MIT.

A guide to vector databases and retrieval-augmented generation (RAG), a way to let an AI find relevant information in a document collection before answering.

In plain words
What is it for?
It helps design pgvector, Qdrant, Pinecone, or Milvus searches, including combined semantic and keyword search and RAG quality checks.
Why use it?
It helps address poor document retrieval by covering how to store, search, rank, split, and evaluate information for AI systems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps design pgvector, Qdrant, Pinecone, or Milvus searches, including combined semantic and keyword search and RAG quality checks.

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

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-db-rag-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/vector-db-rag-expert.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/vector-db-rag-expert)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/vector-db-rag-expert"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/vector-db-rag-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 838 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.00062 $0.00838
Opus 5 $0.00031 $0.00419
Sonnet 5 $0.00012 $0.00168
Haiku 4.5 $0.00006 $0.00084

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

Security

Grade A, and why

vector-db-rag-expert 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 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.

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/vector-db-rag-expert/SKILL.md · 71 lines

How it starts

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

Vector DB & Deep RAG Expert

English | Bahasa Indonesia


English

Purpose & Overview

Production-grade guidelines for Vector Databases (pgvector, Qdrant, Pinecone, Milvus), RAG indexing strategies, HNSW vector search, hybrid retrieval (dense vector embeddings + BM25 sparse keyword ranking), semantic document chunking, and RAG evaluation frameworks.

Key Capabilities

  • pgvector & Hybrid Search: PostgreSQL pgvector HNSW indexing, cosine/L2 distance metric tuning, and BM25 hybrid re-ranking.
  • RAG Architecture: Parent-Document retrieval, Hypothetical Document Embeddings (HyDE), and contextual compression.
  • RAG Evaluation: Automated retrieval quality scoring using Ragas and TruLens.
import { sql } from 'drizzle-orm';

// Hybrid Search: Vector Cosine Similarity + Full Text Search
export async function hybridSearch(queryVector: number[], queryText: string, limit = 10) {
  const result = await db.execute(sql`
    SELECT id, title, content,
           (1 - (embedding <=> ${JSON.stringify(queryVector)}::vector)) * 0.7 +
           ts_rank(fts, websearch_to_tsquery('english', ${queryText})) * 0.3 AS score
    FROM documents
    ORDER BY score DESC
    LIMIT ${limit};
  `);
  return result;
}

Implementation Checklist

  • Enable pgvector extension in PostgreSQL and create an hnsw index on the embedding column.
  • Implement Semantic Chunking (breaking documents by semantic boundaries rather than fixed character lengths).
  • Combine Vector Cosine Similarity with Full Text Search (BM25) using a weighted score (Hybrid Search).
  • Generate Hypothetical Document Embeddings (HyDE) to improve retrieval recall.

Orchestration & Integration

  • Integrates with: ai-llm-integration-expert, database-orm-expert, app-analyzer-optimizer.

Bahasa Indonesia

Deskripsi

Panduan tingkat produksi untuk Vector Database (pgvector, Qdrant, Pinecone, Milvus), arsitektur RAG, indeks pgvector HNSW, hybrid search (dense + BM25 sparse re-ranking), semantic chunking, dan evaluasi RAG.

Read the full file on GitHub · 71 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 · 71 lines · 62 tokens per session scan A 4b259133972e

Subscribe to this mod's changes

vector-db-rag-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (49 stars, last pushed today), licensed MIT. It adds 62 tokens to every session and 838 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-03.

Related

Other skills, from other repositories

azure-horizondb

Expert knowledge for Azure Horizondb development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using azureai SQL/embeddings, pgvector tuning, Apache AGE graphs, hybrid…

MicrosoftDocs/Agent-Skills · 95 tokens

cloud-sql-postgres-vectorassist

Use these skills to set up and optimize production-ready vector workloads by simply expressing your intent and performance requirements.

tmolavi/mcp-agent-skills-hub · 29 tokens

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

postgres-hybrid-text-search

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). Trigger when user asks to: Combine keyword and semantic search Implement hybrid search or multi-modal retrieval Use BM25/pgtextsearch with pgvector together Implement RRF (Reciprocal…

timescale/pg-aiguide · 162 tokens

ai-vector-brain

Builds vector-brain implementations for repos, docs hubs, and compliance corpora. Use when creating pgvector retrieval brains with scripts, SQL, manifests, and evals.

vasilyu1983/AI-Agents-public · 40 tokens

postgres-semantic-search

PostgreSQL-based semantic and hybrid search with pgvector and ParadeDB. Use when implementing vector search, semantic search, hybrid search, or full-text search in PostgreSQL. Covers pgvector indexing, hybrid FTS/BM25 + RRF, ParadeDB, reranking, halfvec, multilingual search, query translation, and domain evals.…

laguagu/claude-code-nextjs-skills · 228 tokens