Learn Before
Formatting Prompts for Clarity
To enhance the clarity and reduce ambiguity of prompts, specific formatting is often applied. This practice helps in structuring the information for the LLM in a more readable way. For instance, a prompt can be structured with distinct fields for different types of information. Another common technique is to use a code-like syntax, especially for LLMs capable of processing both natural language and code.
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
Prompt Field Labeling for Clarity and Structure
Code-like Prompt Templates
An engineer is tasked with creating a prompt that instructs a language model to summarize a given text. Below are two versions of the prompt they are considering.
Prompt A: "Please summarize the following text for me. The summary should be exactly two sentences long and maintain a formal tone. The text to summarize is: The quick brown fox jumps over the lazy dog."
Prompt B: "INSTRUCTIONS: Summarize the provided text.
CONSTRAINTS:
- Length: Exactly 2 sentences.
- Tone: Formal.
TEXT: The quick brown fox jumps over the lazy dog."
What is the primary advantage of using the formatting in Prompt B over the formatting in Prompt A?
Refining a Prompt for Clarity
Evaluating Prompt Structure for a Chatbot