3 ms·
I really don’t understand why not all LLMs use schema validation on their output 100% guarantee that it is actually JSON and that it matches the expected format
by jiggawatts 2y ago
I really don’t understand why not all LLMs use schema validation on their output 100% guarantee that it is actually JSON and that it matches the expected format.
- nl 2y agoFunction calling in OpenAI models is essentially this. You define the functions using JSON Schema and it is guaranteed to match. See also https://python.useinstructor.com/ https://python.useinstructor.com/