> 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/administration-and-setup/setup/document-training/training-header-fields.md).

# Training Header Fields

After uploading your document, you'll be taken to the validation screen.\
Some fields may already be populated — this is thanks to DocBits' swarm intelligence. However, other fields might remain empty. This typically means the document type hasn’t been fully trained yet, so DocBits doesn't yet know where to extract that information from.

You can help train DocBits to recognize these fields by manually identifying the correct data.\
**Please note:** if a field remains empty, it might simply be because the information is not present in the uploaded document.

<figure><img src="/files/9bi0kN2gxCYtkBqz1WS2" alt=""><figcaption></figcaption></figure>

### To train a field:

1. Click on the field you want to train.
2. Then either:
   * **Double-click** on the relevant data within the document, or
   * **Draw a selection box** around the data using your cursor.

<figure><img src="/files/JvpnLO44eavEWoIcpIH8" alt=""><figcaption></figcaption></figure>

Repeat this process for all required fields.\
Once all necessary fields have been populated, **click "Save Rules"** to store the training. This ensures that DocBits learns where to find each piece of information for similar documents in the future.

<div align="left"><figure><img src="/files/dOxUO8OeMn6etsD9IcQj" alt="" width="375"><figcaption></figcaption></figure></div>

After saving, your document is ready to be exported — and next time, DocBits will automatically extract the trained fields.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.docbits.com/administration-and-setup/setup/document-training/training-header-fields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
