Skip to main content

spawn_embed_backfill

Function spawn_embed_backfill 

Source
pub fn spawn_embed_backfill(
    memory: Arc<SemanticMemory>,
    timeout_secs: u64,
    progress_tx: Option<Sender<Option<BackfillProgress>>>,
) -> JoinHandle<()>
Expand description

Spawn a background task that backfills missing embeddings.

Fire-and-forget: the caller does not need to await the returned handle. The task runs for at most timeout_secs seconds.

§Errors

The returned JoinHandle resolves to () — errors are logged internally.