Graphorin API reference v0.12.1
Graphorin API reference / @graphorin/memory / / MigrateEmbedderOptions
Interface: MigrateEmbedderOptions
Defined in: packages/memory/src/migration/embedder-migration.ts:92
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:106 |
embeddings | readonly | EmbeddingMetaRegistryLike | Storage layer's embedder registry. | packages/memory/src/migration/embedder-migration.ts:98 |
maxRecordsPerKind? | readonly | number | Optional cap on the number of rows to migrate per kind. | packages/memory/src/migration/embedder-migration.ts:108 |
nextBatch? | readonly | NextBatchHook | Hook that returns the next batch of rows to re-embed for a given kind. auto-migrate throws without it. The default @graphorin/store-sqlite adapter ships one as store.embedderMigration.nextBatch (wave-D D5); custom adapters pass their own paging function. | packages/memory/src/migration/embedder-migration.ts:116 |
signal? | readonly | AbortSignal | Optional abort signal - aborting yields one final progress event. | packages/memory/src/migration/embedder-migration.ts:127 |
source | readonly | EmbedderProvider | Source embedder (currently active). | packages/memory/src/migration/embedder-migration.ts:94 |
state? | readonly | MigrationStateStoreLike | Persisted cursor store (wave-D D5 / MST-12). When supplied, auto-migrate records progress after every batch into migration_state and RESUMES from the persisted cursor on the next invocation (same source/target pair) - across process restarts and kills. An explicit abort marks the row aborted (still resumable); commit marks it committed. | packages/memory/src/migration/embedder-migration.ts:125 |
strategy? | readonly | EmbedderMigrationStrategy | Strategy applied per embedding_meta row. Default 'lock-on-first'. | packages/memory/src/migration/embedder-migration.ts:100 |
target | readonly | EmbedderProvider | Target embedder (becomes active when migration commits). | packages/memory/src/migration/embedder-migration.ts:96 |