Skip to main content
When parsing a document, can extract data that you specify from a document. This is helpful if you need to extract the same data from multiple documents. For example, if you work for a financial institution and need to extract the Total Income field from tens of thousands of loan applications, you can use the extraction feature to do that. Extract Data from Documents
Field extraction costs 3 credits per page. For more information about pricing and credits, go to Pricing.

Classification

As part of the extraction process, you can classify documents and extract data based on the type of document it is. For example, let’s say you work for a financial institution and want to extract a set of data from Loan Applications and another set of data from Income Statements. You can assign a class to each document, and then extract data based on that document’s class. In the JSON schema used in the Playground and when calling the API, use the enum keyword to identify the document types.

Get Started: Extraction Workflow

We recommend using the schema extraction wizard directly in our Playground to build and validate an extraction schema. You can then use that schema when parsing documents:
  1. Use the schema extraction wizard in our Playground to build a schema tailored to your documents. Build a Schema with the Wizard
  2. Choose a format to export the schema to: library or API. Export the Relevant Format
  3. Include the schema when you call the parse function with the agentic-doc library or run the API.
You can also extract data in the Playground. We recommend doing this only for testing purposes, since the Playground isn’t designed to handle bulk document processing.

The Library and API Use Different Schemas Formats

The schema format used in the library and API is different. But no worries; you can build or upload a schema in the Playground and then choose which format to export it to! Learn more about the schema format for each use case: