Field types
Schema fields in Schema Studio support a set of field types that define how extracted content is structured in your smart bites. Choosing the right type improves extraction confidence and makes output usable for the Vector Catalog, RAG, and agents.
Primitive types
| Type | Use for | Example |
|---|---|---|
| Text | Titles, body text, names, free-form strings | title, body, vendor_name |
| Number | Quantities, amounts, page numbers | total, quantity, page_number |
| Date | Effective date, due date, signing date | effective_date, invoice_date |
| Boolean | Flags (e.g. signed, confidential) | is_signed, has_amendments |
Use text for any string that isn’t strictly numeric or date; use number and date when you need filtering or validation downstream.
Nested objects
Use object for a single structured block (e.g. one address, one party block):
- Address —
{ "line1", "city", "postal_code", "country" } - Party —
{ "name", "role", "contact" }
Nested objects keep related fields together and preserve source lineage at the parent level.
Arrays
Use array for repeated items:
- Line items —
line_items[]withdescription,quantity,amount - Sections —
sections[]withtitle,content - Signatories —
signatories[]withname,date
Array elements can be primitives (e.g. list of strings) or objects. Arrays are common for invoices, contracts (sections, parties), and policy documents.
When to use which type
- Contracts — Text for clauses and body; date for effective/termination; object or array for parties and sections.
- Invoices — Number for totals and quantities; date for invoice/due date; array of objects for line items.
- Policy docs — Text for sections; optional metadata (version, effective date) as date or text.
See Schema design for minimal schema examples.
Validation and constraints
- Required vs. optional — Mark fields required only when they always exist; otherwise optional reduces run failures. See Schema design.
- Format hints — Where supported (e.g. date format), use them so parsing is consistent across documents.
Reference
For the full list of types and constraints supported in the API and UI, see Schema field reference.
Next steps
- Schema design — Design principles and examples.
- Versioning — Changing schemas over time.
- Extraction overview — How extraction uses your schema.