Skip to content
JevDirectory.org
OfficialCookbooks & DemosVerified 2026-09-20

Cookbook: Classifying RAG Passages

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.

Category
Cookbooks & Demos
Published by
TypeSafe AI
Author
Added
2026-09-20
Tagsofficialcookbooksearchguardrailsconfidence

Highlights

  • 81 passages (80 Supabase auth docs plus one planted injection) with 12 kept per query by cosine search.
  • Four Nouls per passage, relevance, evidence, contradiction, and injection, one request per passage with four in flight.
  • Thresholds: injection above 0.70 excluded, contradiction above 0.70 flagged, relevance below 0.45 dropped, 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.

Watch out

The injection question is a filter rather than a security boundary, because passages below threshold still reach the prompt.

More like this

Semantic search over GitHub's Terms of Service: one request ranks all 218 lines with a Choice while a Noul checks whether the document contains an answer at all, including when it should say no.
Cookbooks & Demos#official#cookbook#search
Official
Catch wrong and hallucinated citations against RFC 7519 with a string match plus one Choice question: four accurate citations verified at 0.93 or more and all four planted failures caught.
Cookbooks & Demos#official#cookbook#citations
Official
A two-stage extraction cascade: a mini model extracts, a Noul battery verifies each field in one request, and a 0.7 gate escalates to a reasoning model, sitting on the cost/quality frontier.
Cookbooks & Demos#official#cookbook#extraction
Official
Back to all resources

From the community

Posts from builders shipping with Jev right now.

A really smart switch statement

hype-free explanation of jev: jev does not replace gpt / claude jev is just a *really* smart switch statement like if 2016 ml classifiers got 2026 levels of intelligence it's a new* type of tool that will make a lot of workloads insanely fast, cheap, and accurate * = and by Show more

Diogo Almeida
Diogo Almeida
TypeSafe AI
@CompleteSkeptic

After co-inventing ChatGPT, I kept asking myself: why have superhuman chat models not led to AGI? I’ve spent the last 2 years in stealth building a new way to train models (RLCD), and a new type of frontier AI model that we are releasing today: Jev • 20-200x faster • 40-400x

Reply

When a designer gets Jev