> ## 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.

# Search profiles

> Choose the search profiles your deployment exposes and check how they rank results.

A search profile tells Quivr how to find and rank results. You choose which installed profile answers a short name such as `default` or `deep`.

## Short names and full names

A full name joins a retrieval plugin's ID and its profile, such as `core.retrieve/default`. Clients can send the full name in the search request's `profile` field, or send a short name from your deployment's map. If a search names no profile, it uses `default`.

| Profile | How it ranks |
| - | - |
| `core.retrieve/default` | Uses keywords, meaning or both, according to the search mode. |
| `core.retrieve/deep` | Uses the same ranking as Core's default, with a longer latency target. |
| `jev.rerank/deep` | Starts from Core's combined keyword and meaning results, then reranks the shortlist with Jev. |

## How a deployment chooses

With one retrieval plugin and no map, its declared profile names become short names. With several retrieval plugins, set `retrieval.profiles` in the JSON file named by `QUIVR_CONFIG`. Include `default` and point every short name to a profile the deployment runs.

Quivr rejects invalid maps at startup and checks that a new plugin version still provides the mapped profiles before activation. Full names select installed profiles directly. See [profile configuration](https://docs.quivr.thevibecompany.co/reference/configuration.md#search-profiles).

## Core retrieval settings

Set these fields under `configuration` on the [Core retrieval pin](https://docs.quivr.thevibecompany.co/plugins/core-retrieve.md). Both Core profiles use them.

| Setting | What it changes |
| - | - |
| `dense_weight` | The weight of meaning matches in hybrid search. Set 0 to 1. The default is 0.5. |
| `candidate_count` | The size of the shortlist requested per vector space, or for the keyword-only request. Set 1 to 100. The default is the search limit. |
| `hybrid_fusion` | How keyword and meaning rankings combine. `relative_score` is the default. `ranked` combines positions in each ranking. |

Jev has its own `candidate_count` for its reranking shortlist.

## See and call the profiles

Use `curl` and `jq`, a running Quivr API at `QUIVR_API_URL`, and a key with `search:query` in `QUIVR_API_KEY`. The local stack exports both variables with `eval "$(make -s env)"`. The first item is the profile mapped to `default`. The local stack lists these two:

```bash theme={null}
curl -s "$QUIVR_API_URL/v0/search/profiles" -H "Authorization: Bearer $QUIVR_API_KEY" \
  | jq -c '.items[] | {full_name, aliases, max_latency_ms, max_cost_cents}'
```

```text theme={null}
{"full_name":"core.retrieve/default","aliases":["default"],"max_latency_ms":1500,"max_cost_cents":0}
{"full_name":"core.retrieve/deep","aliases":["deep"],"max_latency_ms":3000,"max_cost_cents":1}
```

Send `"profile": "deep"` to use the current alias or `"profile": "core.retrieve/deep"` to select Core explicitly. Inspect `usage.profiles` in the response for the full names that ran. An unresolved name returns `422 unsupported_profile`.

## Re-rank with Jev

[Jev](https://docs.quivr.thevibecompany.co/plugins/jev-rerank.md) is optional. Run it next to [Core retrieval](https://docs.quivr.thevibecompany.co/plugins/core-retrieve.md), which supplies the hybrid shortlist. From a Quivr checkout with Python 3.12 or later, this example creates a virtual environment and starts a local Jev process:

```bash theme={null}
python3 -m venv .venv
source .venv/bin/activate
python -m pip install ./sdks/python ./plugins/jev-rerank
export QUIVR_PLUGIN_MANIFEST="$PWD/plugins/jev-rerank/quivr-plugin.yaml"
export QUIVR_PLUGIN_HOST=127.0.0.1
export QUIVR_PLUGIN_PORT=8083
python -m jev_rerank
```

Inject `TYPESAFE_API_KEY` into the Jev process environment before starting it to enable scoring. The plugin can return Core's hybrid order without the key. Replace the example loopback address if Quivr runs on another host or in a separate container.

For example, merge these entries into your `QUIVR_CONFIG` JSON. Keep your existing Core retrieval pin, ingestion pins and other plugins. Apply the config and confirm both aliases with the profile list.

```json QUIVR_CONFIG (excerpt) theme={null}
{
  "plugins": [{
    "manifest": "/path/to/quivr/plugins/jev-rerank/quivr-plugin.yaml",
    "endpoint": "http://127.0.0.1:8083",
    "configuration": {"candidate_count": 30}
  }],
  "retrieval": {
    "profiles": {
      "default": "core.retrieve/default",
      "deep": "jev.rerank/deep"
    }
  }
}
```

## Time and cost budgets

The profile list reports a latency target and a maximum reported cost per search. The hard time limit is four times the target, bounded between two and 25 seconds. The outer profile's limit covers the whole search, including the Core query for a Jev search. Use `usage.elapsed_ms`, `usage.paid_calls`, `usage.cost_cents` and `usage.profiles` to inspect what ran.

When Core returns candidates, Jev can keep their original hybrid order if the provider key is missing, the provider returns an error or invalid answer, the reranker reaches its two-second deadline (shorter if the search has less time left), or the remaining cost budget cannot cover a call. Look for `re-ranker unavailable` in a hit's `explanation`. A failed paid attempt can still report reserved cost. If the plugin itself or a required search dependency is unavailable, the search can return a retryable `503`.

## Next

* [Send a search with a profile](https://docs.quivr.thevibecompany.co/guides/search.md#choose-a-profile).
* [Compare search quality and latency](https://docs.quivr.thevibecompany.co/operate/measure-search.md).


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