> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyformat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Schemas

> How you describe the shape of the data you want from documents.

A **schema** lists the fields anyformat looks for in each document. It says two things:

* Which fields you want: the invoice number, the date, the total.
* What type of value each field holds: text, a number, a date.

An invoice schema might hold three fields: **invoice number** as text, **issue date** as a date, and **total amount** as a decimal. Give anyformat that schema, and every invoice comes back with those three fields filled in.

A schema does not read documents. It describes the **result** you want. The [workflow](https://docs.anyformat.ai/concepts/workflows.md) does the reading. The schema tells it what to aim for.

![Schema view](https://mintcdn.com/anyformat/pilIFdJ4MJRok4mo/images/schemas.webp?fit=max\&auto=format\&n=pilIFdJ4MJRok4mo\&q=85\&s=4f2a57bd14497b9cda8cdb75eacb980a)

***

## When you use schemas

You use a schema when:

* You want consistent output across many documents
* You care about structure, not just raw text
* You plan to verify or improve results over time

Most [workflows](https://docs.anyformat.ai/concepts/workflows.md) are built around a single schema.

***

## What a schema is not

A schema is the *what*: the list of fields you want back. It is **not** the *how*. It does not say how to read the document or where on the page to look. anyformat handles that. You describe only what the finished result looks like.

***

## What's next?

> [card] [Fields](https://docs.anyformat.ai/concepts/fields.md)
>
> Define individual pieces of information within a schema

> [card] [Instructions](https://docs.anyformat.ai/concepts/instructions.md)
>
> Write plain-English guidance for better accuracy


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.