System2

Directory / Classifying RAG passages

Official TypeSafe cookbook

Classifying RAG passages

Judge each retrieved passage before it reaches the answering model: keep what helps, flag what contradicts the question, and drop anything carrying a hidden instruction.

This is TypeSafe’s own material, listed here so the catalogue starts with the canon. The link goes to their documentation. System2 is not affiliated with TypeSafe.

By
TypeSafe
Source
docs.typesafe.ai
Added
17 Sept 2026
Tags
noulragguardrails