# Response Times

Response time will vary depending on the source document, the Data Schema, and the options selected.

Unfortunately, there is no free lunch.

## Source Document

Properties of the source document which impact response time:

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

Take a look at the [#guidelines-for-uploading-files](https://docs.mindee.com/technical-guidelines#guidelines-for-uploading-files "mention") section for ways to improve source files.

## Data Schema

Properties of the Data Schema which impact response time:

* number of fields
* complexity of guidelines

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

## Processing Options

Processing options which impact response time:

* [automation-confidence-score](https://docs.mindee.com/extraction-models/optional-features/automation-confidence-score "mention")\
  Several models are called in parallel, results are then analyzed and combined.
* [improving-accuracy](https://docs.mindee.com/extraction-models/optional-features/improving-accuracy "mention")\
  Before performing the inference, the RAG database must be searched.
* [polygons-bounding-boxes](https://docs.mindee.com/extraction-models/optional-features/polygons-bounding-boxes "mention")\
  Additional information must be extracted from the document, then polygons must be calculated.

## Examples

Common combinations of document types and models.

### Faster

Single page documents with few fields.

Examples:

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

### Average

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

Multiple page documents with nested objects and small text.

Examples:

* 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](https://docs.mindee.com/client-libraries-sdk/load-and-adjust-a-file#manipulate-pdf-pages) before uploading the document.
