Skip to content

Glossary: Evaluating LLM Apps

JSON Schema

Also written: jsonschema, Draft202012Validator, enum, additionalProperties

A standard way to describe valid JSON: required keys, types and allowed values. `enum` lists the only allowed values, `additionalProperties: False` rejects extra keys, and the `jsonschema` package checks a model's JSON reply against the schema.

Where the book teaches it

Related terms

Code-based checkCode fence