How nandinipatnaik9017-jpg/docustruct-ai works
DocuStruct AI is a local invoice-PDF processing app. A user uploads a PDF through the Streamlit interface; the app invokes the extractor, which reads PDF text and requests structured fields from a local Ollama model. The app then validates the fields, lets the user correct them, and provides JSON and CSV exports. Validation, review, and export are responsibilities within the same app module, so they share its path. The README documents these capabilities; the excerpts show the extraction internals, but not the app’s full upload and export implementation.
Main entry points: app.py Streamlit app · extractor.py PDF text extraction
Components 8
User interface
- Streamlit app
DocuStruct_AI_shared_team/app.py
Invoice processing
- PDF text extraction
DocuStruct_AI_shared_team/extractor.py - Field extraction
DocuStruct_AI_shared_team/extractor.py - Local Ollama
Review and export
- Invoice validation
DocuStruct_AI_shared_team/app.py - Field review
DocuStruct_AI_shared_team/app.py - JSON and CSV export
DocuStruct_AI_shared_team/app.py
Other components
- Invoice user
Connections 8
- Invoice user → Streamlit app: uploads invoice
README.md - Streamlit app → PDF text extraction: requests extraction
DocuStruct_AI_shared_team/app.py - PDF text extraction → Field extraction: passes text
DocuStruct_AI_shared_team/extractor.py - Field extraction → Local Ollama: requests fields
DocuStruct_AI_shared_team/extractor.py - Streamlit app → Invoice validation: validates fields
README.md - Streamlit app → Field review: presents fields
README.md - Field review → Invoice validation: checks corrections
README.md - Streamlit app → JSON and CSV export: exports data
README.md