Repository navigation
1.5.0 — Azure Document Intelligence
Azure Document Intelligence and broader document context
Features
- Optional Azure Document Intelligence Layout (
2024-11-30) processes every
PDF, including scans and mixed text/image pages, instead of relying on
directly embedded JPEG/PNG streams. - Extracted Markdown retains document structure; each analyzed chunk includes
its filename and page reference. Uploaded text is stored in the existing
SQLite document corpus and reused for subsequent questions and reindexing. - TIFF/TIF, BMP and HEIF/HEIC become searchable document uploads when enabled.
PNG/JPEG/WebP/GIF remain ordinary vision and image-editing attachments. - Local OpenDocument text/table extraction supports ODT, ODS and ODP with
ZIP/XML/work limits. Existing Office, RTF and text parsers remain local. - Explicit failures for incomplete/out-of-order results, invalid page spans,
oversized/empty text and failed result cleanup. Legacy vision OCR also
fails rather than silently accepting a document with failed pages. - No extra container, native conversion tools or new Go dependencies.
The application remains a CGO-free static binary in a non-root distroless image. - Update the existing
golang.org/x/netdependency to v0.62.0 and its required
companion modules to clear the Go vulnerability gate and the container
scanner's newer HIGH HTML-parser finding (CVE-2026-78661).
Enable
Use an Azure Document Intelligence S0 resource and set:
AZURE_DOCUMENT_ENDPOINT=https://YOUR-RESOURCE.cognitiveservices.azure.com
Authentication uses the existing explicit AZURE_TENANT_ID, AZURE_CLIENT_ID
and AZURE_CLIENT_SECRET; alternatively set a dedicated AZURE_DOCUMENT_API_KEY.
No CLI/default identity fallback is used by the production application.
Assign analysis permissions only on the intended document resource:
Microsoft.CognitiveServices/accounts/FormRecognizer/documentmodels:analyze/action
Microsoft.CognitiveServices/accounts/FormRecognizer/documentmodels/analyzeresults/read
No key-reading or resource-management rights are needed. These are document
model permissions, not an exclusive restriction to Layout. Verify a synthetic
upload with the deployed application identity, including result deletion.
Limits, costs and privacy
- 25 MiB per file, 100 analyzed pages, five-minute analysis timeout, one
concurrent analysis per application process. - Known over-limit PDFs are rejected before submission. For PDFs whose local
page count is unreadable, a 101st sentinel page detects over-limit results:
up to 101 pages may be billed even when that upload is rejected. - S0 is required: F0 truncates analysis to two pages. Known local page counts
are checked; an unreadable local count cannot detect F0 truncation. - No optional paid add-ons; Layout includes OCR. Chat/embedding usage is
additional. Analysis happens at upload, not for each later question. - Billable POSTs are not automatically replayed. Poll URLs stay on the
configured Azure origin; redirects are rejected. Result deletion is
attempted after retrieval/failure, including cancellation. Cleanup failures
remain explicit and Azure retention may apply. - OCR can misread numbers; important values must be checked against originals.
Retrieval selects relevant excerpts, not a guaranteed exhaustive audit. - Legacy DOC/XLS/PPT, arbitrary archives/audio/video and OCR of images embedded
in Office/OpenDocument files are not included; export visual content to PDF.
Validation and upgrade
- Full Go race tests, vet, lint, formatting and static build passed.
- Local
govulncheckwith Go 1.26.11 reports no reachable vulnerabilities;
Go 1.26.8 is no longer suitable for a release build. - All 32 English/German desktop/mobile browser regression groups passed.
- Tests cover bounded requests, authentication, untrusted operation URLs,
redirects, failed/partial analysis, cancellation, cleanup, source/page
attribution, upload persistence and OpenDocument limits. - Live Azure tests used synthetic mixed text/Flate-scan PDFs and verified
both page contents plus result deletion. - Live tests used an Azure CLI operator identity. Production service-principal
and real API-key authentication have not been verified end to end.
Back up the data volume, update the existing container to
ghcr.io/daknoblo/ai-ui:1.5.0, retain its volume/environment, add the endpoint
and fully reload the browser. The 1.5 tag follows this release series;
1.4 remains unchanged. No database migration or embedding reindex is needed.
Remove and upload previously failed/incomplete PDFs again: reindexing cannot
recover missing extracted text. Production containers are not updated by
publishing this release.
Verified publication
- Source:
9e6f4a2286b7aa5e7a17c6664c7aaa5c37a62bb0. - Version workflow 44100177856
passed all Go/browser gates, both architecture vulnerability scans, signing
and promotion. Main and PR CI/CodeQL passed; Docs deployed successfully. 1.5.0,1.5andlatestresolve to
sha256:f85cd41c5474238b67604045bc481e12ad45ef8b2e7fc430753c3c52aba9d2b7.
The1.4and1.4.2digests remain unchanged.- Cosign verified the exact tag workflow identity and GitHub Actions OIDC
issuer. Both platforms carry SPDX-2.3 SBOMs and matching source/version
provenance. - Published amd64 and arm64 containers started as UID/GID 65532 and passed the
binary healthcheck with networking disabled and the root filesystem read-only. - Live Pages shows release 1.5.0, the upgrade checklist and Document Intelligence
instructions; all 35 gallery images loaded. - Machine-readable verification is attached to this release.