mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Add embedding cache
This commit is contained in:
parent
d9111fe8ce
commit
b08544e86d
8 changed files with 159 additions and 19 deletions
|
@ -916,7 +916,7 @@ fn prepare_search<'t>(
|
|||
let deadline = std::time::Instant::now() + std::time::Duration::from_secs(10);
|
||||
|
||||
embedder
|
||||
.embed_search(query.q.clone().unwrap(), Some(deadline))
|
||||
.embed_search(query.q.as_ref().unwrap(), Some(deadline))
|
||||
.map_err(milli::vector::Error::from)
|
||||
.map_err(milli::Error::from)?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue