ETQ admin, Simpliscore me propose d'activer la lecture automatique des justificatifs (domicile, RIB, avis d'impôt)#13486
Draft
LeSim wants to merge 2 commits into
Draft
ETQ admin, Simpliscore me propose d'activer la lecture automatique des justificatifs (domicile, RIB, avis d'impôt)#13486LeSim wants to merge 2 commits into
LeSim wants to merge 2 commits into
Conversation
LeSim
marked this pull request as draft
July 17, 2026 09:32
Teach the types improver to enable OCR extraction on justificatif de domicile, RIB and avis d'impot fields, and document the nature key in the schema sent to the LLM. Enabling a nature restricts the field to a single file and to text/scan formats, so the prompt only suggests it when the label names one precise document, and never for a generic attachment nor for titre_identite. Display the nature transition rather than an unchanged type badge.
LeSim
force-pushed
the
llm-improve-types-pj-nature
branch
from
July 17, 2026 14:31
f30a643 to
f63e07d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Les recommandations Simpliscore savent désormais proposer d'activer la lecture automatique des documents déposés : justificatif de domicile, RIB et avis d'impôt.
Ces documents sont déjà lus automatiquement quand la « nature » de la pièce justificative est renseignée (décodage du cachet 2D-Doc → bénéficiaire, adresse, date d'émission…), mais l'administrateur devait le savoir et le faire à la main. L'improver ne pouvait pas le suggérer : il ne transportait que le type de champ et ses options, alors que la nature est un attribut distinct.
Deux commits :
tech:la plomberie — la nature est exposée au LLM, acceptée dans le tool call, validée puis appliquée.feat:les prompts et l'affichage de la suggestion.Point d'attention pour la relecture : activer une nature restreint le champ à un seul fichier et aux formats document texte / scan. Le prompt ne propose donc le changement que si le libellé désigne un document précis, jamais sur une pièce jointe générique (« Pièces complémentaires ») où ce serait une régression.
titre_identiteest également exclu des propositions : ce choix relève de l'administration.La suggestion s'affiche « Non spécifié → Justificatif de domicile » plutôt qu'une transition de type identique.