Skip to content

Commit

Permalink
Add update_embedders_1 code sample (#722)
Browse files Browse the repository at this point in the history
  • Loading branch information
Strift authored Feb 13, 2025
1 parent 279fdd9 commit ba5ca4b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -791,3 +791,12 @@ get_all_batches_1: |-
$client->getBatches();
get_batch_1: |-
$client->getBatch(BATCH_UID);
update_embedders_1: |-
$client->updateEmbedders([
'default' => [
'source' => 'openAi',
'apiKey' => 'OPEN_AI_API_KEY',
'model' => 'text-embedding-3-small',
'documentTemplate' => 'A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}'
]
]);

0 comments on commit ba5ca4b

Please sign in to comment.