You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Use [tier 2 keys](https://platform.openai.com/docs/guides/rate-limits/usage-tiers?context=tier-two) or above for optimal performance.
76
77
pubapi_key:String,
77
78
/// The openapi model name
78
-
/// Example: `text-embedding-ada-002`
79
-
pubmodel:String,
80
-
pubdimensions:usize,
79
+
/// Default: `text-embedding-ada-002`
80
+
#[serde(skip_serializing_if = "Option::is_none")]
81
+
pubmodel:Option<String>,
82
+
/// Defaults to the default for said model name
83
+
#[serde(skip_serializing_if = "Option::is_none")]
84
+
pubdimensions:Option<usize>,
81
85
/// if present, document_template must be a [Liquid template](https://shopify.github.io/liquid/).
82
86
/// Use `{{ doc.attribute }}` to access document field values.
83
87
/// Meilisearch also exposes a `{{ fields }}` array containing one object per document field, which you may access with `{{ field.name }}` and `{{ field.value }}`.
@@ -820,6 +824,49 @@ impl Index {
820
824
.await
821
825
}
822
826
827
+
/// Get [embedders](https://www.meilisearch.com/docs/learn/experimental/vector_search) of the [Index].
828
+
///
829
+
/// ```
830
+
/// # use std::collections::HashMap;
831
+
/// # use std::string::String;
832
+
/// use meilisearch_sdk::{client::*, CustomEmbedderSettings, Embedder, ExperimentalFeatures, indexes::*, Settings};
833
+
/// #
834
+
/// # let MEILISEARCH_URL = option_env!("MEILISEARCH_URL").unwrap_or("http://localhost:7700");
835
+
/// # let MEILISEARCH_API_KEY = option_env!("MEILISEARCH_API_KEY").unwrap_or("masterKey");
836
+
/// #
837
+
/// # futures::executor::block_on(async move {
838
+
/// let client = Client::new(MEILISEARCH_URL, Some(MEILISEARCH_API_KEY));
0 commit comments