Skip to content

Commit

Permalink
Use the PATCH /embedders path on update_embedders_1 (#3099)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellnix authored Jan 16, 2025
1 parent 4e903b2 commit a5f90de
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1383,16 +1383,14 @@ get_embedders_1: |-
-X GET 'http://localhost:7700/indexes/INDEX_NAME/settings/embedders'
update_embedders_1: |-
curl \
-X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings' \
-X PATCH 'http://localhost:7700/indexes/INDEX_NAME/settings/embedders' \
-H 'Content-Type: application/json' \
--data-binary '{
"embedders": {
"default": {
"source": "openAi",
"apiKey": "anOpenAiApiKey",
"model": "text-embedding-3-small",
"documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}"
}
"default": {
"source": "openAi",
"apiKey": "anOpenAiApiKey",
"model": "text-embedding-3-small",
"documentTemplate": "A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}"
}
}'
reset_embedders_1: |-
Expand Down

0 comments on commit a5f90de

Please sign in to comment.