Skip to content

Add type-specific extraction guidance in prompts #33

@michaeldistel

Description

@michaeldistel

Problem

Prompt doesn't provide specific guidance for different field types, leading to inconsistent extraction:

Proposed Solution

Add type-specific instructions in the schema section:

Field Types:
- string: text values
- number: numeric values (integer or decimal)
- boolean: true or false only
- date: ISO 8601 format (YYYY-MM-DD)
- enum: one of the allowed values listed
- email: valid email format
- url: valid URL format
- phone: E.164 format preferred

For each field, show the type with clear expectations.

Acceptance Criteria

  • Boolean type extraction guidance added
  • Date format (ISO 8601) explicitly stated
  • All current types have clear format expectations
  • Prepare for future array/object support
  • Tests verify type guidance is included
  • All 5 benchmark examples work correctly

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions