mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Add distribution to all embedders
This commit is contained in:
parent
9a95ed619d
commit
afd1da5642
7 changed files with 41 additions and 18 deletions
|
@ -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,
|
||||
}))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue