Learn Before
Example Question for RAG-Based Answering
The question 'Where will the 2028 Olympics be held?' serves as a practical example to illustrate how a Large Language Model can be prompted to generate an answer based on retrieved texts.
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Computing Sciences
Foundations of Large Language Models Course
Related
Example Question for RAG-Based Answering
Challenge of Inaccurate Text Retrieval in RAG
Controlling LLM Dependency on Retrieved Context in RAG
Challenge of Developing a Universal Prompting Strategy for RAG
Structure of a Complete RAG Prompt for Question Answering
A system is designed to answer user questions by first finding a relevant text and then using a language model to generate a response based only on the information within that text. A user asks, 'What are the primary health benefits of regular exercise?' The system retrieves the following text: 'Consistent physical activity strengthens the heart muscle, which improves cardiovascular efficiency and lowers the risk of heart disease. It also aids in weight management by burning calories.' Which of the following generated answers best demonstrates the language model correctly performing its task?
A developer is building a system to answer user questions using retrieved information. For the user query 'What are the key differences between llamas and alpacas?', the system retrieves the following text: 'Llamas and alpacas are both South American camelids. Llamas are significantly larger, often weighing up to 400 pounds, while alpacas are smaller, typically under 200 pounds. A key distinguishing feature is their ears; llamas have long, banana-shaped ears, whereas alpacas have short, spear-shaped ears. Furthermore, llamas are primarily used as pack animals due to their size and strength, while alpacas are bred for their fine, luxurious fiber.' Which of the following represents the most effective and well-structured input to send to the language model to generate the final answer?
Analyzing an Erroneous Answer in a Retrieval-Based System
LLM Refusal to Answer due to Insufficient or Irrelevant Context
Learn After
Using a Search Engine for Text Retrieval
Example of Retrieved Text for the 2028 Olympics Question
Historical Context of Los Angeles as a Three-Time Olympics Host
Timeline of Recent Olympic Games in the United States
Example of Retrieved Text for the 2024 Olympics
Example RAG Prompt for the 2028 Olympics Question
Example of LLM Refusal with Irrelevant Context
Example of a Hybrid Prompt Combining RAG and Tool Use
A user asks a language model the following question: 'Where will the 2028 Olympics be held?' To generate an accurate answer, the model is provided with an external text snippet. Which of the following text snippets would be most effective for the model to use in its response?
Evaluating Information Sufficiency for an Answering System
An automated answering system is tasked with answering a user's question based only on a provided text.
User's Question: 'Where will the 2028 Olympics be held?'
Provided Text: 'The 2028 Summer Olympics, also known as Los Angeles 2028, is a forthcoming international multi-sport event. It is scheduled to be held in the United States from July 14 to July 30, 2028. This will be the first time the Olympic Games have been hosted in the United States since the 2002 Winter Games in Salt Lake City.'
Which of the following is the most accurate and faithful answer the system can generate from the provided text?