shipwithjev

Catalog / Triage & routing

0325GitHub

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"
                                            # or AI_GATEWAY_API_KEY + provider="vercel"
                                            # or CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID + provider="cloudflare"
```

## 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")
# Vercel:     JevRerank(provider="vercel", top_n=5, mode="score")
# Cloudflare: JevRerank(provider="cloudflare", 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 JevSingleS

Also filed under Triage & routing

  1. 0613

    momus: staged Rust code and security review

    A fast scanner that reviews code for correctness, security, reliability, compatibility and test gaps, with actionable feedback. Supports the Jev API and local models.

    Brian Luby · Triage & routing

  2. 0602

    Jevops: SRE log triage with Jev

    Jev triages streaming logs into page, digest or resolve, cutting alert noise and paging humans only for high-confidence incidents. About $1–3 for 1M events a month.

    Mu99Ti · Triage & routing · $1–3 per 1M events/month

  3. 0598

    jev-sec-audit: flag risky npm packages with Jev

    npm install is the scariest command in your terminal. One typo → lookalike package → malicious postinstall → secrets gone. jev-sec-audit flags it in milliseconds using Jev, a System 1 model built for fast decisions, not chat. One step in GitHub Actions. Open source.

    @Dhanush_Nehru · Triage & routing

  4. 0555

    Jev Codex Router: model and reasoning selection per call

    A local Codex router asks Jev to choose the next model and reasoning effort while forwarding the complete conversation to that model.

    0xNatoshi · Triage & routing