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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.affinda.com/feedback

```json
{
  "path": "/configuration/standard-fields",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Standard Data Types

> Reference for Affinda's standard data types including text, number, date, currency, and boolean, with parsing rules and supported formats for each.

Your field's data type determines how extracted values are processed and standardized. Different data types are available to ensure that structured and unstructured data are correctly categorized. The selected data type influences the structure of the data and the post-processing logic applied to extracted values, ensuring consistency and accuracy.

### Show Raw Values

Affinda stores two versions of every extracted field: raw (exact text from the document) and parsed (after data-type formatting and other transformations). Both are included in data exports. In the app’s **Document Validation** interface, only the parsed value is shown by default. To show raw values alongside it, open a document, click the three dots in the top-right, and select "Show Raw Values".

Once enabled, the raw value will be shown in italics underneath the parsed value.

<img className="block dark:hidden border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/8O48gu_z8QeuNsDM/images/showrawvalues.png?fit=max&auto=format&n=8O48gu_z8QeuNsDM&q=85&s=5a06b457a81ff666cd890b112c400b6c" alt="Show Raw Values" style={{ width:"27%" }} width="943" height="820" data-path="images/showrawvalues.png" />

<img className="hidden dark:block border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/8O48gu_z8QeuNsDM/images/showrawvalues.png?fit=max&auto=format&n=8O48gu_z8QeuNsDM&q=85&s=5a06b457a81ff666cd890b112c400b6c" alt="Show Raw Values" style={{ width:"27%" }} width="943" height="820" data-path="images/showrawvalues.png" />

## Text

Raw text is retained as-is with no special formatting. Suitable for general strings, labels, or descriptions.

Users can adjust the following text type options:

* **Standardize bullets:** Removes bullet point formatting from extracted values.
* \*\*Include line break: \*\*Maintains the line breaks from the original text in the extracted data.

<img className="block dark:hidden border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/8O48gu_z8QeuNsDM/images/textoptionslight.png?fit=max&auto=format&n=8O48gu_z8QeuNsDM&q=85&s=9f11a0f3a7637f124eb2f0fdabd88554" alt="Text Options" style={{ width:"61%" }} width="2376" height="1056" data-path="images/textoptionslight.png" />

<img className="hidden dark:block border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/8O48gu_z8QeuNsDM/images/textoptionsdark.png?fit=max&auto=format&n=8O48gu_z8QeuNsDM&q=85&s=0a164097f922b7239455279055084867" alt="Text Options" style={{ width:"61%" }} width="2400" height="1068" data-path="images/textoptionsdark.png" />

### Text Transformations

Transformations allow users to refine extracted text by applying a natural language prompt. Users can specify how they want text to be cleaned, reformatted, or transformed for better usability. Affinda processes transformations using either:

* Large Language Models (LLMs) for dynamic text refinement
* Code-based transformations, where possible, ensuring minimal variability in standardized data

## Numbers

Formats values into numbers. Users can adjust the number of decimals returned via Decimal Options in the Field Configuration view.

## Dates

All Date Data types standardize dates into ISO 8601 format (YYYY-MM-DD and hhmmss). Affinda supports 3 date structures:

* Date
* Date/time
* Date Range

### Date Options

<img className="block dark:hidden border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/X0_dfJGu-kAY4WOy/images/dateoptionslight.png?fit=max&auto=format&n=X0_dfJGu-kAY4WOy&q=85&s=be9ec678c08850b6873ba293a1e629f0" alt="Date Options" style={{ width:"61%" }} width="2400" height="1714" data-path="images/dateoptionslight.png" />

**Date Format Disambiguation** - Specify how the model should interpret ambiguous date formats (e.g., 03/04/2024). Choose the format that best matches your regional preference—**DMY** for UK-style dates or **MDY** for US-style dates.

**Expected Tense** - improve predictions by indicating the expected tense of the date (Past or Future).

**Default Day and Month** - Select the default for when dates are missing a day or a month.

<img className="hidden dark:block border-2 border-gray-300 rounded-lg" src="https://mintcdn.com/affinda-44/X0_dfJGu-kAY4WOy/images/dateoptionsdark.png?fit=max&auto=format&n=X0_dfJGu-kAY4WOy&q=85&s=fef27b51cd328663438c304a16bed369" alt="Date Options" style={{ width:"61%" }} width="2392" height="1724" data-path="images/dateoptionsdark.png" />

## Location

Geocoding is applied to identify and structure the address into street, city, country, etc. fields

Users can adjust the following Location options:

* **Expected Country**: Improve predictions by specifying the country you expect to find in the document.

## Phone Number

Structured to include country code, international country code, formatted number and national number in the response.

Users can adjust the following Phone Number options:

* **Default country code**: Specify the default country code when one isn't found on the document.

## URL

Identifies the url link and the domain
