Skip to content

Commit 8222672

Browse files
committed
feat: Adding support Multimodal embedders.
1 parent 058f426 commit 8222672

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

meilisearch/client.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -996,3 +996,20 @@ def _valid_uuid(uuid: str) -> bool:
996996
)
997997
match = uuid4hex.match(uuid)
998998
return bool(match)
999+
1000+
def get_experimental_features(self) -> dict:
1001+
"""Get current experimental features settings."""
1002+
return self.http.get(self.config.paths.experimental_features)
1003+
1004+
def update_experimental_features(self, features: dict) -> dict:
1005+
"""Update experimental features settings."""
1006+
return self.http.patch(self.config.paths.experimental_features, body=features)
1007+
1008+
def enable_multimodal(self) -> dict:
1009+
"""Enable multimodal experimental feature."""
1010+
return self.update_experimental_features({"multimodal": True})
1011+
1012+
def disable_multimodal(self) -> dict:
1013+
"""Disable multimodal experimental feature."""
1014+
return self.update_experimental_features({"multimodal": False})
1015+

meilisearch/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Paths:
4747
localized_attributes = "localized-attributes"
4848
edit = "edit"
4949
network = "network"
50+
experimental_features = "experimental-features"
5051

5152
def __init__(
5253
self,

0 commit comments

Comments
 (0)