Build efficient prompts for extracting data from documents.
Prompt design is an iterative process that benefits from experimentation. Start with simple instructions, then refine by adding context and constraints. Throughout this guide, you’ll learn how clarity, specificity, and conciseness often lead to better results.
Avoid telling the model how to format outputs (e.g., “return the date in ISO format”). Instead, rely on built-in formatters from the formatter library to handle output presentation.