From d48baece51081434b879c35a72d6052a227599a9 Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Sun, 29 Jun 2025 23:56:15 +0200 Subject: [PATCH] New error when too many fragments in settings --- crates/milli/src/error.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/milli/src/error.rs b/crates/milli/src/error.rs index 2136ec97e..f8886da8e 100644 --- a/crates/milli/src/error.rs +++ b/crates/milli/src/error.rs @@ -288,6 +288,8 @@ and can not be more than 511 bytes.", .document_id.to_string() InvalidPromptForEmbeddings(String, crate::prompt::error::NewPromptError), #[error("Too many embedders in the configuration. Found {0}, but limited to 256.")] TooManyEmbedders(usize), + #[error("Too many fragments in the configuration. Found {0}, but limited to 256.")] + TooManyFragments(usize), #[error("Cannot find embedder with name `{0}`.")] InvalidSearchEmbedder(String), #[error("Cannot find embedder with name `{0}`.")]