Skip to content

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

PropertyModifierTypeDescriptionDefined in
batchSize?readonlynumberThreshold 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
embeddingsreadonlyEmbeddingMetaRegistryLikeStorage layer's embedder registry.packages/memory/src/migration/embedder-migration.ts:98
maxRecordsPerKind?readonlynumberOptional cap on the number of rows to migrate per kind.packages/memory/src/migration/embedder-migration.ts:108
nextBatch?readonlyNextBatchHookHook 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?readonlyAbortSignalOptional abort signal - aborting yields one final progress event.packages/memory/src/migration/embedder-migration.ts:127
sourcereadonlyEmbedderProviderSource embedder (currently active).packages/memory/src/migration/embedder-migration.ts:94
state?readonlyMigrationStateStoreLikePersisted 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?readonlyEmbedderMigrationStrategyStrategy applied per embedding_meta row. Default 'lock-on-first'.packages/memory/src/migration/embedder-migration.ts:100
targetreadonlyEmbedderProviderTarget embedder (becomes active when migration commits).packages/memory/src/migration/embedder-migration.ts:96