# Response Times

Response time will vary depending on the source document, the Data Schema, and the optional features enabled.

## Impact of the Source File

Properties of the source document which impact response time:

* file size, especially for image files
* number of pages
* density of text

### Optimize Sources

Remove any pages that are not strictly needed for the data to be extracted, in particular, any pages with dense text. For example, remove the last two pages of invoices containing terms and conditions.

We offer free tooling for removing pages from PDFs before sending them.\
Take a look at the [Load and Adjust a File](/integrations/client-libraries-sdk/load-and-adjust-a-file.md#manipulate-pdf-pages) section.

Some general tips for improving file uploads can be found in the [Technical Best Practices](/integrations/technical-guidelines.md#guidelines-for-uploading-files) section.

## Impact of the Data Schema

Properties of the Data Schema which impact response time:

* number of fields
* complexity of guidelines
* lists of nested objects

In particular, lists of nested objects with many corresponding matches in the source document. For example: a multi-page invoice with many products purchased, and each product having multiple fields returned in the response.

### Optimize the Data Schema

Remove any fields that are not required.

If you find yourself adding extra fields or long-winded guidelines to handle different document templates, consider making several models instead. You can then route your documents to a more focused model, simultaneously improving response time and accuracy.

Also take a look at the [Data Schema Best Practices](/extraction-models/data-schema-best-practices.md) section for more tips on optimizing your models.

## Impact of Processing Options

Optional features which impact response time:

* [Confidence Score and Accuracy Boost](/extraction-models/optional-features/automation-confidence-score.md)\
  Several models are called in parallel, results are then analyzed and combined.
* [Continuous Learning (RAG)](/extraction-models/optional-features/improving-accuracy.md)\
  Before performing the inference, the RAG database must be searched.
* [Polygons (Bounding Boxes)](/extraction-models/optional-features/polygons-bounding-boxes.md)\
  Additional information must be extracted from the document, then polygons must be calculated.

For best results, only activate features you actually need.

## Examples

Common combinations of document types and models and their impact on response times.

### Faster

Both the source document and the Data Schema are lightweight.

Typically, single page documents with few fields:

* ID documents: passports, driver licenses, etc.
* Healthcare cards
* Tickets, boarding passes
* Envelopes, packages
* Simple single-page forms

### Average

Either the source document or the Data Schema is lightweight.

Single page documents with nested objects.\
— or —\
Multiple page documents with **no** nested objects.

Examples:

* Most receipts
* Single page invoices
* Most bills of lading
* Single-page government forms
* Most résumés, CVs

### Slower

Neither the source document nor the Data Schema are lightweight.

Multiple page documents with nested objects and small text:

* Very long receipts with many items and small text (i.e. long list of groceries for the week)
* Invoices with more than 10 pages, each page having many items
* Monthly bank statements, especially when over 10 pages
* Complex, multi-page government forms

Whenever possible, [remove any unnecessary pages](/integrations/client-libraries-sdk/load-and-adjust-a-file.md#manipulate-pdf-pages) before uploading the document.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mindee.com/integrations/response-times.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
