Interview prep
PatternSafety and reliability

Output Validation and Repair

Validação e Reparo de Saída

Output Validation and Repair is an AI design pattern for LLM apps and agents, in the Safety and reliability group. Validate output with code and, on failure, send the error back to the model to fix.

Element
60/70

Quick answers

What is Output Validation and Repair?

Output Validation and Repair is an AI design pattern for LLM apps and agents, in the Safety and reliability group. Validate output with code and, on failure, send the error back to the model to fix.

Which smells does the Output Validation and Repair pattern help cure?

Unvalidated Executed Output.

Where does Output Validation and Repair show up in practice?

In the real-world scenarios Invoice and contract extraction and Natural language to SQL.

Go further

Relations

Smells it helps cure 1
Refactorings that lead here 1
Search