Extraction Pipeline
1. Upload file
Store source document under /usrdata/uploads.
2. Read text / image
Read PDF text or prepare image input for AI.
3. AI structure extraction
Return clean JSON with item rows and rates.
4. AI spelling cleanup
Correct item spellings and normalize units.
5. Review table
Admin verifies rows before final JSON save.