Compare commits

...

2 Commits

Author SHA1 Message Date
Louis Dureuil
f91c174936
Merge 3a8051866a into 057fcb3993 2024-11-20 01:04:08 +01:00
Louis Dureuil
3a8051866a
Use return_keyword_results function instead of returning raw keyword results when the embedder is broken 2024-11-18 11:17:15 +01:00

View File

@ -205,7 +205,11 @@ impl<'a> Search<'a> {
Ok(embedding) => embedding, Ok(embedding) => embedding,
Err(error) => { Err(error) => {
tracing::error!(error=%error, "Embedding failed"); tracing::error!(error=%error, "Embedding failed");
return Ok((keyword_results, Some(0))); return Ok(return_keyword_results(
self.limit,
self.offset,
keyword_results,
));
} }
} }
} }