Learn Before
Using Structured Formats in Prompts
Large Language Models can process text in various formats, not just standard prose. This allows for the use of structured notations like XML tags or control characters to represent complex data. It is also beneficial to explicitly define the desired structure for both the input and output within the prompt itself.
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
Clarity and Specificity in Prompt Design
Sensitivity of LLMs to Prompt Formatting
Formatting Prompts for Clarity
Using Structured Formats in Prompts
Prompt Design as a Practical Skill
Evaluating a Prompt Design Process
A junior engineer is tasked with creating a prompt that makes a large language model summarize complex legal documents. They spend hours making random, minor adjustments to their promptāchanging a single word, reordering a sentence, adding an emojiābut the output remains inconsistent and of poor quality. Which of the following statements best analyzes the core issue with the engineer's method?
Diversity of Prompting Methods
Improving Prompt Accuracy with Detailed Task Descriptions
You are tasked with developing a prompt to extract key financial figures from unstructured news articles. Arrange the following steps into the most logical and efficient workflow for designing and refining this prompt.
Learn After
Specifying Input Structure Using Delimiters
A developer is building a system to extract key information (product name, price, and stock status) from unstructured product descriptions. Their initial prompt, "Extract the product name, price, and stock status from the following text:", yields inconsistent and unreliable results. Which of the following revised prompts is most likely to produce consistently structured and accurate output?
Improving Product Comparison Generation
Rewriting a Prompt for Structured Output