From a302e258bd8689fce07035327820af536542685c Mon Sep 17 00:00:00 2001 From: Louis Dureuil Date: Mon, 18 Mar 2024 16:10:12 +0100 Subject: [PATCH] Don't display dimensions as 0 when it is not set --- milli/src/vector/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/milli/src/vector/settings.rs b/milli/src/vector/settings.rs index 84d58a996..89571e98a 100644 --- a/milli/src/vector/settings.rs +++ b/milli/src/vector/settings.rs @@ -199,7 +199,7 @@ impl From for EmbeddingSettings { model: Setting::Set(options.embedding_model.name().to_owned()), revision: Setting::NotSet, api_key: options.api_key.map(Setting::Set).unwrap_or_default(), - dimensions: Setting::Set(options.dimensions.unwrap_or_default()), + dimensions: options.dimensions.map(Setting::Set).unwrap_or_default(), document_template: Setting::Set(prompt.template), }, super::EmbedderOptions::Ollama(options) => Self {