LLMs for structured input validation

4 points by kevalshah90 ↗ HN
There are several examples of structured outputs from LLMs; however, I'd like to use an language model to see if a given document / pdf adheres to a set template. Are there any good examples of this input validation use-case?

If the input doc / text doesn't adhere to the specific template, I'd like LLMs to point our the inconsistencies.

5 comments

[ 0.88 ms ] story [ 23.5 ms ] thread
What would be the advantage of using an LLM here? As opposed to parsing/validating the input using any other technique (of it's a well defined format, where you have e.g. a grammar).