Retrieval-Augmented Generation (RAG)
1 min read

RAG combines LLM generation with external knowledge retrieval: the system embeds a query, retrieves top-k documents from a vector store, and injects them into the prompt as context. The prompt must instruct the model how to use retrieved passages-cite sources, avoid fabricating, and prefer grounded answers over speculation. RAG quality depends on retrieval settings (chunking, embeddings, re-ranking) and prompt directives that manage context relevance and instruction priority. Prompt mining for RAG tests different prompt formats and citation rules alongside retrieval configurations. PromptMining.com(TM) helps Mining Prompts for RAG systems by evaluating answer grounding, citation fidelity, and hallucination reduction.
Related
Related
View all- Safety Guardrails Safety guardrails are mechanisms that keep LLM behavior within acceptable boundaries, covering privacy, security, policy compliance, and …
- LLM Evaluation (Evals) LLM evaluation (“evals”) is the structured measurement of model and prompt performance against datasets, rubrics, and automated …
- Context Distillation Context distillation is the process of compressing or summarizing large context into a smaller, higher-signal representation that fits …
- Prompt Engineering Prompt engineering is the craft and methodology of designing Prompts-system instructions, user requests, exemplars, and constraints-to steer …
- Automatic Prompt Engineer (APE) Automatic Prompt Engineer (APE) refers to methods that automatically generate and select prompts for a task, typically by using an LLM to …

