debug: more semantic search logging

This commit is contained in:
Accusys
2026-08-25 13:08:02 +08:00
parent c3367b47b1
commit d981e0a6fe
+3
View File
@@ -802,6 +802,7 @@ pub async fn semantic_search(
let mut results = Vec::new();
for hit in semantic_results.iter() {
tracing::info!("[semantic-enrich] uuid={}, chunk_id={}", hit.uuid, hit.chunk_id);
if let Some(p) = enrich_from_pg(db, &hit.uuid, &hit.chunk_id, hit.score).await {
if let Some(ref filter) = source_filter {
if p.source_type.as_deref() != Some(filter.as_str()) {
@@ -809,6 +810,8 @@ pub async fn semantic_search(
}
}
results.push(p);
} else {
tracing::info!("[semantic-enrich] enrich returned None for chunk_id={}", hit.chunk_id);
}
}