Concept

Structure of a Complete RAG Prompt for Question Answering

A complete prompt for a Retrieval-Augmented Generation (RAG) system typically combines three key components: an instruction, the user's question, and the retrieved context. The instruction guides the model on how to utilize the provided information. This is followed by the user's query. Finally, the retrieved texts are presented, often introduced by a transitional phrase like The information regarding this question is given as follows:, to provide the necessary context for generating an answer.

0

1

Updated 2026-05-02

Contributors are:

Who are from:

Tags

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Related