mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-09-09 22:26:29 +00:00
Add distribution to all embedders
This commit is contained in:
@ -2652,6 +2652,7 @@ mod tests {
|
||||
path_to_embeddings: Setting::NotSet,
|
||||
embedding_object: Setting::NotSet,
|
||||
input_type: Setting::NotSet,
|
||||
distribution: Setting::NotSet,
|
||||
}),
|
||||
);
|
||||
settings.set_embedder_settings(embedders);
|
||||
|
@ -1146,6 +1146,7 @@ fn validate_prompt(
|
||||
path_to_embeddings,
|
||||
embedding_object,
|
||||
input_type,
|
||||
distribution,
|
||||
}) => {
|
||||
// validate
|
||||
let template = crate::prompt::Prompt::new(template)
|
||||
@ -1165,6 +1166,7 @@ fn validate_prompt(
|
||||
path_to_embeddings,
|
||||
embedding_object,
|
||||
input_type,
|
||||
distribution,
|
||||
}))
|
||||
}
|
||||
new => Ok(new),
|
||||
@ -1190,6 +1192,7 @@ pub fn validate_embedding_settings(
|
||||
path_to_embeddings,
|
||||
embedding_object,
|
||||
input_type,
|
||||
distribution,
|
||||
} = settings;
|
||||
|
||||
if let Some(0) = dimensions.set() {
|
||||
@ -1221,6 +1224,7 @@ pub fn validate_embedding_settings(
|
||||
path_to_embeddings,
|
||||
embedding_object,
|
||||
input_type,
|
||||
distribution,
|
||||
}));
|
||||
};
|
||||
match inferred_source {
|
||||
@ -1365,6 +1369,7 @@ pub fn validate_embedding_settings(
|
||||
path_to_embeddings,
|
||||
embedding_object,
|
||||
input_type,
|
||||
distribution,
|
||||
}))
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user