Skip to main content
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.

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.

Core retrieval settings

Set these fields under configuration on the Core retrieval pin. Both Core profiles use them. 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:
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 is optional. Run it next to Core retrieval, 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:
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.
QUIVR_CONFIG (excerpt)

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