Skip to main content
Quivr uses EmbeddingGemma 2 (google/embeddinggemma-2) to find matches by meaning. Backfill to add missing vectors to an existing index, or rebuild when you need to replace how the index is made.

Know which changes need a rebuild

A vector space is the set of compatible vectors for documents and queries. A segmentation recipe determines how Quivr cuts documents into passages. Use the multimodal embedding plugin to configure inference.

Tune execution without changing the model

The plugin declares batch_size, max_batch_tokens, max_concurrent_requests, batch_wait_ms, request_timeout_ms, call_budget_ms, max_retries, tokenizer_processes and encoding_format as execution settings. Keep the plugin ID, version, semantic settings and enabled spaces the same. Use the plugin upgrade procedure and confirm Quivr recognizes the change as equivalent. For the OpenAI-compatible provider protocol, encoding_format selects how the server returns the same float32 values, as JSON numbers or base64. This setting alone preserves the vectors and needs no rebuild. The separate provider protocol setting, format, is part of the space’s identity. Changing it for the served space requires a rebuild, as do changes to dimensions, metric, model revision or input templates. A different plugin version, provider endpoint or authentication mode can also change the ingestion recipe even when the space ID stays the same.

Fill a vector space

A backfill adds vectors for documents you already have. Select an enabled space from an active ingestion plugin. A space marked evaluation can collect vectors while the served space answers searches. A backfill fills the existing index. A rebuild prepares a replacement before switching search to it.
A backfill fills the existing index. A rebuild prepares and validates a replacement, then switches search to it.A backfill fills the existing index. A rebuild prepares and validates a replacement, then switches search to it.
Open the full-size diagram Use a key with plugins:admin that grants the target Corpus. To follow a backfill, use operations:read. Checking spaces requires corpora:read. Pausing and resuming require both plugins:admin and operations:write. Canceling requires operations:write. If your deployment uses separate listeners, send admin routes to the private listener and read or control the operation on the regular API.
1

Estimate the work

Send POST /v0/admin/backfills with idempotency_key, corpus_id, the target space IDs in spaces and dry_run: true. Use registration_id to select an ingestion plugin other than the active plan’s default. For a cutover, leave the acceptance window open so the estimate includes all eligible past documents.
2

Start the backfill

Repeat the same scope and key with dry_run: false. Add confirm_cost: true if the estimate requires confirmation. Follow the returned Location. Once work starts, live ingestion fills the target space for newer documents while bulk workers fill earlier ones.
3

Check coverage

Inspect versions_done and versions_skipped in the operation’s counters. A document can be skipped if its passages would be cut differently, since changing existing cuts needs a rebuild. Read GET /v0/corpora/{corpus_id}/vector-spaces with the corpora:read key. Wait for a known, refreshed snapshot and check that the covered segments match the total for the target space.
4

Switch search

For a new space of the same plugin, send POST /v0/admin/spaces/{vector_space_id}/promote with an empty JSON object. Follow Location with the plugins:admin key. Promotion checks coverage across the deployment. Fill any affected Corpus that still has gaps, then retry. To switch back, see Go back to the previous space.To switch to another ingestion plugin, follow Fill and promote another plugin.

Backfill check it worked

After switching search, list the spaces for every affected Corpus. The intended space should have role: "served" and a current coverage snapshot with every segment covered. Run your saved meaning searches with mode: "semantic" and check that the expected hits report the intended vector_space_id.

Fill and promote another plugin

Enable the incoming ingestion plugin for evaluation so it can prepare data while the current plugin serves search. Backfill each affected Corpus using the incoming registration_id and its primary space in spaces. Once coverage is complete, activate the incoming registration. If backfill returns rebuild_required, rebuild the collection to update an index that predates named vector spaces. After the switch, check the space and search results before retiring the old plugin.

Go back to the previous space

For spaces owned by the same plugin, promote the previous space again while it remains enabled and has complete coverage. If you switched ingestion plugins, restore the saved plan. Check meaning search again and move meaning alerts after the switch.

Rebuild a collection

A rebuild prepares a new searchable copy from stored text and artifacts. Quivr can reuse compatible stored vectors. If the recipe changes, it can cut and embed passages again. Allow space for the old and new indexes while they coexist.
  1. Apply the intended plugin and index settings. Keep the old dependencies available where existing work still needs them.
  2. Send POST /v0/corpora/{corpus_id}/rebuilds with a fresh idempotency_key in the JSON body. The key needs projections:rebuild and a grant on the Corpus. Repeating the same request returns the same Operation, the record of the background task.
  3. Follow the response’s Location with operations:read. Inspect coverage and errors. The existing index stays routed until Quivr validates and activates the replacement. Keep its query encoder available until the switch.
  4. After success, check the vector space and run representative keyword and meaning searches. If the rebuild fails, inspect its errors and check for documents held after a failure.

Move meaning alerts

When the served space changes, including after a rollback, alerts using meaning_check: vectors need query vectors in the new space. After search switches, create a version through POST /v0/saved-queries/{saved_query_id}/versions with the current definition and a fresh idempotency key. Then create a version through POST /v0/subscriptions/{subscription_id}/versions for each affected alert, preserving its evaluator and optional destination and pointing saved_query_version_id to the new query version. Use monitoring:read to inspect existing definitions and monitoring:write to update them. The key must grant every Corpus in the current and new query scopes.
Move the alerts immediately after switching spaces. In the gap, mismatched vectors can produce final not_ready decisions. Updating the alert applies to later changes, so documents accepted in the gap can miss alerts permanently.
Use your alert inventory to include disabled alerts before re-enabling them. Check the new threshold on representative examples because similarity scores can change across spaces.

Next