Skip to content

Commit

Permalink
Update embedder settings fields
Browse files Browse the repository at this point in the history
  • Loading branch information
sanders41 committed Feb 3, 2025
1 parent 3caef0c commit 031c549
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions meilisearch_python_sdk/models/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class OpenAiEmbedder(CamelBase):
document_template: str | None = None
document_template_max_bytes: int | None = None
distribution: Distribution | None = None
binary_quantized: bool | None = None


class HuggingFaceEmbedder(CamelBase):
Expand All @@ -65,6 +66,8 @@ class HuggingFaceEmbedder(CamelBase):
document_template: str | None = None
document_template_max_bytes: int | None = None
distribution: Distribution | None = None
dimensions: int | None = None
binary_quantized: bool | None = None


class OllamaEmbedder(CamelBase):
Expand All @@ -76,6 +79,7 @@ class OllamaEmbedder(CamelBase):
document_template: str | None = None
document_template_max_bytes: int | None = None
distribution: Distribution | None = None
binary_quantized: bool | None = None


class RestEmbedder(CamelBase):
Expand All @@ -89,12 +93,16 @@ class RestEmbedder(CamelBase):
headers: JsonDict | None = None
request: JsonDict
response: JsonDict
binary_quantized: bool | None = None


class UserProvidedEmbedder(CamelBase):
source: str = "userProvided"
dimensions: int
distribution: Distribution | None = None
document_template: str | None = None
document_template_max_bytes: int | None = None
binary_quantized: bool | None = None


class Embedders(CamelBase):
Expand Down

0 comments on commit 031c549

Please sign in to comment.