rag

Build retrieval-augmented generation pipelines with vector databases and document chunking.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill rag-rizaldiem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag
Source: https://github.com/rizaldiem/digital-invitation-web_V2/tree/main/.windsurf/skills/rag
Command: npx skills add https://github.com/rizaldiem/digital-invitation-web_V2 --skill rag-rizaldiem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Provide reliable, grounded answers by retrieving relevant information from external documents and injecting that context into language model prompts to reduce hallucinations and improve factual accuracy.

Core Features & Use Cases

  • End-to-end RAG patterns: guidance for selecting vector databases, embedding models, chunking strategies, and retrieval pipelines.
  • Retrieval strategies: dense, sparse, hybrid retrieval, metadata filtering, reranking, and contextual compression for higher precision.
  • Use Cases: document Q&A, knowledge-grounded chatbots, semantic search over proprietary corpora, research assistants, and documentation tools with source citation.

Quick Start

Use the rag skill to ingest your documents, generate embeddings, store them in a vector database, and ask natural language questions to receive grounded answers with cited sources.

Frequently Asked Questions about rag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to reduce LLM hallucinations using semantic search?

To build a retrieval-augmented generation pipeline, ingest your documents, generate embeddings, store them in a vector database, and inject retrieved context into language model prompts for grounded document Q&A.

How do I implement hybrid dense and sparse retrieval with metadata filtering?

To reduce LLM hallucinations, use semantic search to retrieve relevant document context from a vector database and inject that grounding information into your language model prompts for factual accuracy.

Can I use contextual compression and reranking to improve retrieval precision?

Implement hybrid dense and sparse retrieval with metadata filtering by combining vector embeddings and keyword matching, applying metadata constraints to narrow the search scope, and reranking results for higher precision.

How do I evaluate retrieval-augmented generation metrics for precision and faithfulness?

Yes, you can apply contextual compression and reranking to improve retrieval precision by filtering relevant document chunks and reordering search results before injecting the context into language model prompts.

Do I need a vector database to create a knowledge-grounded chatbot?

Evaluate retrieval-augmented generation metrics for precision and faithfulness by measuring how accurately the injected document context answers queries and verifying the language model outputs remain grounded in cited sources.

Do I need a vector database to create a knowledge-grounded chatbot?

Yes, a vector database is needed to create a knowledge-grounded chatbot because it stores generated embeddings and performs the semantic search required to retrieve relevant document context for prompt conditioning.