Telling the AI how to structure its response.
You know how to provide context and use patterns. But how should the AI's answer *look*? This module covers **Output Formatting** – instructing the AI on presentation.
We'll learn to specify formats (lists, tables), control length/detail, and request structured data, ensuring the output is correct, readable, and usable.
How this Connects: Formatting is part of the "Instruction" component (Module 2) and builds on context/patterns. It prepares us for Module 6: Fine-Tuning Your Prompts.
A wall of text isn't always useful. Specifying format:
Be explicit! Ask directly for common formats:
Example: Explain the main stages of the water cycle using a numbered list.
Guide the response size and depth:
Example: Summarize the article's main arguments in three concise bullet points (under 50 words total).
Quick Poll:
Which is better for a quick answer: "Explain photosynthesis" or "Briefly explain photosynthesis in one sentence"? (Hint: The second one controls length!)
For data or complex info, request specific structures:
Example: Create a Markdown table comparing Laptop A and B. Include rows for Price, CPU, RAM, Storage.
Goal: Get recipe steps.
Less Formatting: How to make pancakes?
More Formatting: Provide instructions for making simple buttermilk pancakes, formatted as a numbered list for the steps. Keep the instructions clear and concise...
Goal: Compare phone plans.
Less Formatting: Compare Plan A and Plan B.
More Formatting: Create a table comparing Phone Plan A and Plan B. Include rows for Monthly Cost, Data Allowance... Highlight the cheapest option.
Common Mistake: Ambiguity
"Make it neat" isn't helpful. Be specific: "Format as a bulleted list," "Create a table with columns for X, Y, Z."
Improve this prompt: Explain the pros and cons of remote work. (Imagine it gave a dense paragraph).
Expected Outcome:
Your rewritten prompt should explicitly tell the AI how to structure the pros and cons (e.g., lists, table) for better readability.
Evaluate the prompt you refined in the Hands-On Exercise.
1. Format Specificity: Did you clearly specify *how* to format (e.g., "bulleted list," "table," "numbered steps")?
2. Clarity of Instruction (Rate 1-5): Was the formatting instruction unambiguous?
3. Appropriateness: Was the requested format suitable for presenting pros and cons clearly?
Suggestion for Improvement:
Think about the end use. How do you *need* the information presented? Tell the AI exactly that using specific formatting terms!
Great job! You've learned how to control the presentation of AI responses.
Next Steps: Let's learn how to refine prompts iteratively in Module 6: Fine-Tuning Your Prompts.