diff --git a/src/core/processor/face.rs b/src/core/processor/face.rs index ff5e79dc..665b9aca 100644 --- a/src/core/processor/face.rs +++ b/src/core/processor/face.rs @@ -415,6 +415,13 @@ async fn run_face_with_config( result.compute_status(); result.save_to_file(output_path)?; + if let Some(uid) = uuid { + match store_face_embeddings_to_qdrant(uid, &mut result, output_path).await { + Ok(count) => tracing::info!("[FACE] Stored {} embeddings to Qdrant", count), + Err(e) => tracing::warn!("[FACE] Failed to store embeddings to Qdrant: {}", e), + } + } + return Ok(Some(result)); } "python" => { @@ -439,6 +446,13 @@ async fn run_face_with_config( result.compute_status(); result.save_to_file(output_path)?; + if let Some(uid) = uuid { + match store_face_embeddings_to_qdrant(uid, &mut result, output_path).await { + Ok(count) => tracing::info!("[FACE] Stored {} embeddings to Qdrant", count), + Err(e) => tracing::warn!("[FACE] Failed to store embeddings to Qdrant: {}", e), + } + } + return Ok(Some(result)); } _ => {