Start a project-wide vector store embedding migration
Start migrating every vector store the caller's project owns to a new embedding model.
The target model/dimension/sparse setting is taken only from this request — never from the server's global default embedding config, and never applied to it either (it stays a separate, server-wide administrator setting).
AuthorizationBearer <token>OpenAI-Organization?|Organization Id from OpenAi compatible endpoint. Required to organization access or project access (with OpenAI-Project header) when logged as User or Admin User.
OpenAI-Project?|Project Id from OpenAi compatible endpoint. Required to project access for organization api key or User / Admin User access with OpenAI-Organization
application/json- body
Request body for POST /v1/migrate.
Deliberately has no project_id field: the project is always the caller's own
authenticated project (from ProjectAuth, resolved from the request's auth headers), never
a client-supplied value — otherwise a caller could trigger a migration for a project that
isn't theirs by simply naming a different id.
Has no max_context_size either, unlike MigrationTarget: that's resolved server-side from
infra (GET /v1/models/{model}?additional_data=true), the same as create_vector_store does
- not taken from the client, which would otherwise let a wrong or stale value get written into
embedding_configat cutover (silently capping chunk size and query length below the target model's real context window).
model*stringsize*integerThe target embedding model's dense vector dimension.
0 < valuesparse?booleanfalseSuccessful Response
application/json- response
API-facing view of a project's vector store migration.
project_id*stringA 24-character hexadecimal MongoDB ObjectId string.
^[0-9a-fA-F]{24}$status?MigrationStateAggregate status of a project's vector store migration.
"idle""idle""migrating""failed""cutting_over""cancelling""done"target?|nullattempt_id?|Identifies the current start-to-cutover/cancel attempt, freshly generated by start_migration and carried by every dispatched re-embedding message. retry reuses it - it resumes the same attempt rather than starting a new one. Lets a message from an attempt that was cancelled (and possibly replaced by a new one with the same target_generation) be told apart from a message belonging to the live attempt, even though both would otherwise read as status == MIGRATING.
vector_store_ids?array<>The vector stores this migration's cutover/cancel applies to, fixed at start time. A vector store created after start (writes aren't blocked for creation) never got a target-generation collection or re-embedded files, so it must not be touched by cutover or cleanup.
[]target_generation?integerThe collection_generation every vector store in this project will have after cutover.Since all of a project's vector stores migrate together, this is uniform across the project: current_generation + 1.
0error?|Set when the migration as a whole failed for a reason that isn't any single file's fault - e.g. an unexpected exception (DB unreachable, timeout) partway through cutover or cancel's per-store cleanup. Distinct from a VectorStoreMigrationFileInDb's own error. Cleared on the next start or successful retry.
created_at?integerupdated_at?integerfinished_at?integer|nullid*stringThe migration identifier, equal to the project identifier.
^[0-9a-fA-F]{24}$curl -X POST 'https://deepfellow-server-host/v1/migrate' \ -H 'Content-Type: application/json' \ -d '{ "model": "string", "size": 1}'{ "project_id": "5eb7cf5a86d9755df3a6c593", "status": "idle", "target": { "model": "string", "size": 1, "sparse": false, "max_context_size": 512 }, "attempt_id": "string", "vector_store_ids": [], "target_generation": 0, "error": "string", "created_at": 0, "updated_at": 0, "finished_at": 0, "id": "5eb7cf5a86d9755df3a6c593"}We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.