Extracting financial disclosure and police reports with OpenAI Structured Output
81–90 of 93 posts
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#82https://jdsemrau.substack.com/p/mem0-building-a-sec-10k-anal...
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#83Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#84What a sad state for humanity that we have to resort to this sort of OCR/scrapping instead of the original data being released in a machine readable format in the first place.
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#85Data extraction is definitely one of the most useful functions of LLM, however, in my experience a large model is necessary for a reliable extraction - I tested smaller, open-weights models and the performance was not sufficient. I wonder, did anyone try to fine-tune a model specifically for general formatted data extraction? My naive thinking is that this should be pretty doable - after all, it's basically just rest…
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#86We used GPT 4o for more or less the same stuff. Got a boatload of scanned bills we had to digitize, and GPT really nailed the task. Made a schema, and just fed the model all the bills. Worked better than any OCR we tried.
How are you going to find (not even talking about correcting) hallucinated errors? If money is involved and the LLM produces hallucination errors, how do you handle monetary impacts of such errors? How does that approach scale financially?
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#87Earlier quoted context omitted.
How are you going to find (not even talking about correcting) hallucinated errors? If money is involved and the LLM produces hallucination errors, how do you handle monetary impacts of such errors? How does that approach scale financially?
Not the OP, but if doing this at scale, I'd consider a quorum approach using several models and looking for a majority to agree (otherwise bump it for human review). You could also get two different approaches out of each model by using purely the model and external OCR + model and compare those too.
More detailed explanation: I have to OCR dense, handwritten data using technical codes. Luckily, the form designers included intermediate steps. The intermediate fields are amenable to Textract, so I can use a multimodal model to OCR the full table and then error check.
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#88My first job (around 2010) was to extract events from financial news and police reports. We built this huge system with tons of regexes, custom parsers, word lists, ontologies etc. It was a huge effort to get somewhat acceptable accuracy. It is humbling to see that these days a 100 line Python script can do the same thing but better: AI has basically taken over my first job.
Well, your first job today would be writing that 100 line Python script then doing something 100x more interesting with the events than writing truck loads of regexs?
That is, his first job is now gone.
Re: Extracting financial disclosure and police reports with OpenAI Structured Output
#89Is there an automated way to check results and reduce hallucinations? Would it help to do a second pass with another LLM as a sanity check to see if numbers match?