Skip to content

Commit

Permalink
Added undocumented dimensions parameter to the openapi embedder set…
Browse files Browse the repository at this point in the history
…tings
  • Loading branch information
CommanderStorm committed Mar 2, 2024
1 parent 8c0164a commit c41acf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ pub struct OpenapiEmbedderSettings {
/// The openapi model name
/// Example: `text-embedding-ada-002`
pub model: String,
pub dimensions: usize,
/// if present, document_template must be a [Liquid template](https://shopify.github.io/liquid/).
/// Use `{{ doc.attribute }}` to access document field values.
/// Meilisearch also exposes a `{{ fields }}` array containing one object per document field, which you may access with `{{ field.name }}` and `{{ field.value }}`.
Expand All @@ -90,7 +91,7 @@ pub struct OpenapiEmbedderSettings {
#[derive(Serialize, Deserialize, Default, Debug, Clone, Eq, PartialEq, Copy)]
pub struct CustomEmbedderSettings {
/// dimensions of your custom embedding
pub dimensions: u32,
pub dimensions: usize,
}

/// Struct reprensenting a set of settings.
Expand Down

0 comments on commit c41acf2

Please sign in to comment.