# Document types

Create a document type for each type you aim to recognize in this project. This section provides an overview of all the document types used in your project and allows you to create new, add existing, edit and delete document types.

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

## Document types overview

The table has 2 columns:

* The name of the document type
* The number of entities for each document type

You can edit a document type by clicking on the row. This will open the panel on the right side where you can specify how the document type should be recognized.&#x20;

## Document type details

### Recognition type

You can choose to use an A.I. model, set a regular expression (this allows you to choose keywords which in case matched, change the document type) or not automatically recognize the document type.

{% hint style="info" %}
When defining a Regular Expression document type, keep in mind that Metamaze automatically adds spaces around all punctuation.&#x20;
{% endhint %}

### Page management

You can enable or disable the page management functionality per document type.

### OpenAI GPTx

You can also specify extra extraction instructions for the annotation-less model if the model doesn't give you good predictions. This field is only visible if you enable this feature in the project settings: [General Settings](/project/project-settings/general-settings.md#openai-gptx).

## Add new document type

You can create a new document type or use an existing one by clicking the "+ Create" button.

![](/files/Qno7FLQf93kbgVj59vBR)


---

# 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-old.app.metamaze.eu/project/project-settings/document-types.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.
