Task Definition and Grounding in RAG Prompts
A core component of a prompt for Retrieval-Augmented Generation involves setting explicit instructions for the model. This includes defining the primary task, such as answering a question, and grounding the model by directing it to base its response exclusively on the provided texts.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Related
Example Prompt Instruction for Faithfulness and Abstention
A developer is constructing a message to send to a large language model to answer a user's question based on a retrieved document. The developer has the following three components:
- The Instruction:
You are a helpful assistant. Answer the user's question based *only* on the provided text. If the information is not in the text, state that the answer cannot be found. - The User's Question:
What is the boiling point of ethanol? - The Retrieved Context:
Ethanol, a volatile, flammable, colorless liquid, has a boiling point of 78.37 °C.
Which of the following arrangements of these components creates the most effective and logically structured message for the model to process and follow the instructions correctly?
- The Instruction:
Diagnosing a Faulty Q&A System Prompt
Task Definition and Grounding in RAG Prompts
Constructing a RAG Prompt
Learn After
Example RAG Prompt for the 2028 Olympics Question
A developer is building a system that uses a large language model to answer questions based only on a provided set of technical manuals. The system's highest priority is to avoid providing information that is not explicitly stated in the manuals. Which of the following instructions, when included in the prompt, is best designed to achieve this goal?
Diagnosing and Correcting a Factual Inconsistency Issue
Crafting RAG Prompt Instructions