Skip to content

Jev directory

LlamaIndex + TypeSafe Jev

Unofficial LlamaIndex reranker and router built on the official Python SDK: JevRerank scores retrieved passages and JevSingleSelector chooses which tool handles a query.
Stars
8
Language
Python
License
MIT
Reading time
3 min
Published by
Community
Author
WiktorB2004
Last verified
Sep 2026

About this project

Drop-in LlamaIndex reranker and router powered by TypeSafe Jev: typed Score / Choice answers, cheap compared to LLM-as-judge — not a Cohere or FlagEmbedding cross-encoder. Independent community project. Not affiliated with TypeSafe or LlamaIndex. Rerank — score each retrieved passage, keep the top n: Select — pick which query engine / tool handles the query: Docs: wiktorb2004.github.io/llama-index-jev. Paste-and-run walkthroughs (OpenRouter, mock embeddings / MockLLM so you do not need an OpenAI key): examples/.

Quoted from the project's README. Read the full README.

Highlights

  • Two packages: llama-index-postprocessor-jev reranks after retrieval, and llama-index-selectors-jev picks a tool before a call.
  • Score mode is a 0-3 relevance rubric, not cosine similarity; rerank fails open, while select fails closed.
  • BEIR nfcorpus test: nDCG@5 rose from 0.340 with MiniLM alone to 0.396 with Jev reranking, at about $0.0003 per query.
  • Rerank asks one relevance question per passage; selection batches a Choice or one Noul per option in a single request.

Quickstart

bash
pip install llama-index-postprocessor-jev
pip install llama-index-selectors-jev
export TYPESAFE_API_KEY=YOUR_API_KEY

Watch out

MIT-licensed. Needs Python 3.10+ and a TYPESAFE_API_KEY or an OPENROUTER_API_KEY with provider=openrouter; not affiliated with TypeSafe or LlamaIndex.

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.

Facebook: Intake Router keeps diagnosis out of the answer space at the front desk.

FacebookClinicnotes

X: OpenRouter Decision Model Rankings

X: herdr + jev, an agent router

X: A group chat bot with decision room routing

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