Lesson 11 of 12
Module 7 Practice
Practice multimodal AI concepts with hands-on exercises.
Practice: Multimodal Prompt Design
Practice: Multimodal Prompt Design
# Practice: Design multimodal prompts for different tasks
multimodal_tasks = [
{
"task": "Product defect detection",
"input": "Photo of a manufactured product on a quality control line",
"prompt": """Analyze this product image and identify any defects or quality issues.
For each issue found:
1. Describe the defect location on the product
2. Rate severity: Minor / Moderate / Critical
3. Suggest the likely cause
4. Recommend whether to Pass, Rework, or Reject this item
Format your response as a structured quality control report.""",
"why_effective": "Specifies exactly what to look for, how to rate severity, and the output format needed for quality control workflow"
},
{
"task": "Invoice data extraction",
"input": "Photo of a paper invoice",
"prompt": """Extract all data from this invoice and return it as a JSON object.
Include: vendor_name, invoice_number, invoice_date, due_date, line_items (array with description, quantity, unit_price, total), subtotal, tax, and grand_total.
If any field is not visible, use null.
Return only the JSON, no extra text.""",
"why_effective": "Specifies exact JSON structure, handles missing fields with null, asks for clean output without extra text"
},
{
"task": "Chart interpretation",
"input": "Screenshot of a bar chart showing monthly website traffic",
"prompt": """Look at this chart and answer:
1. What is the highest value month and its value?
2. What is the lowest value month and its value?
3. What is the overall trend (increasing, decreasing, or mixed)?
4. If there are any sudden spikes or drops, describe when they occur.
5. Give one business insight based on this data.
Format as numbered answers.""",
"why_effective": "Breaks the analysis into specific questions, covers the most important data points, and asks for business insight"
},
]
print("=== Multimodal Prompt Examples ===")
print()
for i, task in enumerate(multimodal_tasks, 1):
print(f"Task {i}: {task['task']}")
print(f"Input: {task['input']}")
print(f"Prompt: {task['prompt'][:100]}...")
print(f"Why effective: {task['why_effective']}")
print()Diagram
Loading diagram…
Practice Diagram
Key Takeaways from Module 7
- Multimodal AI works with multiple types of content (text, images, audio, video) in a single interaction
- Text and image AI can describe images, read text from photos, analyze charts, and extract data
- Vision-Language Models (VLMs) combine a vision encoder and a language model to understand both images and text
- Document understanding AI can extract structured data from invoices, contracts, and forms
- Real products using multimodal AI include Google Lens, ChatGPT with GPT-4o, and Microsoft Copilot
- Limitations include hallucinations in image analysis, difficulty with small text, and privacy concerns when sharing sensitive images
Key Takeaways
- Practice multimodal AI concepts with hands-on exercises.
- Multimodal AI works with multiple types of content (text, images, audio, video) in a single interaction
- Text and image AI can describe images, read text from photos, analyze charts, and extract data
- Vision-Language Models (VLMs) combine a vision encoder and a language model to understand both images and text
Finished this lesson?
0 of 12 in Module 7