Skip to content
ai-supply.store
खोजेंश्रेणियाँलीडरबोर्डसमुदायAgent APIFAQ
साइन इनमुफ़्त साइन अप
catalog / Language & NLP / rerankers
⬡PipelineLanguage & NLPFree

rerankers

Lightweight, low-dependency unified Python API to run any cross-encoder, ColBERT, or LLM reranker to sharpen RAG retrieval.

@ai-supply
इंस्टॉल2.2k
⟳ upstream 0.6.0 · updated 1y ago
↗ सोर्स रिपॉज़िटरी
← More Language & NLPLanguage & NLP leaderboard →How we grade security →Source ↗
✓ Grade A · 100/100 · SafeSecurity assessment
✓No compromise signals8capabilities surfaced11of 20 OWASP controls clear
External endpoints declaredExternal endpoints declaredExternal endpoints declaredExternal endpoints declared
scanned 1mo ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

rerankers

A small, focused library from Answer.AI that gives you a single, consistent Python interface over every common reranking approach. Swap a SentenceTransformers cross-encoder for a Cohere/Jina API reranker, a T5-based model, ColBERT late-interaction scoring, RankGPT-style LLM reranking, or FlashRank ONNX models by changing one string — the calling code stays identical. This solves the classic RAG second-stage problem: a fast bi-encoder retrieves a broad candidate set, and a reranker re-scores the top-k so the most relevant passages land in the prompt.

Key features

  • One Reranker API across cross-encoders, ColBERT, T5, LLM, API, and FlashRank backends
  • Deliberately minimal dependencies — install only the backend you actually use
  • Returns ranked, scored results ready to feed a generator
  • Trivial to A/B different rerankers without rewriting retrieval code
  • Framework-agnostic; drops into LangChain, LlamaIndex, or bespoke pipelines

Curated mirror of the open-source rerankers (Apache-2.0). Get it from the source.

Rating rank
#1
of 30 in Language & NLP
Install rank
#25
of 30 in Language & NLP
Security score
100/100 · A
safe
Security rank
#1
of 30 in Language & NLP
Installs
2.2k
cat avg 145k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Language & NLP leaderboard →
✓ Security: Safe · 100100/100 · grade Ascanned 1mo ago
✓ no compromise signals8 risk-surface · 3/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ network
egress → img.shields.io, static.pepy.tech, pepy.tech, twitter.com, www.answer.ai, huggingface.co, arxiv.org, api.cohere.ai +5
0 steps

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · AnswerDotAI-rerankers-5b9cbb0/rerankers/models/colbert_ranker.py (CWE-95)risk surface
⚠LLM06Excessive Agencylow
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · AnswerDotAI-rerankers-5b9cbb0/LICENSErisk surface
•External endpoints declared — 8 distinct host(s) · AnswerDotAI-rerankers-5b9cbb0/README.mdrisk surface
•External endpoints declared — 2 distinct host(s) · AnswerDotAI-rerankers-5b9cbb0/examples/langchain_integration.ipynbrisk surface
•External endpoints declared — 6 distinct host(s) · AnswerDotAI-rerankers-5b9cbb0/examples/overview.ipynbrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · AnswerDotAI-rerankers-5b9cbb0/examples/reranker_images.ipynb (CWE-272)risk surface
•External endpoints declared — 10 distinct host(s) · AnswerDotAI-rerankers-5b9cbb0/examples/reranker_images.ipynbrisk surface
•External endpoints declared — 3 distinct host(s) · AnswerDotAI-rerankers-5b9cbb0/tests/consistency_notebooks/test_crossenc.ipynbrisk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
◷LLM10Unbounded ConsumptionRuntime-enforced
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
✓LLM01Prompt InjectionPassed
✓LLM02Sensitive Information DisclosurePassed
✓LLM03Supply ChainPassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM07System Prompt LeakagePassed
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · AnswerDotAI-rerankers-5b9cbb0/rerankers/models/colbert_ranker.py (CWE-95)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML06AI Supply ChainPassed
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (2) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · AnswerDotAI-rerankers-5b9cbb0/.gitignorerisk surface
•Unrecognized file type — '.?' is not on the allowlist · AnswerDotAI-rerankers-5b9cbb0/LICENSErisk surface
✔ verified source · pinned AnswerDotAI-rerankers-5b9cbb0
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/rerankers-unified-reranking-api/check). Click a policy:

Consume rerankers programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/rerankers-unified-reranking-api

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/rerankers-unified-reranking-api/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add rerankers-unified-reranking-api

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/rerankers-unified-reranking-api/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "rerankers-unified-reranking-api" })
OpenAPI spec →
vlatest
✓ Security: Safe · 1001mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

मुफ़्त, सुरक्षा-जाँची गई AI क्षमताएँ — skills, MCPs, plugins, agents, datasets और बहुत कुछ, हर एक ग्रेडेड और ताज़गी-ट्रैक्ड, और इंसानों तथा agents दोनों के लिए बनाई गई।

api · v3.1status · all green
संपर्क करें
support@ai-supply.storesecurity@ai-supply.store
कैटलॉग
  • खोजें
  • श्रेणियाँ
  • लीडरबोर्ड
  • बेंचमार्क
  • सुरक्षा
  • Scan a repo
समुदाय
  • समुदाय
  • FAQ
एजेंट के लिए
  • क्विकस्टार्ट (60s)
  • एजेंट अधिकृत करें
  • Agent API
  • OpenAPI स्पेसिफिकेशन
बिल्डर्स के लिए
  • प्रकाशित करें
  • डैशबोर्ड
खाता
  • खाता बनाएँ
  • साइन इन
  • सेटिंग्स
कानूनी
  • नियम व शर्तें
  • प्रकाशक अनुबंध
  • स्वीकार्य उपयोग नीति
  • गोपनीयता