Example

Prompt Template for Answer Generation from Context

A prompt can be formatted to instruct a Large Language Model to use retrieved reference information while generating an answer in its own words. An example format is:

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. Context information: {IR-result} Query: {query}

0

1

Updated 2026-04-29

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.3 Prompting - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences