Skip to main content

embed_and_store

Function embed_and_store 

Source
pub fn embed_and_store<R: ModelRunner, S: AssetSource>(
    ws: &S,
    runner: &R,
    registry: &Registry,
    asset_id: &Uuid,
    task: TaskKind,
    partition: &str,
) -> Result<(), OrchestratorError>
Expand description

Embed asset_id under task’s canonical model over its decoded pixels and store the vector in the task’s vec0 partition under partition (resolve it with resolve_partition). Serves both embedding slots — SemanticSearch and FaceRecognition. Refuses a non-canonical runner before touching the index. The index is derived state, so no signed manifest is minted (recovery-first: it is rebuilt by re-running inference).