How joeriqi/invoiceguard-my works
InvoiceGuard MY is a prototype for Malaysian SME invoice intake and MyInvois pre-submission checks. Its documented workflow generates or loads invoices, extracts structured fields, validates them with deterministic rules, and routes risky cases to human review; evaluation and ROI/EDA support the prototype. Users can explore results in Streamlit or the static dashboard. The tree contains a duplicate invoiceguard-my/ subtree; this map follows the root-level source files shown in the excerpts. Some dashboard capabilities are documented but its runtime wiring is not sampled.
Main entry points: streamlit_app.py Interactive app · evaluate.py System evaluation · validate.py Deterministic checks · cli.py Command interface
Components 16
Invoice intake
- Command interface
src/invoiceguard/cli.py - Synthetic invoices
src/invoiceguard/synth.py - Field extraction
src/invoiceguard/extract.py - OCR tool discovery
src/invoiceguard/tools.py - Invoice data model
src/invoiceguard/schema.py - Runtime parameters
config/params.yaml
Validation and routing
- Rule catalogue
config/rules.yaml - Validation code lists
src/invoiceguard/codes.py - Deterministic checks
src/invoiceguard/validate.py - Human review routing
src/invoiceguard/route.py
Evaluation and analysis
- System evaluation
src/invoiceguard/evaluate.py - Invoice analytics
src/invoiceguard/eda.py - ROI simulation
src/invoiceguard/roi.py
User interfaces
- Interactive app
app/streamlit_app.py - Static dashboard
dashboard/dist/index.html
Other components
- SME user
Connections 34
- SME user → Command interface: runs commands
README.md - SME user → Interactive app: uses app
README.md - SME user → Static dashboard: views results
README.md - Command interface → Synthetic invoices: generates data
src/invoiceguard/cli.py - Command interface → Field extraction: runs extraction
src/invoiceguard/cli.py - Command interface → System evaluation: runs evaluation
src/invoiceguard/cli.py - Command interface → Invoice analytics: runs analytics
src/invoiceguard/cli.py - Command interface → OCR tool discovery: checks tools
src/invoiceguard/cli.py - Synthetic invoices → Validation code lists: uses code lists
src/invoiceguard/synth.py - Synthetic invoices → OCR tool discovery: uses helpers
src/invoiceguard/synth.py - Field extraction → Invoice data model: returns model
src/invoiceguard/extract.py - Field extraction → OCR tool discovery: locates OCR tools
src/invoiceguard/extract.py - Deterministic checks → Invoice data model: checks model
src/invoiceguard/validate.py - Deterministic checks → Validation code lists: checks code lists
src/invoiceguard/validate.py - Deterministic checks → Rule catalogue: loads rules
src/invoiceguard/validate.py - Human review routing → Deterministic checks: uses findings
src/invoiceguard/route.py - Human review routing → Invoice data model: reads fields
src/invoiceguard/route.py - System evaluation → Field extraction: builds extractions
src/invoiceguard/evaluate.py - System evaluation → Synthetic invoices: loads corpus
src/invoiceguard/evaluate.py - System evaluation → Deterministic checks: validates invoices
src/invoiceguard/evaluate.py - System evaluation → Human review routing: routes findings
src/invoiceguard/evaluate.py - System evaluation → Invoice data model: scores fields
src/invoiceguard/evaluate.py - Invoice analytics → Synthetic invoices: loads invoice data
src/invoiceguard/eda.py - Interactive app → System evaluation: recomputes results
app/streamlit_app.py - Interactive app → Synthetic invoices: loads suppliers
app/streamlit_app.py - Interactive app → Deterministic checks: reruns checks
app/streamlit_app.py - Interactive app → Human review routing: shows decisions
app/streamlit_app.py - Interactive app → ROI simulation: models ROI
README.md - Interactive app → Invoice analytics: presents EDA
README.md - Interactive app → Runtime parameters: reads assumptions
README.md - Static dashboard → System evaluation: presents metrics
README.md - Static dashboard → Deterministic checks: reruns browser rules
README.md - Static dashboard → ROI simulation: offers ROI simulator
README.md - Static dashboard → Invoice analytics: presents EDA
README.md