> For the complete documentation index, see [llms.txt](https://guides.ia.numerique.gouv.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.ia.numerique.gouv.fr/assistant-ia/guides-pratiques/fiches-reflexes/extraire-des-informations-dun-document.md).

# Extraire des informations d'un document

{% columns %}
{% column %}

1. **Cliquer sur « + »** (glisser-déposer ou bouton dédié) : puis séléctionner "*joindre un ficher".*
2. **Joignez le document** (glisser-déposer ou bouton dédié) : <mark style="color:red;background-color:red;">**10 Mo maximum**</mark> par message.
3. **Formulez votre demande** avec des mots-clés de contenu plutôt que des repères visuels comme « page 12 » ou « la sous section sur les normes environnementales ».
4. **Vérifiez les informations** délivrées avant de les réutiliser.

{% prompt description="Exemple de prompt" icon="lightbulb" defaultExpanded="full" %}

```markdown
« Dans ce rapport, liste les recommandations sous forme de tableau avec pour chacune : titre, priorité, échéance. »
```

{% endprompt %}
{% endcolumn %}

{% column %}

<p align="center"><img src="https://2276914903-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCHYOyJVWgymiHRO07sl0%2Fuploads%2FCW7quqXWPD9yDy7NttLC%2FExtraire%20des%20informations%20dans%20un%20ficher.jpg?alt=media&amp;token=21d2fbde-1c6a-49d4-b892-8cd82f12db83" alt=""></p>

<p align="center"><a href="https://ia.numerique.gouv.fr/documents/42/Extraire_des_informations_dans_un_ficher.pdf" class="button primary">Télécharge la fiche réflexe</a></p>
{% endcolumn %}
{% endcolumns %}

{% hint style="danger" %} <mark style="color:red;">**Vigilance :**</mark>

Avant tout envoi, vérifiez que le document ne contient pas de données sensibles.
{% 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://guides.ia.numerique.gouv.fr/assistant-ia/guides-pratiques/fiches-reflexes/extraire-des-informations-dun-document.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.
