Example

Prompt Example for Restricting Answers to Tabular Context

The following is an example of a prompt designed to restrict a Large Language Model's answers to a provided tabular context:

You are an expert tasked with generating answers from input queries. You have been provided with a query and corresponding context information, organized in a table where each row represents a useful record. Please generate an answer using only this context information. Ensure that you provide the answer in your own words.

This prompt instructs the model to adopt an expert persona, use the query and tabular data, and generate a paraphrased answer based solely on the given information.

Image 0

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