https://raw.githubusercontent.com/OrcVole/bge-reranker-cloudron/main/CloudronVersions.json
Description
1.10.0
BGE Reranker (bge-reranker-v2-m3) on Text Embeddings Inference
A private, self-hosted reranking API. It serves the Apache-2.0 model `BAAI/bge-reranker-v2-m3` - a multilingual XLM-RoBERTa cross-encoder - using Hugging Face Text Embeddings Inference (TEI), the production-grade Rust server. The model weights are baked into the image, so the app is ready within seconds of install, runs fully offline, and never phones home.
This is the reranking half of a two-stage retrieve-then-rerank pipeline. A retriever (vector search or keyword search) returns a shortlist of candidate passages; the reranker scores each candidate against the query with a cross-encoder, which is far more accurate than the first-stage similarity. You keep the top results. It pairs naturally with an embeddings server and a vector database.
The API
Send a query and a list of candidate texts; get a relevance score for each.
curl https://your-app-domain/rerank \
-H "Authorization: Bearer $RERANKER_API_KEY" \
-H 'content-type: application/json' \
-d '{"query":"what is panda?","texts":["hi","The giant panda is a bear endemic to China."]}'
# -> [{"index":1,"score":0.99...}, {"index":0,"score":0.00...}] (sorted best-first)
Request fields: query (string), texts (array of strings), and the optional raw_scores,
return_text, truncate, truncation_direction. TEI returns a score for every text and sorts the
results best-first; take as many as you need from the top. (TEI's /rerank has no server-side top_n;
slice client-side.)
Security and topology
- One strong API key is generated on first run and stored inside the app; send it as
Authorization: Bearer <key>. The reranking API is open at the network layer and protected by the key, so programmatic clients get a clean 401 (never an SSO redirect). - The browsable Swagger docs at
/docsare placed behind Cloudron single sign-on. /healthis open and unauthenticated for platform monitoring.
Notes
- CPU inference, amd64 only (the TEI CPU build bundles Intel MKL; there is no arm64 CPU image).
- The model is fixed (baked). For text embeddings, run the companion TEI embeddings app instead.
- This is an API, not a web app. Opening the domain shows a short landing page describing the API and
how to call it; the interactive Swagger docs are at
/docs(behind login).
Recent Changes
Upstream text-embeddings-inference 1.9.4 to 1.10.0. The baked model and the base image are unchanged.
Security: the startup log no longer prints the API key (upstream PR 966, "Redact --api-key in the startup log"). Earlier releases of this package, which pass the key to the server through its API_KEY environment variable, wrote it in plain text into the app log at every start.
If your app logs from an earlier version could have been seen or copied by somebody who should not hold the key
(shared logs, support bundles, log collectors), make a new one: delete
/app/data/.secrets/keys.envand restart the app, then givethe new key to your clients.
Upstream fixes relevant to this CPU build include: no panic when the backend channel is full (PR 952), truncation direction respected when long inputs are cut (PR 955), the character budget preserved for uneven input pairs (PR 992), and non-finite prediction scores handled safely (PR 932).
Upstream changes two defaults that do not affect this package as shipped: the multi-label sigmoid change (PR 983) concerns multi-label classifiers, which this model is not; the separate metrics port (PR 678) applies only if PROMETHEUS_PORT is set to a port other than the API port. If you set it in the app environment, /metrics is no longer served on the app's own address.

