shipwithjev

Catalog / Triage & routing

0412GitHub

llama-index-jev

LlamaIndex reranker and selector using Jev Score and Choice answers, with configurable confidence handling.

WiktorB2004/llama-index-jevREADME ↗
# LlamaIndex + TypeSafe Jev

Drop-in LlamaIndex **reranker** and **router** powered by [TypeSafe Jev](https://typesafe.ai): typed `Score` / `Choice` answers, cheap compared to LLM-as-judge — not a Cohere or FlagEmbedding cross-encoder.

[](https://pypi.org/project/llama-index-postprocessor-jev/)
[](https://pypi.org/project/llama-index-selectors-jev/)
[](https://pypi.org/project/llama-index-postprocessor-jev/)
[](https://wiktorb2004.github.io/llama-index-jev/)
[](https://github.com/WiktorB2004/llama-index-jev/actions/workflows/ci.yml)
[](LICENSE)
[](https://pypi.org/project/llama-index-postprocessor-jev/)

Independent community project. **Not** affiliated with TypeSafe or LlamaIndex.

## Install

```bash
pip install llama-index-postprocessor-jev   # JevRerank
pip install llama-index-selectors-jev       # JevSingleSelector, JevMultiSelector
export TYPESAFE_API_KEY=...                 # or OPENROUTER_API_KEY + provider="openrouter"
```

## Quickstart

**Rerank** — score each retrieved passage, keep the top `n`:

```python
from llama_index.postprocessor.jev import JevRerank

reranker = JevRerank(top_n=5, mode="score")
# OpenRouter: JevRerank(provider="openrouter", top_n=5, mode="score")
query_engine = index.as_query_engine(node_postprocessors=[reranker])
```

**Select** — pick which query engine / tool handles the query:

```python
from llama_index.core.query_engine import RouterQueryEngine
from llama_index.selectors.jev import JevSingleSelector

engine = RouterQueryEngine(
    selector=JevSingleSelector(),
    query_engine_tools=[weather_tool, docs_tool],
)
```

Docs: [wiktorb2004.github.io/llama-index-jev](https://wiktorb2004.github.io/llama-index-jev/). Paste-and-run walkthroughs (OpenRouter, mock embeddings / MockLLM so you do not need an OpenAI key): [`examples/`](exam

Also filed under Triage & routing

  1. 0527

    Testing Jev on public and private data: classifier or filter? | Blog | Aman Kumar

    ### Jev only answers yes/no or pick-one. 16,000 calls: against gpt-5.4-mini and gpt-5.6-luna on four public datasets, then on a few thousand real pipeline decisions. Where it…

    amankumar.ai · Triage & routing

  2. 0526

    Jev was the tipping point - I built the last MySQL search statement - WPS

    Jev was the tipping point - I built the last MySQL search statement - WPS ... # Jev was the tipping point - I built the last MySQL search statement ... So I built AILIKE. It lets…

    worldprogramming.org · Triage & routing

  3. 0525

    Building an Evidence-Based Resume Analyzer: Why Understanding Beats Guessing

    What we're really tackling is this: How can AI truly assess a resume without falling into the trap of just echoing buzzwords? How do we know the candidate isn't just sprinkling…

    dev.to · Triage & routing

  4. 0418

    World Monitor

    Geopolitical dashboard that batches Jev 1.13.0 headline-severity and topic classifications, validates the answers, and falls back when classification fails.

    koala73 · Triage & routing