Extract fields by regex, Jev picks the right match
jev_extractExtract structured fields from documents using regex to find candidates and AI to pick the right one, returning exact values for prices, dates, IDs, and more.
Instructions
Extract structured fields from a document with TypeSafe Jev as the picker, not the generator: your regex finds candidate substrings in code, Jev chooses which candidate is the field's true value, and the result is returned verbatim — never model-generated text. Fields with zero regex matches never reach the model (not_found); if no field has matches, no API call is made. Ambiguous picks are flagged for review. Use for prices, dates, version numbers, IDs, and anything with a recognizable shape; keep documents bounded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Fields to extract. Up to 32 per call, all judged in one request. | |
| purpose | No | What the extraction is for; shared across fields. | |
| document | Yes | The document to extract from. Rejected above 50,000 characters. | |
| auto_accept | No | Minimum top probability for auto. Default 0.85. | |
| minimum_margin | No | Minimum winner-to-runner-up gap for auto. Default 0.5. |