> ## Documentation Index
> Fetch the complete documentation index at: https://docs.quivr.thevibecompany.co/llms.txt
> Use this file to discover all available pages before exploring further.

# HTTP reranker

> Send the top search matches to a TEI- or Cohere-compatible service for reranking.

Search

experimental

v0.1.0

Needs Rerank endpoint and credentials if required

[View plugin source](https://github.com/The-Vibe-Company/quivr/tree/main/plugins/http-rerank) · Plugin ID `http.rerank` · Plugin API `>=0.17.0 <0.21.0`

The HTTP reranker passes a shortlist to your scoring service before Quivr returns it.

![The HTTP reranker reorders Core search's shortlist using scores from your service.](https://mintcdn.com/thevibecompany/q5BY1CDLGb0PDo4C/images/diagrams/http-rerank.png?fit=max\&auto=format\&n=q5BY1CDLGb0PDo4C\&q=85\&s=87fc34f9567084b40224a6402c2c430e)

## What it does

Use the HTTP reranker to add a second ranking pass to Core search. You choose the scoring model, called a cross-encoder because it reads the query and candidate text together. Its service must speak the TEI or Cohere rerank protocol.

## Before you start

Keep Core search pinned. Have the full rerank service URL and a model name if the service speaks Cohere. To compare searches, use an API key with `content:read` and `search:query` on a searchable collection.

## Enable it

**1. Pin the HTTP reranker**

Run the plugin from `plugins/http-rerank` using its manifest's run command. Follow [Pin a plugin](https://docs.quivr.thevibecompany.co/operate/manage-plugins.md#pin-a-plugin) to register its manifest and running URL. In the pin's `configuration`, set `endpoint` to the full URL of the scoring service. Leave `protocol` as `tei` for TEI. For a Cohere-compatible service, set `protocol` to `cohere` and supply `model`.

**2. Map a search profile**

Keep `default` mapped to `core.retrieve/default` and map a separate alias, such as `reranked`, to `http.rerank/deep` in [search profiles](https://docs.quivr.thevibecompany.co/reference/configuration.md#search-profiles).

> [!WARNING]
>
> The plugin sends your query and shortlisted passages to the scoring service. Use HTTPS for remote endpoints. For Bearer authentication, set `RERANKER_API_KEY` in the plugin process and use an HTTPS endpoint.

## Use it

### Compare the first and second ranking

Use the same collection, query and mode from the [search guide](https://docs.quivr.thevibecompany.co/guides/search.md). Run it once with `profile` set to `default`, then with `profile` set to `reranked`. Compare hit order and look for `HTTP reranker:` in the explanations. If you choose a different base profile via `base_profile`, compare against that profile instead.

### Reranking options

| Plugin | What scores the shortlist |
| - | - |
| [Jev reranker](https://docs.quivr.thevibecompany.co/plugins/jev-rerank.md) | Paid TypeSafe Jev service over Core search's hybrid results. |
| [HTTP reranker](https://docs.quivr.thevibecompany.co/plugins/http-rerank.md) | A scoring model you choose, behind a TEI- or Cohere-compatible endpoint. |
| [Newsroom search](https://docs.quivr.thevibecompany.co/plugins/newsroom-retrieve.md) | Optional reranking in `deep` uses the configured `rerank_endpoint`. |

Newsroom search skips text reranking for lexical and image-to-image searches. Set `rerank_visual_mode: skip_rerank` to also skip it when `scope.modalities` contains only `image`.

## Settings

## What it produces

The plugin reorders the shortlisted passages using the service's scores. The default sorts by those scores. You can also combine them with Core search's scores or ranks. Core search keeps the original query mode and collection scope.

## Limits and troubleshooting

The service must return one indexed score per passage. Check the full URL, protocol and credentials if results stay in base order. By default, Quivr keeps the base ranking on a scoring error or timeout. Set `fallback_on_error` to `false` to make the plugin return a retryable `reranker_unavailable` error. Quivr can still return results from the deployment’s default profile when engine-level profile fallback applies.

## Related plugins

[Core search](https://docs.quivr.thevibecompany.co/plugins/core-retrieve.md) · [Jev reranker](https://docs.quivr.thevibecompany.co/plugins/jev-rerank.md) · [Newsroom search](https://docs.quivr.thevibecompany.co/plugins/newsroom-retrieve.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.