Merge 3a8051866afc97af32575806a40adf8c3b9638a0 into 98a785b0d78a71c95eddf4cb4ef664f960af036c

This commit is contained in:
Louis Dureuil 2024-11-21 18:51:46 +01:00 committed by GitHub
commit 0477ecaba4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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