fix: VLM re-embedding support + API checks vlm_embedding
- vlm_summary now skips VLM call if description exists, but still generates embedding + Qdrant - API endpoint checks both vlm_description AND vlm_embedding before saying 'already done' - Fixed point_id hash generation (was creating 0, now properly hashes)
This commit is contained in:
@@ -905,9 +905,11 @@ async fn trigger_vlm_summary(
|
||||
}));
|
||||
}
|
||||
|
||||
// Check how many traces already have vlm_description
|
||||
// Check how many traces need VLM and/or embedding
|
||||
let done_count: i64 = sqlx::query_scalar(&format!(
|
||||
"SELECT COUNT(*) FROM {tp_table} WHERE file_uuid = $1 AND vlm_description IS NOT NULL AND vlm_description != ''"
|
||||
"SELECT COUNT(*) FROM {tp_table} WHERE file_uuid = $1 \
|
||||
AND vlm_description IS NOT NULL AND vlm_description != '' \
|
||||
AND vlm_embedding IS NOT NULL"
|
||||
))
|
||||
.bind(&file_uuid)
|
||||
.fetch_one(db.pool())
|
||||
|
||||
Reference in New Issue
Block a user