MemotivaPrompt Engineering Patterns: Generated Knowledge, RAG Prompts, Citation and Grounding Techniques

What is a RAG prompt and how does it differ from a normal prompt?

Prompt Engineering Patterns: Generated Knowledge, RAG Prompts, Citation and Grounding Techniques

Audio flashcard · 0:19

Nortren·

What is a RAG prompt and how does it differ from a normal prompt?

0:19

A RAG prompt is a prompt that includes retrieved documents as context, with instructions to answer based on them. It typically has three sections: retrieved chunks marked as context, the user's question, and instructions to ground the answer in the context and cite sources. RAG prompts are how retrieval-augmented generation systems instruct the model to use external knowledge.
docs.anthropic.com