This commit is contained in:
Louis Dureuil 2024-11-20 01:04:08 +01:00 committed by GitHub
commit f91c174936
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,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,
));
}
}
}