It's pretty good, but it's not reliable enough to exclude the need to check everything it does.
Same story as basically everything relating to LLMs to be honest.
Same story as basically everything relating to LLMs to be honest.
https://github.com/ggerganov/llama.cpp/blob/master/grammars/...
But it is the solution to needing to run the model again and checking the format of the output to ensure that it conforms to you expectations.
I've found success generally better with Textract and then passing the OCR'ed text to OpenAI and using Pydantic to get it structured.