Example

Example RAG Prompt for the 2028 Olympics Question

In Retrieval-Augmented Generation, retrieved texts are used as additional context to prompt a Large Language Model, enabling it to generate a response based on that specific information. A complete RAG prompt typically includes instructions, the user's question, and the retrieved texts. For instance, to find the location of the 2028 Olympics, the LLM could be given the following prompt: 'Your task is to answer the following question. To help you with this, relevant texts are provided. Please base your answer on these texts. Please note that your answers need to be as accurate as possible and faithful to the facts. If the information provided is insufficient for an accurate response, you may simply output "No answer!". Where will the 2028 Olympics be held? The information regarding this question is given as follows:' This structure clearly separates the task instructions from the context the model should use.

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