vector-db-rag-expert

vector-db-rag-expert is a skill for Cursor from roedyrustam/vibes-plug. It costs 77 tokens per session (2,734 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 Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the vibes-plug plugin — 171 skills, 8 agents, 2 MCP servers shipped together

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: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 171 skills, 8 agents, 2 MCP servers.

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/github.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/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-rag-expert

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,734 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.00077 $0.02734
Opus 5.5 $0.00031 $0.01094
Sonnet 5.5 $0.00015 $0.00547
Haiku 4.5 $0.00008 $0.00273

Measured 2d ago against content hash 51053a64604c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

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.

.cursor/skills/vector-db-rag-expert/SKILL.md · 276 lines

How it starts

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

Vector DB & Deep RAG Expert (2026 Edition)

English | Bahasa Indonesia


English

Orchestration & Integration

  • Upstream AI Models & Embeddings: ai-llm-integration-expert, frontier-ai-models-expert, vercel-ai-sdk-expert
  • Database & Storage Engines: database-orm-expert, graph-rag-knowledge-expert, search-engine-expert
  • Retrieval & Pipeline Tooling: xerj-search-expert, llm-finops-router, context-window-engineer
  • Security & Quality: prompt-injection-firewall, ai-safety-governance-expert, anti-slop
  • Lifecycle & Governance: zero-to-prod-orchestrator, session-memory-manager

Purpose & Overview

Production-grade architectural guide for Vector Databases (PostgreSQL pgvector 0.8+, Qdrant, LanceDB, Pinecone), Deep RAG indexing strategies, HNSW iterative search, Contextual Retrieval (Anthropic 2026 standard), Reciprocal Rank Fusion (RRF) hybrid retrieval, Cross-Encoder Re-ranking (FlashRank, BGE-Reranker-v2), and Late Chunking to eliminate context fragmentation.

Key Capabilities

  1. pgvector 0.8+ & Halfvec / Sparsevec: High-dimensional vector storage with 50% RAM savings using halfvec, native BM25 sparse vectors via sparsevec, and iterative HNSW index scans with metadata filtering.
  2. Contextual Retrieval (Anthropic 2026 Standard): Prepend 50-100 token LLM-generated document context to each chunk before embedding and BM25 indexing, reducing failed retrieval rates by up to 67%.
  3. Reciprocal Rank Fusion (RRF): Combining sparse keyword BM25 ranks with dense semantic vector ranks using $RRF(d) = \sum \frac{1}{k + rank(d)}$ ($k = 60$).
  4. Cross-Encoder Re-ranking: Two-stage retrieval pipeline: retrieve Top-50 candidates via fast hybrid search, then re-rank down to Top-5 using a cross-encoder model to maximize NDCG@10.
  5. Late Chunking: Embed long-context documents in full before pooling token embeddings into individual chunks, preserving document-level semantics across boundaries.

Read the full file on GitHub · 276 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 Changed · +65 lines · +77 tokens per session 51053a64604c
  2. 3d ago Changed · +2 lines · -77 tokens per session b7542ced7ea8
  3. 6d ago Changed 4b98afbd1ea6
  4. 15d ago Changed 2cd82d048a13
  5. 20d ago Changed 0f1eca542b60
  6. 21d ago Changed f15ba4bcd57b
  7. 23d ago Changed · -6 lines · +63 tokens per session e51ab98e1e39
  8. 25d ago Changed · +6 lines · -63 tokens per session dc989b594e15
  9. 1mo ago Changed 8e83ffa0e065
  10. 1mo ago First seen · 209 lines · 77 tokens per session scan A d61454bf1a15

Subscribe to this mod's changes

vector-db-rag-expert is a skill published in the GitHub repository roedyrustam/vibes-plug (113 stars, last pushed yesterday), licensed MIT. It adds 77 tokens to every session and 2,734 once invoked, about $0.0003 per session on Opus 5.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

ai-engineering-toolkit

Overview of six AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

seek

Designing search engines and vector DBs for full-text, vector, and hybrid retrieval, including permission-aware retrieval for multi-tenant or per-role corpora. Use for search design, index optimization, the RAG retrieval layer, or deciding where ACL filtering belongs in the query path.

simota/agent-skills · 59 tokens

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 tuning pgvector, azureai SQL functions, LangChain vector stores, Apache AGE…

MicrosoftDocs/Agent-Skills · 110 tokens

neo4j

Expert Neo4j graph database assistance covering Cypher query language, node/edge labeling, graph algorithms, and APOC. Use when modeling connected data, recommendation engines, fraud detection, or knowledge graphs.

G1Joshi/Agent-Skills · 45 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

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

lingxling/awesome-skills-cn · 47 tokens