Skip to content

Article

Spring AI Modular RAG with Jev

Christian Tzolov plugs JevDocumentFilter and JevDocumentReranker into Spring AI's Modular RAG pipeline: four Noul questions per chunk drop injections, contradictions, and noise before a one-question reranker keeps the top three.
Format
Article
Reading time
2 min
Published by
Community
Author
Christian Tzolov
Last verified
Oct 2026

Highlights

  • Filter defaults: prompt injection excludes above 0.70, contradictions stay tagged above 0.70, relevance fails below 0.45, and answer evidence passes above 0.55.
  • JevDocumentReranker asks one question, whether a passage could answer the query, sorts the survivors by score, and keeps the top K under jev.rerank.score.
  • The live run expanded one chatty question into four searches; six chunks passed similarity 0.5, and only two survived at 0.97 and 0.88.
  • Filter first, rerank second, so the reranker pays only for survivors; contradicting passages survive on purpose so a false premise meets counter-evidence.
  • The demo needs spring-ai-rag plus the TypeSafe 0.3.0 artifacts, and a TaskExecutor must be passed or non-daemon threads keep the app alive.

Watch out

Vendor-authored by the project author and demo-focused: the thresholds live in a Policy record you can override and no accuracy benchmarks are given. Both components send one Jev call per passage, so cost scales with chunk count, and newer Claude models reject temperature, which the demo works around by cloning the builder.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: A RAG loop where Jev decides what is real

X: Measuring what Jev does in a RAG pipeline

X: Jev-powered reranking for RAG. Likitd_’s jev-ranker uses Jev to rerank results in a RAG pipeline.

X: Coverage is not product value

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai