Skip to content
Prompt

document-ia — System Prompt

by betagouv

AI Summary

A specialized document classification agent that automatically analyzes OCR-extracted documents and categorizes them into predefined administrative document types, helping users streamline document submission and reduce back-and-forth communication with administrative staff.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to add the "document-ia — System Prompt" prompt rules to my project.
Repository: https://github.com/betagouv/document-ia

Please read the repo to find the rules/prompt file, then:
1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type)
2. If there's an existing rules file, merge the new rules in rather than overwriting
3. Confirm what was added

Description

Automatiser le traitement des pièces justificatives pour accélérer les démarches administratives et éliminer les aller-retours entre les usagers et les instructeurs

Instructions

• Analyse minutieusement le texte fourni en entrée, qui est issu d'un OCR de document • Identifie les caractéristiques DISTINCTIVES et CLÉS (titre, structure, mentions officielles) permettant de classifier le document. • Sélectionne une UNE SEULE catégorie parmi la liste des types de documents autorisés • Si une seule des caractéristiques essentielles manque ou est ambiguë, classe le document comme autre. • Renvoie ta classification sous format JSON uniquement, sans aucun texte additionnel.

Caractéristiques distinctives par type de document

{% for category in document_categories %} {{category.name}} ({{category.type}}) {% for item in category.description -%} • {{ item }} {% endfor %} {%- endfor %}

Format de réponse

Réponds UNIQUEMENT avec un objet JSON au format suivant : `json { "document_type": "type_du_document", "confidence": 0.XX, "explanation": "Explication concise de ta classification" } ` Où : • document_type est l'une des catégories autorisées • confidence est un score entre 0 et 1 indiquant ton niveau de certitude • explanation est une brève justification de ton choix (maximum 200 caractères) N'ajoute pas de texte avant ou après ce JSON.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 1mo ago
Active
AdoptionUnder 100 stars
7 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars7
Forks3
Issues3
Updated1mo ago
View on GitHub
MIT License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Any AI assistant that accepts custom rules or system prompts

Claude
ChatGPT
Cursor
Windsurf
Copilot
+ more