Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/memory / / MigrateEmbedderOptions
Interface: MigrateEmbedderOptions
Defined in: packages/memory/src/migration/embedder-migration.ts:56
Options accepted by migrateEmbedder.
Stable
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
batchSize? | readonly | number | Threshold for auto-migrate. The runner streams source rows in batches of batchSize (default 512) and yields progress after each batch. | packages/memory/src/migration/embedder-migration.ts:70 |
embeddings | readonly | EmbeddingMetaRegistryLike | Storage layer's embedder registry. | packages/memory/src/migration/embedder-migration.ts:62 |
maxRecordsPerKind? | readonly | number | Optional cap on the number of rows to migrate per kind. | packages/memory/src/migration/embedder-migration.ts:72 |
nextBatch? | readonly | NextBatchHook | Hook that returns the next batch of rows to re-embed for a given kind. MST-12: this is caller-supplied - there is no store-side helper that auto-wires it today, and auto-migrate throws without it. Pass a paging function over your source rows to drive the migration. | packages/memory/src/migration/embedder-migration.ts:79 |
signal? | readonly | AbortSignal | Optional abort signal - aborting yields one final progress event. | packages/memory/src/migration/embedder-migration.ts:81 |
source | readonly | EmbedderProvider | Source embedder (currently active). | packages/memory/src/migration/embedder-migration.ts:58 |
strategy? | readonly | EmbedderMigrationStrategy | Strategy applied per embedding_meta row. Default 'lock-on-first'. | packages/memory/src/migration/embedder-migration.ts:64 |
target | readonly | EmbedderProvider | Target embedder (becomes active when migration commits). | packages/memory/src/migration/embedder-migration.ts:60 |