Skip to content

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

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.

Follow @typesafeai