Model reference · open weights
Prism-Qwen3-Reranker-exp is an open-weight embedding model from infgrad. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | infgrad |
|---|---|
| Type | Embedding models |
| Task | Reranker |
| Parameters (lead) | 4.0B |
| Context | 40k tokens |
| Runs with | transformers |
| Released | 2026-04-26 |
| Popularity | 4k downloads / month |
| Licence | Open weights |
About
Beyond Relevance Scoring — Jointly Producing Contributions and Evidence for Agentic Retrieval.
A reranker family that, unlike standard rerankers that emit only a relevance score, returns three things in a single forward pass: a calibrated score, a one-sentence contribution, and a self-contained evidence passage extracted from the document.
Five checkpoints are released on the Hugging Face Hub. Four are fine-tuned from the Qwen3.5 backbone; one (-4B-exp) is an experimental extension built on top of Qwen3-Reranker-4B, demonstrating that the same recipe transfers to an existing LLM-based reranker without losing ranking quality.
| Model | Backbone | Parameters | Hugging Face |
|---|---|---|---|
| Prism-Qwen3.5-Reranker-0.8B | Qwen3.5 | 0.8B | infgrad/Prism-Qwen3.5-Reranker-0.8B |
| Prism-Qwen3.5-Reranker-2B | Qwen3.5 | 2B | infgrad/Prism-Qwen3.5-Reranker-2B |
| Prism-Qwen3.5-Reranker-4B | Qwen3.5 | 4B | infgrad/Prism-Qwen3.5-Reranker-4B |
| Prism-Qwen3.5-Reranker-9B | Qwen3.5 | 9B | infgrad/Prism-Qwen3.5-Reranker-9B |
| Prism-Qwen3-Reranker-4B-exp | Qwen3-Reranker-4B | 4B | infgrad/Prism-Qwen3-Reranker-4B-exp |
In agentic / RAG pipelines, a relevance score is rarely the end goal. After deciding a document is relevant, the agent still has to read it, denoise it, and decide what to do next. Prism-Reranker folds that work into the reranker itself:
s(q, d) = σ(ℓ_yes − ℓ_no) ∈ (0, 1). Calibrated, ranking-ready.** — a self-contained, faithfully-rephrased rewrite of the query-relevant content. Drops irrelevant background, preserves verbatim proper nouns / numbers / dates / code / URLs. You can feed directly to a downstream LLM and skip the raw document — saving context tokens and removing web-noise.If the document is not relevant, the model outputs no and stops. No contribution/evidence is generated.
yes/no + +, supervised by a 5-LLM-as-judge ensemble.Two ways to call the model. Both produce the same relevance score s(q, d) = σ(ℓ_yes − ℓ_no). Use A when you also want /. Use B when you only need a score and want a drop-in replacement for any other CrossEncoder reranker.
We use one shared example throughout so you can compare the outputs side by side:
QUERY = "What is the boiling point of water at sea level?"
DOCUMENTS = [
"Water boils at 100 C (212 F) at standard atmospheric pressure (1 atm), "
"which corresponds to sea-level conditions.",
"Mount Everest is the highest mountain on Earth, with a peak elevation "
"of 8,848 meters above sea level.",
]
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
MODEL_PATH = "infgrad/Prism-Qwen3.5-Reranker-4B" # or any sibling repo above
SYSTEM_PROMPT = (
"Judge whether the Document meets the requirements based on "
"the Query and the Instruct provided. "
)
INSTRUCTION = (
'Judge if the document is relevant to the query. Reply "yes" or "no".\n'
'On "yes", also emit:\n'
"One sentence covering every core point the document "
"contributes to the query, without elaboration.\n"
"Self-contained rewrite of the query-relevant content. Rules:\n"
"- Faithful: rephrase only; add or infer nothing.\n"
"- Self-contained: evidence alone must fully answer the query.\n"
"- Concise: drop query-irrelevant background.\n"
"- Verbatim (no translation): proper nouns, terms, abbreviations, "
"numbers, dates, code, URLs.\n"
"- Output language: multilingual doc → query's language; else doc's language."
""
)
PROMPT_TEMPLATE = (
"system\n{system}\n"
"user\n"
": {instruction}\n"
": {query}\n"
": {doc}\n"
"assistant\n\n\n\n\n"
)
def build_prompt(query: str, doc: str) -> str:
return PROMPT_TEMPLATE.format(
system=SYSTEM_PROMPT, instruction=INSTRUCTION, query=query, doc=doc
)
tokenizer = AutoTokenizer.from_pretrained(MODEL_PATH)
model = AutoModelForCausalLM.from_pretrained(
MODEL_PATH,
torch_dtype=torch.bfloat16,
device_map="cuda",
attn_implementation="sdpa",
).eval()
yes_id = tokenizer.encode("yes", add_special_tokens=False)[0]
no_id = tokenizer.encode("no", add_special_tokens=False)[0]
@torch.no_grad()
def rerank(query: str, doc: str, max_new_tokens: int = 512):
prompt = build_prompt(query, doc)
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys prism-qwen3-reranker-exp for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (prism-qwen3-reranker-exp below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/embeddings \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"prism-qwen3-reranker-exp","input":"text to embed"}'
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.