Skip to main content

delete_embeddings_for_path

Function delete_embeddings_for_path 

Source
pub async fn delete_embeddings_for_path(
    conn: &Connection,
    source_path: &str,
    vec_conn: Option<&VecConnection>,
) -> Result<u64, Error>
Expand description

Delete embeddings for a specific (source_type, source_path) pair, all models. Used during incremental rebuild when a file changes.

Also removes the corresponding rows from vec_embeddings (best-effort) when a VecConnection is provided.