Lattice
Skip to content

Validation and repair

Generating freely, then validating the output against a schema and retrying with the error fed back.

By Entry last reviewedmethod

What it implies

Weaker than constrained decoding but far more ergonomic, and it handles messy extraction that token masking handles awkwardly. It gives a typed retry rather than a guarantee. If you cannot decide between the two, start here.

Tools in this index

Related terms

Rules of thumb

  • A definition is only useful next to the decision it changes. Read the linked layer to see where this term bites.
  • If a vendor's definition differs from this one, ask what it measures. Marketing definitions rarely name a number.
  • Every optimisation spends latency, memory or quality somewhere. Find out which before you turn it on.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.