When a vLLM reranker belongs in your retrieval pipeline
A reranker takes a query and a set of candidate documents, usually returned by a vector or keyword search, and reorders them by how well each candidate answers the query. vLLM's rerank and score endpoints let you host that scoring step on the same server that already serves your chat, completion and embedding models, so the reordering happens inside infrastructure you control. Teams need it when first-stage retrieval returns many plausible candidates and the top few passed to a language model are often the wrong ones, or when retrieval quality matters more than the extra latency of one more model call.
vLLM is licensed under Apache-2.0 and has no paid edition, so the cost of a self-hosted reranker comes from the accelerator capacity it occupies, the surrounding infrastructure, the implementation work and the people who operate it. Because the rerank and score endpoints run on the same vllm serve process as the OpenAI-compatible APIs, a reranker is one more model to size, secure and monitor, not a separate platform. Before you commit, confirm with your own environment whether a reranker can share GPUs with your generation model or needs its own, and check the exact endpoint paths and model support for your vLLM release in the vLLM online serving documentation.
Decide early whether reranking belongs in the pipeline at all. Measure how often the correct passage is already in your top ten candidates and how often it is pushed out of the top three, then set a latency budget for the rerank call against the response time your users accept. Plan for the risks that come with a new internal endpoint: it adds a per-query call, its throughput depends on the batch of candidates you send, and, like other vLLM endpoints, it needs an access control layer in front of it. Ask your implementation partner or platform team to confirm these figures on your own hardware before you size the accelerators.
Endpoint and model options and when each fits
This table compares the four ways a retrieval pipeline can get relevance scores from a self-hosted vLLM server: the Jina compatible rerank path, the Cohere compatible rerank path, the score API, and an embedding call followed by your own scoring step. Read each row against your existing client code and the pipeline shape you need, since integration effort and client compatibility differ more than raw scoring quality. Confirm the exact request fields and supported model families for your vLLM version before choosing.
| Option | Integration effort | Client compatibility | Best fit |
|---|---|---|---|
| Jina compatible rerank path | Low if your code already calls a Jina-style rerank API; confirm the route and payload for your version | Clients written against the Jina rerank request shape | Pipelines that already use a Jina-style reranker and want to keep the client unchanged |
| Cohere compatible rerank path | Low if your code already calls a Cohere-style rerank API; confirm the route and payload for your version | Clients written against the Cohere rerank request shape | Pipelines that already use Cohere Rerank and want to move the model onto your own infrastructure |
| Score API | Moderate; you call the scoring endpoint directly and map its output to your ranking logic | Requires code written for vLLM's score interface, so existing rerank clients may need changes | Custom pipelines that score query and document pairs directly and need control over the output |
| Embedding call plus your own scoring step | Highest; you own the similarity math, normalization and any cross-encoder logic | Works with any embedding client, but the scoring layer is code you maintain | Teams that already run an embedding service and want a simple first retrieval stage before adding reranking |
| Choice of model | Depends on whether the model is a reranker or an embedding model; confirm the vLLM runner and model family supported | Model support determines which endpoint works at all | Check the supported reranker list for your vLLM version before committing to a recipe |
Choosing a reranker model for your workload
If your corpus and queries are all in English, the field of candidate rerankers is widest, and the decision usually comes down to latency and operating cost. Start by confirming that the model's architecture appears in the vLLM supported model list for the release you plan to run, because a strong reranker is of no use if the engine cannot load it.
- Architecture match: Check the architecture against the supported model list in the vLLM documentation for your target version, and record the exact checkpoint name, not only the model family.
- Task type: Confirm whether the checkpoint runs under the pooling runner and which score path your client will call, since the rerank and score endpoints depend on how the model is loaded.
- Query set: Build a representative set of your own queries with judged relevant passages drawn from production search logs, and use public leaderboards only to shortlist candidates.
- Baseline comparison: Keep your current first-stage ranking as the baseline so the reranker has to improve results on your data.
Before you choose, confirm that the response format your retrieval service expects matches what the server returns for the exact checkpoint you picked.
Multilingual retrieval changes the selection criteria. A reranker that performs well on English may weaken on other languages, on mixed-language documents, or on queries in one language matched against passages in another, so language coverage has to be tested before it is assumed.
- Language coverage: Ask the model publisher which languages the model was trained and evaluated on, and treat that list as a claim that still needs testing on your content.
- Language pairs: Include queries and passages in each language pair your users actually produce, including cross-language matches.
- Tokenizer and script: Check that the tokenizer handles your scripts and that long non-Latin passages do not reach the context limit sooner than the English passages do.
- Per-language reporting: Report quality per language and per query source so one strong language does not hide a weak one in the average.
- Architecture and score format: Confirm that the multilingual checkpoint's architecture is supported and that the chosen score path returns values in the format your pipeline reads.
Review the per-language results before you accept the overall average.
Long documents raise two questions: whether the reranker accepts the passage length you send, and whether a long passage should be scored as one unit or split into pieces. The input limit comes from both the model and the vLLM server configuration, so both must agree before any evaluation starts.
- Context limit: Confirm the maximum input length from the model configuration and the maximum length set on the server, and make the retrieval service respect the lower of the two.
- Chunking strategy: Decide whether to score fixed-size chunks and keep the best score, or to score whole sections, and test both on documents where the answer appears late.
- Truncation behavior: Find out whether the server truncates oversized input silently or rejects it, because silent truncation can remove the evidence the reranker needs.
- Memory under load: Longer inputs consume more KV cache, so watch cache use in the vLLM metrics docs exposed at /metrics while sending realistic document lengths.
- Labeled long-form queries: Label queries whose answers sit deep inside long documents so you can measure whether chunking improves results.
Send a test request at your largest expected document size before you size the cluster.
When accelerator capacity is limited, the question shifts from which model scores best to which model meets your latency and quality targets on hardware you can allocate. vLLM itself has no paid edition, so the main cost of this choice is accelerator capacity and the people who operate it. A smaller reranker that fits comfortably may serve retrieval better than a larger one that leaves no room for your other inference workloads.
- Memory fit: Confirm that the weights, activations and KV cache fit on the accelerator you plan to use, with headroom for concurrent requests.
- Shared GPUs: If the reranker shares a card with a chat or embedding model, measure how the workloads interfere at peak load.
- Quantized checkpoints: Check whether a quantized build of the candidate is supported on your GPU generation, and measure any quality loss on your own query set.
- Latency budget: Set the retrieval latency budget first, then test how many candidate passages you can rerank within it on the hardware you have.
- Quote inputs: When you request a quote from an implementation partner, provide your hardware list, candidate models and latency target, since capacity is the largest ongoing cost.
Run the candidate at your planned concurrency and read the server metrics before you commit the hardware.
Setting up a rerank endpoint on vLLM
This sequence takes a reranker from a confirmed vLLM release and accelerator target to a tested rerank and score service wired into retrieval. Each step closes with a check the team can record before moving on.
Confirm vLLM release and accelerator target
The platform engineer records the vLLM release you intend to run, the GPU or other accelerator it will run on, the operating system and the driver stack. Check each combination against the vLLM installation documentation before installing anything, since supported hardware differs by platform. vLLM releases minor versions about every two weeks, so pin the exact version and note it in the change record. Done when the release, hardware and driver versions are written down and confirmed as supported in the installation docs.
Select and load the reranker model
The ML or platform engineer chooses the reranker model against your retrieval language, document length and latency budget, then confirms that the vLLM version you pinned supports its architecture. Download the weights into storage you control and record the checksum and license. Load the model once on the target accelerator and watch for out-of-memory or architecture errors in the logs. Done when the model loads on the target hardware and the license and checksum are recorded.
Start the server with task flags
Start the vLLM server with the model and the task setting that makes it act as a reranker or scorer, using the flags listed for the pinned version in the online serving docs. Bind the server to an internal address only, not a public interface, and set the API key so the /v1 endpoints require authorization. Confirm in the startup log that the task was recognized and the model is ready. Done when the server reports ready and the log shows the reranker task was applied.
Test score and rerank endpoints with sample pairs
Send a small set of query and document pairs to the score endpoint and to the Jina- or Cohere-compatible rerank endpoint that your client will call. Confirm that each request returns a success status and that the response shape matches what your retrieval code expects, including field names and the index of each document. Keep the requests and responses as a baseline for regression tests. Done when both endpoints return valid responses for every sample pair and the saved baseline is stored with the release record.
Check ordering and scores against a labeled sample
Build a labeled set of queries where the relevant documents are already known, drawn from your own corpus. Run the set through the rerank endpoint and compare the returned order and scores with the labels, measuring how often relevant documents rank at the top. Check that scores are monotonic with the returned order and that they behave consistently across repeated calls. Record the results so a later model or version change can be compared. Done when the ranking results meet the quality bar your team set in writing and the results are saved as the reference.
Wire the retrieval service to the endpoint
The application engineer adds the rerank call to the retrieval pipeline after the first-stage search, passing the candidate set and the same model name used in testing. Set client timeouts, retry rules and a fallback that returns first-stage order if the reranker is unavailable, and log the endpoint status for each request. Confirm that the pipeline returns the reranked results to the caller with the expected fields. Done when an end-to-end query returns reranked results and a forced timeout triggers the fallback path.
Load test against the latency budget
The performance engineer runs a load test using realistic candidate counts and document lengths, with concurrency levels that match expected peak traffic. Measure the latency percentiles and error rates for the rerank call, and compare them with the latency budget the retrieval pipeline allows. The vLLM metrics endpoint exposes request counts and latency histograms that help explain results. Done when the measured latency meets the agreed budget at peak load, and the results and the test configuration are archived for the next release check.
How a retrieval request reaches the reranker
The request starts with a user query, which the application sends to the retriever, typically a vector store, to fetch a candidate set. The application then sends the query and candidates to the rerank or score endpoint on the vLLM server, which returns relevance scores that the application sorts into ranked results. Everything inside the trust boundary is yours to protect, including the /metrics endpoint. Check which endpoints the application network can reach, because the --api-key option does not cover /metrics.
Retrieval request path from user query to ranked results, with the vLLM trust boundary.
Setting a latency budget for reranking inside retrieval
The rerank call is usually the most variable stage in a retrieval pipeline, so its budget should be set from the request path backward. Start with the total time a user or upstream service will tolerate, subtract the fixed costs (query embedding, vector or keyword lookup, prompt assembly and network hops), and the remainder is what the reranker may spend. Four inputs decide how much of that remainder a single rerank call consumes. The first is candidate count, because a cross-encoder style reranker scores each query and document pair, so the work grows with the number of candidates returned from first-stage retrieval. The second is document length, since longer passages raise the token count per pair and therefore the compute per score. The third is batch size, which determines how many pairs the server processes together and trades throughput against the wait each request spends in the queue. The fourth is model size, which sets the floor for every pair regardless of load. Confirm the exact rerank and score request fields and any truncation or maximum length behavior for your chosen model in the vLLM documentation before you size these inputs, because they vary by model and version.
Measure before you commit to a budget. The vLLM server exposes Prometheus-format metrics at /metrics, including request counts and latency histograms, so you can separate time spent in the rerank path from the rest of the service if your load tests use the same endpoints and request mix as production. Run a representative query set at the candidate counts and document lengths you expect, record the histogram percentiles at each setting, and watch queue depth and KV cache use while the load rises, since those show when batching starts to add wait time. Histogram bucket boundaries are configurable, so set them around your budget thresholds or the percentiles you need will be blurred. Keep the /metrics endpoint off public routes, because the vLLM security guidance says the --api-key option does not protect it, and a reverse proxy should expose only the endpoints your users call.
Then set one budget per request class instead of one global number. A interactive search query, a background enrichment job and an internal evaluation run have different tolerances, so each should have its own candidate count cap, document length limit and timeout, with the rerank share of the total budget written down. Decide what happens when the rerank call exceeds its share: fall back to first-stage ordering, return fewer candidates, or fail the request, and test that path. Review the budgets whenever you change the model, the vLLM release or the hardware, because each of these shifts the latency curve. Ask any implementation partner to deliver the load test scripts, the histogram dashboard and the per-class budget table as part of the handover, so the numbers can be rechecked by your own team.
Securing the rerank endpoint
A rerank service sits in the retrieval path, so it is reachable from applications and often from internal networks that should not see every route. The cards below cover what the vLLM security documentation says about authentication scope, endpoint exposure, node isolation and request limits, and what to verify in your own deployment.
Know what --api-key covers
The --api-key option protects only the /v1, /v2, /inference and /cohere paths, so the rerank and score routes that applications call are covered. Endpoints such as /metrics and /health are not covered by the key. Confirm with a request to each path, without a key, that your deployment behaves as you expect after each upgrade.
vLLM security docsDo not rely on the key alone
The vLLM documentation warns against treating --api-key as the only control. Place a reverse proxy in front of the server and allowlist only the endpoints meant for users, such as the rerank, score and chat routes your retrieval pipeline uses. Deny /invocations, /pause, /resume, /abort_requests, /metrics and /health from user networks.
Keep metrics and health internal
The /metrics endpoint exposes request counts, token throughput, latency histograms and KV cache use. Route Prometheus scrapes and health probes over an internal network or a separate listener, so monitoring data and operational routes are not reachable from application or client networks.
Isolate multi-node traffic
Vendor documentation states that communication between nodes in a multi-node deployment is insecure by default, without authorization or encryption. If a reranker is split across nodes with pipeline parallelism, place those nodes on an isolated network that only cluster members can reach, and keep client traffic on a separate path.
Cap input size and candidate counts
A rerank request scores every candidate document against the query, so cost grows with both document length and the number of candidates. Set maximum input lengths, cap the candidate count per request in your gateway or application, and test the worst-case payload your retrieval stage can produce against the server's configured limits.
Verify limits after upgrades
Limits and endpoint behavior can change between releases, so re-run the exposure checks after every vLLM upgrade. Compare the rerank and score routes, the proxy allowlist and the isolation of internal routes against your written baseline before users are switched to the new version.
Questions teams ask about vLLM rerankers
How much does it cost to host a vLLM reranker?
vLLM has no license fee and no paid edition, so the cost comes from four places: accelerator capacity (GPUs or other accelerators), the surrounding infrastructure such as networking, storage and monitoring, the implementation work that builds and validates the endpoint, and the people who operate it afterward. Implementation is normally one-time. Accelerator capacity, hosting and operator time recur every month. The main cost drivers are reranker model size, how many candidate documents you score per query, query volume and the latency target you must hold. Ask any quote to separate one-time from recurring items, state the accelerator assumptions and list what the operating model includes.
How long until our first vLLM rerank endpoint works?
No single duration fits every environment, so ask for a written timeline rather than relying on a general figure. A first endpoint on a test host can come up fairly quickly, but a production rerank service also needs authentication, a reverse proxy, metrics, capacity testing and a rollback path. The biggest schedule drivers are accelerator availability, whether your chosen reranker is supported on your hardware and vLLM version, network and identity approvals, and how many models or retrieval pipelines are in scope. Ask for milestones tied to those dependencies, with the target environment and acceptance tests named in the scope.
What does our team need to provide for this work?
Your team supplies access and decisions, not only a request. The usual inputs are:
- Access to the cloud account, cluster or data center where the server will run, with accelerator capacity allocated to it.
- Network placement and firewall rules, including which applications may call the endpoint.
- An identity decision for callers, such as API keys behind a reverse proxy.
- A retrieval owner who defines query types, candidate set sizes, relevance criteria and acceptance thresholds.
- An operator who owns upgrades, on-call response and monitoring.
- Change control that matches your environment, including approvals for production moves.
Missing any of these usually shows up as delay later in the project, so confirm each one in the written scope before work starts.
Can our in-house team run vLLM reranking without a partner?
Yes, if your team already runs GPU workloads, can operate a Python-based inference service and has someone who owns retrieval quality. vLLM is open source under Apache-2.0, and its documentation covers installation, serving and parallelism. Gaps usually appear in model compatibility checks, GPU driver and CUDA operations, endpoint hardening and ongoing upgrades. A common split keeps operations in-house and buys fixed-scope implementation help for the first build and validation. DeployOpen implements, hardens and documents self-hosted platforms inside your own infrastructure under a written scope, so it can cover that first build or the handover. Compare your team's skills against the scope items before deciding.
How do we validate reranker quality before production?
Validate with your own data, not a generic benchmark. Build a labeled set of queries and candidate documents from your corpus, with relevance judgments made by people who know the domain. Compare the first-stage retrieval order with the reranked order using ranking metrics your team agrees on before testing starts. Check known failure cases: long documents cut off by the model's input limit, near-duplicate passages, and queries in languages the model handles poorly. Measure latency at the candidate counts and concurrency you expect, and read request and latency data from the server's Prometheus metrics at /metrics. Write the acceptance thresholds into the scope so the result is a decision, not a debate.
How do frequent vLLM releases affect our rerank endpoint?
Plan for an upgrade every few weeks and pin an exact version in production. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026. Reproduce the endpoint in staging with the same model, flags and hardware, then replay your validation set against each candidate version. Compare scores and latency with the last accepted baseline, keep the previous container image ready for rollback, and decide in advance who approves each move and how far behind production may fall. Read the release notes on the vLLM releases page before each candidate.
Is the rerank endpoint safe to expose to other applications?
Not on its own. The --api-key option protects endpoints under /v1, /v2, /inference and /cohere, but it does not cover /invocations, /pause, /resume, /abort_requests, /metrics or /health, and the security docs warn against relying on it alone. Put a reverse proxy in front that allowlists only the routes your callers need, and keep /metrics and control endpoints on an internal network. Confirm which path your rerank route uses in your installed version before writing the allowlist. For multi-node deployments, the docs state that communication between nodes is insecure by default, so isolate those nodes on a protected network. Review the vLLM security docs with your security team before exposure.
Which rerank and score routes should our applications call?
Call the rerank route your installed vLLM version exposes, and confirm its request and response shape in the documentation for that version. This topic covers Jina- and Cohere-compatible rerank endpoints and the score API, but exact paths and parameters depend on the release and the model, so check them in your own environment. The documented OpenAI-compatible server exposes /v1/completions, /v1/chat/completions, /v1/responses and /v1/embeddings, which matters for the rest of your application stack. Write a contract test that sends a fixed query and candidate set, checks the returned order and scores, and fails when fields change after an upgrade. Keep the client in a thin adapter so a later switch between compatible endpoints touches one module.
Official vLLM sources for rerank and score work
Before you build a rerank or score service on vLLM, check the behavior you plan to depend on against the project's own documentation, because the rerank and score endpoints sit alongside the OpenAI-compatible routes and their exact request shapes and model requirements are the details most likely to change between releases. Start with the vLLM online serving documentation, which describes the server started with vllm serve and the endpoints it exposes. Read it alongside the vLLM installation guide, which determines which accelerator and build your retrieval hosts need, and confirm that the rerank model you choose runs on that build. Record the vLLM version you test against, since the project ships new minor releases about every two weeks and the GitHub releases page is where you check what each release changed for pooling and scoring behavior.
Three other sources decide whether the service is safe to expose to retrieval traffic. The vLLM security documentation explains that the --api-key option does not cover every route, so the rerank and score paths must sit behind a reverse proxy that allowlists only the endpoints meant for users. The vLLM production metrics documentation lists the Prometheus metrics on /metrics that you need to measure rerank latency inside your pipeline. The vLLM Kubernetes deployment documentation covers the deployment options if the reranker runs as a separate workload from chat models. Confirm each endpoint path, parameter name and default against these pages for your chosen version, and treat any example that differs from them as out of date.
How DeployOpen scopes and delivers reranker hosting
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own infrastructure, including vLLM rerank and score endpoints for retrieval. We start from a written scope that names the reranker model, the endpoints your applications call and the latency budget your retrieval pipeline must meet.
How we scope
- Confirm which rerank and score endpoints your applications call, and which request format each client expects.
- Select the reranker model and check it against the vLLM version you plan to run before any build starts.
- Set the latency budget for reranking inside the full retrieval path, and agree how it will be measured.
- Agree the scope, deliverables and timeline in writing before work starts, since most engagements are fixed-scope.
How we build
- Deploy vLLM on the accelerators in your cloud account, data center or air-gapped network, and confirm the model loads.
- Expose only the rerank and score routes users need through a reverse proxy, because the --api-key option alone does not cover every endpoint.
- Test Jina-compatible and Cohere-compatible rerank requests and the score API against sample queries and documents from your corpus.
- Wire the /metrics endpoint into your monitoring so reranking latency and request volume are visible from the first test run.
How we hand over
- Document the endpoint allowlist, model version, startup flags and the accelerator sizing used for the reranker.
- Provide a retest plan and runbook for changing the reranker model or upgrading vLLM on your own schedule.
- Walk your platform and retrieval teams through the latency results, the known limits and the open items to confirm.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, scoped separately from the initial build.
- Track vLLM release changes that touch rerank or score behavior, and plan each upgrade as its own change with its own test run.
- Re-measure latency after model, corpus or traffic changes, and agree with your team which changes need a new review.

