Skip to main content

Module migrate

Module migrate 

Source
Expand description

Knowledge-source migration transforms: convert an indexed knowledge source (azureBlob, azureSql, oneLake, …) with an Azure-generated pipeline into the explicit searchIndex shape plus first-class data-source/index/skillset/indexer definitions.

Everything here is a pure document transform — the rigg migrate command writes files, and rigg push performs the actual replace.

Functions§

created_resources
The generated sub-resources named by a knowledge source’s createdResources object (found at any nesting depth — the live shape nests it under <kind>Parameters). Unknown member names are ignored.
derive_names
Derive side-by-side names for the new pipeline: when a generated name starts with the old knowledge-source name, that prefix is swapped for the new name (regulatory-indexreg2-index); otherwise a conventional <new>-<kind> name is used.
is_indexed_with_created
Whether this knowledge source is an indexed kind with a generated pipeline that can be migrated (i.e. carries a non-empty createdResources). Remote kinds (web, MCP, …) and searchIndex sources have nothing to migrate.
to_search_index_ks
Build the explicit searchIndex knowledge-source document replacing an indexed one: preserves name and description, points at index_name, and drops every <kind>Parameters payload.