mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
manual embedders: limit max size of errors to 250
This commit is contained in:
parent
4087a88dbe
commit
f4c94ac57f
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ impl Embedder {
|
|||
|
||||
pub fn embed(&self, mut texts: Vec<String>) -> Result<Vec<Embeddings<f32>>, EmbedError> {
|
||||
let Some(text) = texts.pop() else { return Ok(Default::default()) };
|
||||
Err(EmbedError::embed_on_manual_embedder(text))
|
||||
Err(EmbedError::embed_on_manual_embedder(text.chars().take(250).collect()))
|
||||
}
|
||||
|
||||
pub fn dimensions(&self) -> usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue