mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
Record why a document's index attempt failed and say so
A content-index attempt that failed (raster failure, a scan with no text layer, a provider error) recorded its reason only in the server's observability stream. In the vault, hasContentIndex false looked identical for a document nobody ever tried and one that failed three times, and the detail sheet had nothing to say about either. Apply the summaryState pattern to the index. Two additive columns on InboundDocument (migration 0333) record when the last attempt finished and why it produced no index, as a closed reason set: local-empty, local-unsupported, decrypt-error, raster-failed, provider-error, pdf-needs-anthropic, empty-transcription. The writer sits at the choke point the auto job and the corpus backfill share, and in the manual index route; a success clears the reason. The provider path's specific failure now survives the local fallback, since "no text" is less actionable than "the PDF would not render". rasterizePdf names its failure class so a build that cannot rasterize at all is distinguished from a PDF that would not render. New guard in both index paths: an empty provider transcription never becomes a successful empty index. The detail sheet renders the reason in plain words (muted, six locales). The DTO and OpenAPI carry the two fields; the disaster recovery backup and restore carry them verbatim like their summary siblings. Refs #776
This commit is contained in:
1 parent
45dc93932a
commit
893db887e9
29 files changed
+786
-33
No files matched your search
@@ -9506,6 +9506,17 @@
|
||||
"generate": "Zusammenfassung erstellen",
|
||||
"generating": "Wird erstellt…"
|
||||
},
|
||||
"index": {
|
||||
"outcome": {
|
||||
"local-empty": "Es wurde kein lesbarer Text gefunden. Das sieht nach einem Scan aus; ein KI-Vision-Anbieter kann ihn lesen.",
|
||||
"local-unsupported": "Dieser Dateityp kann für die Suche nicht gelesen werden.",
|
||||
"decrypt-error": "Die gespeicherte Datei konnte zum Lesen nicht geöffnet werden.",
|
||||
"raster-failed": "Die PDF-Seiten konnten zum Lesen nicht gerendert werden.",
|
||||
"provider-error": "Der KI-Anbieter konnte dieses Dokument beim letzten Versuch nicht lesen.",
|
||||
"pdf-needs-anthropic": "Der eingerichtete KI-Anbieter kann keine PDF-Dateien lesen. Ein Claude-Anbieter oder lokale OCR kann es.",
|
||||
"empty-transcription": "Der KI-Anbieter hat für dieses Dokument keinen Text geliefert."
|
||||
}
|
||||
},
|
||||
"loadError": "Dieses Dokument konnte nicht geladen werden.",
|
||||
"saveError": "Die Änderung konnte nicht gespeichert werden.",
|
||||
"deleteError": "Das Dokument konnte nicht gelöscht werden.",
|
||||
|
||||
@@ -9506,6 +9506,17 @@
|
||||
"generate": "Generate summary",
|
||||
"generating": "Generating…"
|
||||
},
|
||||
"index": {
|
||||
"outcome": {
|
||||
"local-empty": "No readable text was found. This looks like a scan; an AI vision provider can read it.",
|
||||
"local-unsupported": "This file type can't be read for search.",
|
||||
"decrypt-error": "The stored file couldn't be opened for reading.",
|
||||
"raster-failed": "The PDF pages couldn't be rendered for reading.",
|
||||
"provider-error": "The AI provider couldn't read this document on the last try.",
|
||||
"pdf-needs-anthropic": "The configured AI provider can't read PDF files. A Claude provider or local OCR can.",
|
||||
"empty-transcription": "The AI provider returned no text for this document."
|
||||
}
|
||||
},
|
||||
"loadError": "Couldn't load this document.",
|
||||
"saveError": "Couldn't save the change.",
|
||||
"deleteError": "Couldn't delete the document.",
|
||||
|
||||
@@ -9506,6 +9506,17 @@
|
||||
"generate": "Generar resumen",
|
||||
"generating": "Generando…"
|
||||
},
|
||||
"index": {
|
||||
"outcome": {
|
||||
"local-empty": "No se encontró texto legible. Parece un documento escaneado; un proveedor de visión de IA puede leerlo.",
|
||||
"local-unsupported": "Este tipo de archivo no se puede leer para la búsqueda.",
|
||||
"decrypt-error": "El archivo guardado no se pudo abrir para su lectura.",
|
||||
"raster-failed": "Las páginas del PDF no se pudieron procesar para su lectura.",
|
||||
"provider-error": "El proveedor de IA no pudo leer este documento en el último intento.",
|
||||
"pdf-needs-anthropic": "El proveedor de IA configurado no puede leer archivos PDF. Un proveedor Claude o el OCR local sí pueden.",
|
||||
"empty-transcription": "El proveedor de IA no devolvió texto para este documento."
|
||||
}
|
||||
},
|
||||
"loadError": "No se pudo cargar este documento.",
|
||||
"saveError": "No se pudo guardar el cambio.",
|
||||
"deleteError": "No se pudo eliminar el documento.",
|
||||
|
||||
@@ -9506,6 +9506,17 @@
|
||||
"generate": "Générer le résumé",
|
||||
"generating": "Génération…"
|
||||
},
|
||||
"index": {
|
||||
"outcome": {
|
||||
"local-empty": "Aucun texte lisible n’a été trouvé. Cela ressemble à un scan ; un fournisseur de vision IA peut le lire.",
|
||||
"local-unsupported": "Ce type de fichier ne peut pas être lu pour la recherche.",
|
||||
"decrypt-error": "Le fichier stocké n’a pas pu être ouvert pour la lecture.",
|
||||
"raster-failed": "Les pages du PDF n’ont pas pu être rendues pour la lecture.",
|
||||
"provider-error": "Le fournisseur d’IA n’a pas pu lire ce document lors de la dernière tentative.",
|
||||
"pdf-needs-anthropic": "Le fournisseur d’IA configuré ne peut pas lire les fichiers PDF. Un fournisseur Claude ou l’OCR local le peut.",
|
||||
"empty-transcription": "Le fournisseur d’IA n’a renvoyé aucun texte pour ce document."
|
||||
}
|
||||
},
|
||||
"loadError": "Impossible de charger ce document.",
|
||||
"saveError": "Impossible d'enregistrer la modification.",
|
||||
"deleteError": "Impossible de supprimer le document.",
|
||||
|
||||
@@ -9506,6 +9506,17 @@
|
||||
"generate": "Genera riepilogo",
|
||||
"generating": "Generazione…"
|
||||
},
|
||||
"index": {
|
||||
"outcome": {
|
||||
"local-empty": "Non è stato trovato testo leggibile. Sembra una scansione; un provider di visione IA può leggerla.",
|
||||
"local-unsupported": "Questo tipo di file non può essere letto per la ricerca.",
|
||||
"decrypt-error": "Il file archiviato non può essere aperto per la lettura.",
|
||||
"raster-failed": "Le pagine del PDF non possono essere elaborate per la lettura.",
|
||||
"provider-error": "Il provider IA non è riuscito a leggere questo documento all’ultimo tentativo.",
|
||||
"pdf-needs-anthropic": "Il provider IA configurato non può leggere i file PDF. Un provider Claude o l’OCR locale sì.",
|
||||
"empty-transcription": "Il provider IA non ha restituito testo per questo documento."
|
||||
}
|
||||
},
|
||||
"loadError": "Impossibile caricare questo documento.",
|
||||
"saveError": "Impossibile salvare la modifica.",
|
||||
"deleteError": "Impossibile eliminare il documento.",
|
||||
|
||||
@@ -9506,6 +9506,17 @@
|
||||
"generate": "Wygeneruj podsumowanie",
|
||||
"generating": "Generowanie…"
|
||||
},
|
||||
"index": {
|
||||
"outcome": {
|
||||
"local-empty": "Nie znaleziono czytelnego tekstu. To wygląda na skan; dostawca wizji AI może go odczytać.",
|
||||
"local-unsupported": "Tego typu pliku nie można odczytać na potrzeby wyszukiwania.",
|
||||
"decrypt-error": "Nie udało się otworzyć zapisanego pliku do odczytu.",
|
||||
"raster-failed": "Nie udało się przetworzyć stron PDF do odczytu.",
|
||||
"provider-error": "Dostawca AI nie zdołał odczytać tego dokumentu przy ostatniej próbie.",
|
||||
"pdf-needs-anthropic": "Skonfigurowany dostawca AI nie odczytuje plików PDF. Poradzi sobie z tym dostawca Claude lub lokalny OCR.",
|
||||
"empty-transcription": "Dostawca AI nie zwrócił tekstu dla tego dokumentu."
|
||||
}
|
||||
},
|
||||
"loadError": "Nie udało się wczytać tego dokumentu.",
|
||||
"saveError": "Nie udało się zapisać zmiany.",
|
||||
"deleteError": "Nie udało się usunąć dokumentu.",
|
||||
|
||||
Reference in new issue
Block a user