by wrs · 2y ago · 0 comments
I did a project to summarize complex PDF invoices (not “unstructured” data, but “idiosyncratically structured” data, as each vendor has a completely different format). GPT-4o did an amazing job at the extraction of line items, but I had to do a heuristic layer on top to break up the PDFs into small chunks so the output didn’t overflow.
Actually, it doesn’t even need PDFs. It works just about as well if you just feed it PNGs of the pages. Crazy.
Because this is what is used to deal with non-formal and unstructured data, if you build something that would be always accurate to the task, then you would have solved it formally.
How do you stitch the outputs of all chunks without losing the overall context?