JevMade hello@JevMade.com
← Back to guides

JevMade field notes / RAG walkthrough

Classifying RAG passages

Retrieves documentation passages, asks four Noul questions per passage about relevance, answerability, contradictions, and prompt injection, then assembles only accepted evidence for the answering model.

Original by TypeSafe AIRetrievalTypeSafe cookbookSource reviewed

Before you dive in

What you’ll find in the original

  1. Judge retrieved passages individually rather than trusting nearest-neighbor order.
  2. Keep policy thresholds in code and distinguish useful evidence from contradictory or hostile text.
  3. Build the answering prompt from the selected passages, not the entire shortlist.
Worth knowing

Filtering evidence cannot make an incomplete or incorrect source corpus truthful.