Learn Before
Prompt Example for Synthesizing Answers from Provided Context
The following is an example of a prompt designed for context-based question answering. It instructs the LLM to adopt an expert persona, use a given query and its corresponding context, and then generate an answer in its own words. This approach ensures the response is grounded in the provided information without being a direct copy.
You are an expert that can generate answers to input queries. You have now been provided with a query and the corresponding context information. Please generate an answer based on this context information. Note that you need to provide the answer in your own words, not just copy from the context provided.
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
Prompt Example for Synthesizing Answers from Provided Context
Restricting LLM Answers to Provided Text
Prompting LLMs with Retrieved Texts in RAG
A developer provides a language model with a specific piece of information:
Context: 'The fictional city of Aeridor was founded in the year 982 by Queen Elara.'The developer then asks the model:Question: 'When was Aeridor founded?'The model, however, responds with:Answer: 'Aeridor was founded in the 12th century.'Which of the following statements best analyzes the most likely reason for the model's incorrect response, despite being given the correct information?Internal Knowledge Base Chatbot Design
A developer is building a customer support chatbot that must answer questions using only the information from the company's official 'Return Policy' document to avoid providing inaccurate or outdated advice. Which of the following prompt strategies is the most effective for constraining the model's output to the provided text?
Learn After
A developer is building a system where a language model must answer user questions based on a specific article provided in the prompt. The goal is for the model to generate a helpful, synthesized answer using the article's information, rather than just extracting and repeating a direct quote. Which of the following instructions to the model would be most effective in achieving this specific goal?
Critique and Refine a Context-Based Answering Prompt
The following prompt is designed to make a language model answer questions using only a provided text, while rephrasing the information. Match each component of the prompt to its primary function.
Prompt:
You are an expert researcher. You will be given a user's question and a relevant scientific article. Your task is to answer the question using only the information from the article. It is crucial that you synthesize the information and present the answer in your own words, without directly quoting the source.