Task Design
Master task specification and schema development for the Parallel Task API
Best Practices and Advanced Concepts
Task Design
The effectiveness of the Parallel Task API depends heavily on well-designed tasks. Here are the key principles and patterns for creating robust, well-specified tasks.
Anatomy of an Effective Task
Below is a complete example of a Task. It includes the Task Spec, Input Schema and Output Schema.
Prompt Design Principles
- Be Specific
- Structure the Research Process
- Define Source Requirements
- Specify Validation Criteria
- Handle Edge Cases
✅ “If information is not available or unclear:
-
For example, if the company is not public, use best available sources of information on the private company
-
Specify using most current financial periods as of November 2024
-
Example: ‘As of November 2024, the company’s most current financial period is FY2023. The company’s revenue for FY2023 is $1.2 billion, as reported in their FY2023 annual report.’”
-
Report what was found
-
Note specific gaps
-
Explain what was searched
-
Suggest alternative approaches
-
Input Schema Best Practices
Use Enums for known values:
Output Schema Patterns
Include confidence scoring in the schema. This is a value outputted by our system that indicates how similar the answers of multiple runs would be. The higher the confidence, the higher the likelihood of the response matching the exact ground truth.