Jev glossary
PatternsPassage filtering
RAG passage classification
Score each retrieved passage with four Noul questions, then decide in code which passages reach the answering model.
- Category
- Patterns
- Also known as
- Passage filtering
- Reading time
- 1 min
- Related terms
- 4
- Directory entries
- 2
- Docs
- docs.typesafe.ai
- Added
- 2026-09-24
Definition
The cookbook runs 81 passages (80 Supabase auth docs plus a planted prompt injection), with four Nouls each: relevance, evidence, contradiction, and injection. Injection above 0.70 is excluded, contradiction above 0.70 flagged, relevance below 0.45 dropped, and evidence above 0.55 included.
The planted injection was dropped at 0.99 and a false-premise query kept its contradicting passage at 0.92, which is the point: contradictions are evidence, not noise. The injection question is a filter rather than a security boundary, because passages below threshold still reach the prompt.
Tagspatternssearchguardrails
Related terms
Definitions that connect to this one.
GuardrailScreening messages going into or out of an LLM app with hazard Nouls and severity Scores, then thresholding the probabilities.PatternsRe-rankingScore each query-candidate pair with one question and reorder a shortlist; the CLERC example lifts top-1 accuracy from 5% to 18%.PatternsLine-by-line searchRank every line of a document in one request with a Choice, while a Noul checks whether the document contains an answer at all.PatternsContext rotThe accuracy loss that comes from padding state with detail unrelated to the question; filter state before sending it.Core Concepts
From the Jev directory
Directory entries that go deeper on this term.
Score retrieved passages with four Noul questions each, then route in code: prompt injections dropped, false premises kept as conflicts, and evidence assembled separately for the generator.
Jev CookbooksDocs#official#cookbook#search
Official
Screen every message going into and out of an LLM app: a Noul describes possible hazards, a Score rates severity, and code thresholds the probabilities.
Jev CookbooksDocs#official#cookbook#guardrails
Official
From the Jev AI model community
Posts from builders shipping with Jev right now.