Learn Before
Crafting a Restrictive Prompt
You are designing a prompt for a customer support chatbot. Given the user query and the product information below, write a complete prompt that instructs a Large Language Model to answer the user's question using only the provided text. Your prompt must explicitly forbid the model from using any other information.
Product Information: "The 'StellarView 4K' monitor features a 32-inch display with a resolution of 3840x2160. It has a refresh rate of 60Hz and includes one HDMI port and two USB-C ports. The monitor does not have built-in speakers."
User Query: "Does the StellarView 4K monitor have speakers and what is its refresh rate?"
0
1
Tags
Ch.3 Prompting - Foundations of Large Language Models
Foundations of Large Language Models
Foundations of Large Language Models Course
Computing Sciences
Creation in Bloom's Taxonomy
Cognitive Psychology
Psychology
Social Science
Empirical Science
Science
Related
Prompt Example for Restricting Answers to Tabular Context
A developer is building a chatbot to answer customer questions using only the company's official product documentation. To prevent the chatbot from providing inaccurate or external information, it is critical that its answers are derived exclusively from the text provided in the prompt. Which of the following instructions is best designed to achieve this strict limitation?
Crafting a Restrictive Prompt
Debugging a Non-Compliant AI Assistant
Prompt Template for Strict Context Confinement