mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-11 22:26:25 +00:00
increase rust version from 1.85 to 1.89
This commit is contained in:
@@ -11,6 +11,7 @@ use crate::ThreadPoolNoAbort;
|
||||
pub(in crate::vector) const MAX_COMPOSITE_DISTANCE: f32 = 0.01;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum SubEmbedder {
|
||||
/// An embedder based on running local models, fetched from the Hugging Face Hub.
|
||||
HuggingFace(hf::Embedder),
|
||||
|
@@ -19,6 +19,7 @@ use crate::ThreadPoolNoAbort;
|
||||
|
||||
/// An embedder can be used to transform text into embeddings.
|
||||
#[derive(Debug)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum Embedder {
|
||||
/// An embedder based on running local models, fetched from the Hugging Face Hub.
|
||||
HuggingFace(hf::Embedder),
|
||||
@@ -64,6 +65,7 @@ impl EmbeddingConfig {
|
||||
/// This type is serialized in and deserialized from the DB, any modification should either go
|
||||
/// through dumpless upgrade or be backward-compatible
|
||||
#[derive(Debug, Clone, Hash, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
|
||||
#[allow(clippy::large_enum_variant)]
|
||||
pub enum EmbedderOptions {
|
||||
HuggingFace(hf::EmbedderOptions),
|
||||
OpenAi(openai::EmbedderOptions),
|
||||
|
Reference in New Issue
Block a user