Validate LLM outputs — schema conformance, factuality checks, toxicity detection, and structured output parsing.
Five passes over the same idea, each from a different angle. Do them in order, or jump to whichever you need.
Output validation ensures LLM responses meet quality standards. Schema validation (JSON, structured output), factuality checks against source documents, toxicity/bias detection, relevance scoring, and hallucination detection. Post-processing pipelines clean and validate before serving to users.