VietInvoice AI expects text that has already been extracted from a PDF, scan, or OCR pipeline.
Fallback mode is useful for demos and environments without Ollama.
python3 main.py data/sample_invoice.txt --fallback-onlyLocal AI mode asks an installed Ollama model to extract fields as JSON.
ollama serve
ollama pull llama3.2
python3 main.py data/sample_invoice.txtThe parser works best when the input contains clear labels such as:
Ma so thueSo hoa donNgayKhach hangNoi dungTong cong