mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
expose a new parameter to retrieve the embedders at search time
This commit is contained in:
parent
30d66abf8d
commit
04f6523f3c
10 changed files with 79 additions and 33 deletions
|
@ -163,6 +163,7 @@ impl Embedder {
|
|||
text_chunks: Vec<Vec<String>>,
|
||||
threads: &ThreadPoolNoAbort,
|
||||
) -> Result<Vec<Vec<Embeddings<f32>>>, EmbedError> {
|
||||
dbg!(&text_chunks);
|
||||
threads
|
||||
.install(move || {
|
||||
text_chunks.into_par_iter().map(move |chunk| self.embed(chunk)).collect()
|
||||
|
@ -230,6 +231,7 @@ where
|
|||
input_value
|
||||
}
|
||||
[input] => {
|
||||
dbg!(&options);
|
||||
let mut body = options.query.clone();
|
||||
|
||||
body.as_object_mut()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue