debug: more semantic search logging
This commit is contained in:
@@ -802,6 +802,7 @@ pub async fn semantic_search(
|
|||||||
|
|
||||||
let mut results = Vec::new();
|
let mut results = Vec::new();
|
||||||
for hit in semantic_results.iter() {
|
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(p) = enrich_from_pg(db, &hit.uuid, &hit.chunk_id, hit.score).await {
|
||||||
if let Some(ref filter) = source_filter {
|
if let Some(ref filter) = source_filter {
|
||||||
if p.source_type.as_deref() != Some(filter.as_str()) {
|
if p.source_type.as_deref() != Some(filter.as_str()) {
|
||||||
@@ -809,6 +810,8 @@ pub async fn semantic_search(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
results.push(p);
|
results.push(p);
|
||||||
|
} else {
|
||||||
|
tracing::info!("[semantic-enrich] enrich returned None for chunk_id={}", hit.chunk_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user