Method AddIngestion
AddIngestion(EdgeBuilder, int, Action<IngestionOptions>?)
The one call. It registers two migrations — migrationVersion for
the chunk collection, through SP2's own AddVectorCollectionMigration, and
migrationVersion + 1 for the three ingestion-state tables — plus the
pipeline, the state store, the extractor registry (text + markdown), the chunkers, the
lifecycle observer, the diagnostics contributor, and one order-400 startup task that opens
NO database.
Both versions are claimed. They must be unique and ascending across the whole
database: PRAGMA user_version is one counter, so a second migration at
migrationVersion + 1 elsewhere is
MigrationVersionConflict from SP1's registry.
Idempotent per collection; a second call for the same collection throws IngestionMigrationVersionConflict (6007).
public static EdgeBuilder AddIngestion(this EdgeBuilder builder, int migrationVersion, Action<IngestionOptions>? configure = null)
Parameters
builderEdgeBuilderThe Qavren.Edge builder.
migrationVersionintThe first of the two versions this call claims.
configureAction<IngestionOptions>Configures the options.
Returns
- EdgeBuilder
The builder, for chaining.