Example

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

Updated 2025-10-09

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