Skip to content
GDFN domain marketplace banner

Retrieval-Augmented Generation (RAG)

1 min read
Featured image for Retrieval-Augmented Generation (RAG)

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.