> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/end-user-and-partner-section/ai-table/explain-extraction.md). Agents can also search and read this documentation through its [MCP server](https://docs.docbits.com/~gitbook/mcp).

# Explain extraction and troubleshoot

[AI Table](https://docs.docbits.com/end-user-and-partner-section/ai-table.md) · [Structured Output for Tables](https://docs.docbits.com/end-user-and-partner-section/ai-table/structured-output.md)

## See what the AI did

Four buttons under the table explain the extraction.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-2056447b878b85d3f6fb08407a9843f88ccc3b3f%2Fai-table-explain-buttons-en.png?alt=media" alt="Explain extraction, Open as page, Processing pipeline and AI advice buttons"><figcaption><p>The explain buttons.</p></figcaption></figure>

* **Explain extraction** opens *How the AI table arrived at its values*: the document, the AI extraction (tier, number of raw columns and rows), the mapping to your structure and the result per column with the origin of each column.
* **Open as page** shows the same explanation in its own window.
* **Processing pipeline** lists the processing steps of the document and where it stopped.
* **AI advice** asks Nexus how the extraction can get better and lists concrete recommendations, for example *Enable structured output* or *Add an instruction tag for Net Amount*. It is advice only; you decide.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-31b1949b2ab87a8693710e347a3542f184abffdb%2Fai-table-explain-en.png?alt=media" alt="Explain extraction dialog with four steps"><figcaption><p>Explain extraction: four steps from document to result.</p></figcaption></figure>

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-ef00e3efa7f825eaa77dcce54db8bc6fe9228e43%2Fai-table-advice-en.png?alt=media" alt="AI advice dialog with two recommendations"><figcaption><p>AI advice proposes the next steps.</p></figcaption></figure>

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-9bb7468c89d071de1cbcb1a7d5ea8490d7c41e68%2Fai-table-pipeline-en.png?alt=media" alt="Processing pipeline dialog"><figcaption><p>The processing pipeline shows where a document stopped, here at field validation.</p></figcaption></figure>

These explanations belong to the **Analytics Dashboard** module. Without the module licence, or when your role has no access to the Analytics tab, DocBits tells you what to ask your admin for (activate the module under Settings → Modules, or grant the tab to your role under Settings → Roles).

## Practical examples

| Situation                                                                     | What to do                                                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| A value is in the wrong column, for example *Unit price* sits in *Net amount* | Click the column name and map it to the right column. Then **Save as training** if the supplier always prints it like this.                                                                                                                         |
| A column stays empty in every row, for example *Discount*                     | Add the column under **Extra columns for the AI**, or write an instruction with the wording the invoice uses, such as *Fill the Discount Amount column from the column called "Rabatt" on the invoice.* Check with **Test change**, then **Apply**. |
| The AI does not know what to do (nothing in the prompt)                       | Click **Suggest with Nexus** and insert what fits.                                                                                                                                                                                                  |
| A price must be divided or rounded                                            | Write the rule in the prompt, for example *The unit price is the net amount divided by the quantity*.                                                                                                                                               |
| Amounts are read with the wrong separators (1.234,50 versus 1,234.50)         | Open the column's three-dots menu, choose **Amount Formatting** and pick the right format.                                                                                                                                                          |
| The label sits below the value                                                | Three-dots menu → **Extract From** → **Below**.                                                                                                                                                                                                     |
| A column is not needed for this supplier                                      | Three-dots menu → **Delete column**. **Save as training** keeps it hidden for the supplier.                                                                                                                                                         |
| A row is wrong or missing                                                     | Remove it with the **x**, or add one with **Add new table row** and type the values.                                                                                                                                                                |
| The same corrections are needed again and again                               | Use **Save as training** so the next documents of this supplier come out right. For complex layouts [train the table](https://docs.docbits.com/administration-and-setup/setup/document-training/training-line-fields-table-training.md) instead.    |

{% hint style="info" %}
Not every wrapped description line can be repaired with an instruction. If lines of one item are split into several rows, edit the rows or use the classic table training.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/end-user-and-partner-section/ai-table/explain-extraction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
