Repository navigation
0.2.0
Extraction costs what the answer costs again, and stays reliable on schemas of any size. Breaking: the
field_report response key (report in Python, fields_to_check in MCP) is gone; its useful parts are opt-in.
- The model writes only your schema's fields. 0.1.8 asked for a source, a printed form and notes for every value in
the same reply, also with citations off; on large schemas that reply ran past the length limit, and the recovery
(pages and fields in halves) multiplied the calls. That is removed. - Structured outputs for any schema size: your schema is rewritten in code (every field required, "" for a value
the document does not have, numbers and yes/no as text), the API enforces it, and the answer is turned back into
your types and checked against your schema, patterns and ranges included. Schemas over 40 fields are asked in
groups before any call, in parallel, each seeing the whole document; a group the API will not compile is split
further (a one-token check, remembered on disk per schema). - Citations are found by code: each value is looked up on the parsed pages, including dates and numbers printed
another way (03/04/2025,$4,200.00); a value printed in several places is cited next to the rest of its object
(one short_blocklabel per object, removed from the result). A value whose words were not placed by the parser
is found in the page's own words (form amounts printed apart from their labels). - A reply that is cut off is split by fields, lists apart from the rest, with all pages in view; only a single long
list is split by pages. A field is reported as unreadable only if it is still empty at the end. - Opt-in:
review=True(settings.review) lists values to check, found by code with no model call
(not_found_on_page,ambiguous_date,struck_through,void_page,list_may_be_incompletecounted on rows
with an amount, ...);alternatives=Trueor a list of fields (settings.alternatives) returns other values the
document gives for a field, with where they are printed;derived_values=Falseasks for printed values only.
CLI:--review,--alternatives [FIELD ...],--printed-only. - No more "inferred" lines in
warnings, and no automatic re-ask for lists that look short. - Enum values that differ only in case are matched ("PAID" to "paid").
- Each group of a large schema is told which fields are asked separately, so neighbouring objects (buyer and
seller) are not mixed up. An optional object the document does not have comes back as null, and "null" written
as text is null where your schema allows it. A value the document gives in another form ("USA" for a country
code) is written in the field's form; a field the document does not answer stays empty instead of guessed. - Measured on 12 test documents against 0.1.8: 2.6x cheaper and 2.8x faster at extraction, about the cost and time
of 0.1.6; citations on the right words 93.6% (0.1.8: 84.7%). On a 5-contract test pack: 98.5% of fields right
(0.1.8: 98.7%), at a quarter of the cost and an eighth of the time.