Skip to main content
POST
Request backfill

Authorizations

Authorization
string
header
required

API key, not necessarily a JWT. Server derives Organization, permitted actions and Corpus scope; every resource access is authorized.

Body

application/json
idempotency_key
string
required
Required string length: 1 - 200
corpus_id
string
required
Minimum string length: 1
dry_run
boolean
required

true reports the estimate and records it; false starts the backfill a dry run with the same key and scope preceded.

accepted_after
string<date-time>

Only Versions Quivr accepted at or after this time; absent, from the first.

accepted_before
string<date-time>

Only Versions Quivr accepted before this time; absent, up to now.

registration_id
string

The ingestion plugin registration to run; absent, the active plan's. Another one is 409 registration_not_active.

Minimum string length: 1
spaces
string[]

The vector spaces to fill, which the plugin declares and the deployment serves or evaluates; absent, the deployment's evaluation spaces the plugin owns.

Required array length: 1 - 8 elements
Minimum string length: 1
confirm_cost
boolean
default:false

Accept an estimated cost above the deployment's backfill.max_cost_without_confirmation.

Response

The dry run's estimate, recorded under the key.

registration_id
string
required
Minimum string length: 1
spaces
string[]
required
Minimum string length: 1
versions
integer
required

Versions in scope that miss a vector in a target space.

Required range: x >= 0
segments
integer
required

Their segments, which the plugin embeds.

Required range: x >= 0
input_tokens
integer
required

Estimated tokens the plugin embeds, one per four code points of segment text.

Required range: x >= 0
estimated_seconds
number<double>
required

How long the backfill should take, at the deployment's backfill.rate or the recent throughput, whichever is slower.

Required range: x >= 0
duration_basis
enum<string>
required

What the duration comes from.

Available options:
rate,
recent_backfills,
recent_plugin_calls
confirmation_required
boolean
required

The cost exceeds backfill.max_cost_without_confirmation, so starting the backfill needs confirm_cost.

estimated_cost_usd
number<double>

Estimated cost in US dollars, rounded up to the cent, of the target spaces that declare an input_price in the plugin manifest; a space without one adds nothing. Absent when none declares one, so the cost is unknown.

Required range: x >= 0