Find the failing step
For an individual document revision, use
GET /v0/admin/documents/{version_id}/timeline with observability:read and the Corpus grant. The timeline shows where processing stopped. A Corpus is a collection of documents.
Reprocess quarantined documents
Quarantine holds a document revision with its failure reason so you can retry it after fixing the cause. Use a key withplugins:admin from the Corpus’s Organization and with a grant on the Corpus. Use operations:read to follow the reprocess. Pausing, resuming and rerunning require operations:write and plugins:admin. Canceling requires operations:write. On a deployment with split listeners, list quarantine and start the reprocess on the private listener. Read and control the operation on the regular API.
1
Fix the plugin and list the affected revisions
Activate the fix or roll back. Read
GET /v0/admin/quarantine. Filter with corpus_id, code, plugin, quarantined_after or quarantined_before. Pass the returned next_page_cursor as page_cursor to continue. Check stage and reason on the affected revisions.2
Count the revisions first
Send
POST /v0/admin/quarantine/reprocess with corpus_id, a fresh idempotency_key, any scope filters, and dry_run: true. Quivr reports how many revisions match, grouped by stage and reason code. An omitted filter widens the scope within the Corpus.Quivr normally retries the failed step. If ingestion failed because it received bad output from the format reader, include from_stage: "normalization" in both requests. Quivr can reread the saved source file where it can publish a replacement. Ineligible revisions stay quarantined.3
Start and check recovery
Repeat the same body with
dry_run: false. Follow Location to see versions_recovered, versions_quarantined and versions_skipped. A repeated start with the same key and scope returns the same task. Changes to the filters or starting stage need a new key and dry run.List the Corpus’s quarantined revisions again and try searches for recovered documents. Revisions that failed again show their latest reasons.POST /v0/operations/{operation_id}/pause, /resume or /cancel with an idempotency_key to manage it. To retry the revisions still held in the same scope with the plan now active, use /rerun on the finished task. See the API reference for the request fields.
If a previous change stranded a rebuild with pinned_plugin_unavailable, cancel the stalled task, wait for it to finish canceling, and start a new rebuild under the active plan. Dry-run and reprocess with a new key, the affected Corpus and code: "pinned_plugin_unavailable".
Reset and reload an installation
Use a checkout of the revision you run, Python 3.12 or later and access to the dedicated Compose or Railway installation. Set"dedicated": true in your private declaration to assert that the selected volumes hold only this installation’s data. Check the repository’s installation examples for its shape. The helper checks volume ownership and refuses external or unverifiable vector indexes before changing state.
For example, preview your private declaration with python3 deploy/reset.py -f /private/installation.json. Inspect the selected deployment, services and volume IDs. Execution requires --confirm and --deployment-name with the exact name from the declaration. Preserve any checkpoint if reset fails and inspect it before continuing. Railway creates replacement volumes at the provider’s default capacity. Check volume_sizes and grow the replacements in the Railway dashboard to the capacity you need before applying sources or importing data.
Use quivr apply with a private source declaration and state file to recreate Corpora and connectors. Preview first, then repeat with --confirm to apply the changes. See the CLI reference for flags and Connect a source for connector setup.