rag-engineer

Orchestrate document retrieval and generation for end-to-end RAG workflows.

Updated Mar 17, 2026
One-click install
npx skills add https://github.com/HemantSudarshan/Dhumichatbot --skill rag-engineer-hemantsudarshan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-engineer
Source: https://github.com/HemantSudarshan/Dhumichatbot/tree/main/skills/01-ai-core/rag-engineer
Command: npx skills add https://github.com/HemantSudarshan/Dhumichatbot --skill rag-engineer-hemantsudarshan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Builds end-to-end retrieval-augmented generation workflows by coordinating document retrieval, chunking, and context injection to improve accuracy and reduce hallucinations.

Core Features & Use Cases

  • Vector embeddings and similarity search for fast, relevant retrieval
  • Document chunking and preprocessing that preserve meaning and context
  • Retrieval pipeline design that combines multiple stages (coarse → fine) and reranking
  • Semantic search and hybrid search for flexible querying
  • Context window optimization to maximize relevant context
  • Use Case: Create a RAG workflow over a large document collection, then answer user questions with cited sources

Quick Start

Provide a starting workflow to assemble a RAG pipeline with your corpus, embedding model, and retriever, then run a test query to validate results.

Frequently Asked Questions about rag-engineer

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

FAQPage Schema
How do I build a retrieval-augmented generation pipeline to reduce LLM hallucinations?

Build a retrieval-augmented generation pipeline by orchestrating document chunking, vector search, and context injection to ground LLM responses in retrieved facts, reducing hallucinations. You configure semantic chunking and a retrieval pipeline to inject relevant context into generation workflows.

What's the best way to implement semantic chunking for a document collection?

Implement semantic chunking by preprocessing documents into segments that preserve meaning and context before generating vector embeddings. This approach maintains semantic integrity during retrieval pipeline design, ensuring the retrieved chunks provide coherent context to the LLM.

How does vector search and hybrid retrieval improve context injection for LLMs?

Vector search and hybrid retrieval improve context injection by combining coarse-to-fine retrieval stages and reranking to maximize relevant context. This multi-stage approach optimizes the context window, ensuring the LLM receives the most accurate and pertinent information for generation.

Do I need a separate embedding model and vector store to set up a RAG workflow?

Yes, you need a separate embedding model and a vector store to set up a RAG workflow. The pipeline requires integration with these external components to generate vector embeddings and perform similarity search before context injection into the LLM.

Can I combine multiple retrieval stages and reranking in a single RAG pipeline?

Yes, you can combine multiple retrieval stages and reranking in a single RAG pipeline. The workflow supports retrieval pipeline design that integrates coarse-to-fine stages and reranking, enabling flexible semantic and hybrid search querying across your document collection.

Why does my retrieval-augmented generation workflow return irrelevant context from my vector store?

Your retrieval-augmented generation workflow returns irrelevant context when semantic chunking fails to preserve meaning or the vector search lacks reranking. Optimize your retrieval pipeline design by combining coarse-to-fine stages and hybrid search to maximize relevant context window utilization.