DeepFellow DOCS
DeepFellow API ReferenceVector store migration

Start a project-wide vector store embedding migration

POST
/v1/migrate

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).

Authorization

headerAuthorizationBearer <token>

Header Parameters

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

Request Body

application/json
  1. 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_config at cutover (silently capping chunk size and query length below the target model's real context window).
model*string
size*integer

The target embedding model's dense vector dimension.

Range0 < value
sparse?boolean
Defaultfalse

Response Body

Successful Response

application/json
  1. response

API-facing view of a project's vector store migration.

project_id*string

A 24-character hexadecimal MongoDB ObjectId string.

Match^[0-9a-fA-F]{24}$
status?MigrationState

Aggregate status of a project's vector store migration.

Default"idle"
Value in"idle""migrating""failed""cutting_over""cancelling""done"
target?|null
attempt_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.

Default[]
target_generation?integer

The 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.

Default0
error?|

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?integer
updated_at?integer
finished_at?integer|null
id*string

The migration identifier, equal to the project identifier.

Match^[0-9a-fA-F]{24}$
Example Request
curl -X POST 'https://deepfellow-server-host/v1/migrate' \  -H 'Content-Type: application/json' \  -d '{  "model": "string",  "size": 1}'
Example Response
{  "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.