QuestionQ94
Prompt Engineering & Structured OutputYou are developing a structured data-extraction system with Claude. The system extracts information from unstructured documents, validates the output with JavaScript Object Notation (JSON) schemas, and maintains high accuracy. It must gracefully handle edge cases and integrate with downstream systems.
Your extraction pipeline processes restaurant menus and must produce structured JSON containing item names, descriptions, prices, and dietary tags. Some menus have inconsistent formatting—for example, prices may appear as "$12" or "12.00", and dietary information may be represented by icons or text.
What is the most reliable approach?
Community Discussion