Skip to main content

Values

values has the shape of your extract: every field in request order, null when a value is absent or undecided, a list for every-mention fields.

Results

results has the same keys. Each says where the value was found (text, and start/end as character offsets into content) and how likely it is:
probabilities lists every candidate, then null (not in the text). They sum to 1, so you can set your own bar.

Not found, not sure

When the text has candidates but none reads as the type, the result also carries parse_error, saying what it found.

Every mention

A list field returns every mention in document order, each with its own offsets and probability. With a bare question, values is the answer itself:
When there is no mention, the list is empty.

Usage

meta.usage.input_tokens counts what Sage reads for each document: your content, field names and definitions. output_tokens is the size of the response.