All Lessons
A data team is building a system that extracts invoice details (vendor name, amount, date, line items) from PDF emails. The team provides the model with 3 annotated examples showing how to extract data from sample invoices. Each example shows the raw invoice text and the expected structured output. This approach significantly improves extraction accuracy compared to just describing the task. What is this technique called?
1 / 3
beginner 20 min
Few-Shot Prompting
Based on Anthropic Claude documentation and the CCA-F exam blueprint. Updated June 2026.
Loading lesson content...
All 3 sentiment examples are positive. A negative review is classified as positive. Cause?
1 / 2
Entity extraction system: few-shot works for invoices but not contracts or emails. Best fix?
1 / 2