expose a new parameter to retrieve the embedders at search time

This commit is contained in:
Tamo 2024-05-29 17:22:58 +02:00
parent 30d66abf8d
commit 04f6523f3c
10 changed files with 79 additions and 33 deletions

View file

@ -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()