@@ -1942,31 +1942,7 @@ def update_embedders(self, body: Union[MutableMapping[str, Any], None]) -> TaskI
1942
1942
Parameters
1943
1943
----------
1944
1944
body: dict
1945
- Dictionary containing the embedders configuration. Each key represents an embedder name,
1946
- and the value is a dictionary with the embedder configuration.
1947
-
1948
- Supported embedder sources:
1949
- - 'openAi': OpenAI embedder
1950
- - 'huggingFace': HuggingFace embedder
1951
- - 'ollama': Ollama embedder
1952
- - 'rest': REST API embedder
1953
- - 'userProvided': User-provided embedder
1954
-
1955
- Required fields depend on the embedder source:
1956
- - 'rest' requires 'request' and 'response' fields
1957
- - 'userProvided' requires 'dimensions' field
1958
-
1959
- Optional fields (availability depends on source):
1960
- - 'url': The URL Meilisearch contacts when querying the embedder
1961
- - 'apiKey': Authentication token for the embedder
1962
- - 'model': The model used for generating vectors
1963
- - 'documentTemplate': Template defining the data sent to the embedder
1964
- - 'documentTemplateMaxBytes': Maximum size of rendered document template
1965
- - 'dimensions': Number of dimensions in the chosen model
1966
- - 'revision': Model revision hash (only for 'huggingFace')
1967
- - 'distribution': Object with 'mean' and 'sigma' fields
1968
- - 'binaryQuantized': Boolean to convert vector dimensions to 1-bit values
1969
- - 'headers': Custom headers for requests (only for 'rest')
1945
+ Dictionary containing the embedders configuration.
1970
1946
1971
1947
Returns
1972
1948
-------
0 commit comments