How jaanunan/smartinvoiceai works
Smart Invoice Parser is a Streamlit application for extracting structured invoice data from images, then reviewing, correcting, and exporting it. Its enhanced interface adds batch processing, invoice-type classification, fraud checks, and chat; analytics.py provides separate invoice visualizations and z-score anomaly analysis. The excerpts show app entry points calling shared utilities and the Groq client calling the external model service. Analytics wiring and some enhanced-interface internals are not fully shown, so those connections are omitted rather than inferred.
Main entry points: app.py Standard interface · enhanced_ui.py Enhanced interface · utils.py Groq client · analytics.py Invoice analytics
Components 18
Invoice workflow
- Standard interface
app.py - Enhanced interface
enhanced_ui.py - Image input
utils.py - Image preprocessing
utils.py - Invoice extraction
app.py - Invoice classification
enhanced_ui.py - Results and editing
utils.py - CSV export
utils.py - Batch processing
enhanced_ui.py - Chat assistant
utils.py
AI and shared services
- Invoice data model
utils.py - Groq client
utils.py - Groq model API
Invoice insights
- Fraud detection
enhanced_ui.py - Invoice analytics
analytics.py - Anomaly detection
analytics.py
Other components
- Invoice user
- Image URL host
Connections 20
- Invoice user → Standard interface: uses
README.md - Invoice user → Enhanced interface: uses
- Standard interface → Image input: selects input
app.py - Standard interface → Image preprocessing: preprocesses
app.py - Standard interface → Invoice extraction: requests extraction
app.py - Standard interface → Groq client: creates client
app.py - Standard interface → Invoice data model: validates data
app.py - Standard interface → Results and editing: displays and edits
app.py - Standard interface → CSV export: exports data
app.py - Standard interface → Chat assistant: runs assistant
app.py - Enhanced interface → Image preprocessing: preprocesses
enhanced_ui.py - Enhanced interface → Groq client: creates client
enhanced_ui.py - Enhanced interface → Invoice classification: classifies invoice
enhanced_ui.py - Enhanced interface → Batch processing: processes batch
enhanced_ui.py - Enhanced interface → Fraud detection: checks fraud
enhanced_ui.py - Enhanced interface → Chat assistant: queries assistant
enhanced_ui.py - Image input → Image URL host: fetches image
utils.py - Groq client → Groq model API: sends requests
utils.py - Invoice analytics → Invoice data model: reads invoice fields
analytics.py - Anomaly detection → Invoice data model: reads invoice fields
analytics.py