New error when too many fragments in settings

This commit is contained in:
Louis Dureuil 2025-06-29 23:56:15 +02:00
parent c45ede44a8
commit d48baece51
No known key found for this signature in database

View file

@ -288,6 +288,8 @@ and can not be more than 511 bytes.", .document_id.to_string()
InvalidPromptForEmbeddings(String, crate::prompt::error::NewPromptError), InvalidPromptForEmbeddings(String, crate::prompt::error::NewPromptError),
#[error("Too many embedders in the configuration. Found {0}, but limited to 256.")] #[error("Too many embedders in the configuration. Found {0}, but limited to 256.")]
TooManyEmbedders(usize), TooManyEmbedders(usize),
#[error("Too many fragments in the configuration. Found {0}, but limited to 256.")]
TooManyFragments(usize),
#[error("Cannot find embedder with name `{0}`.")] #[error("Cannot find embedder with name `{0}`.")]
InvalidSearchEmbedder(String), InvalidSearchEmbedder(String),
#[error("Cannot find embedder with name `{0}`.")] #[error("Cannot find embedder with name `{0}`.")]