Skip to content

Commit ba5ca4b

Browse files
authored
Add update_embedders_1 code sample (#722)
1 parent 279fdd9 commit ba5ca4b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.code-samples.meilisearch.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -791,3 +791,12 @@ get_all_batches_1: |-
791791
$client->getBatches();
792792
get_batch_1: |-
793793
$client->getBatch(BATCH_UID);
794+
update_embedders_1: |-
795+
$client->updateEmbedders([
796+
'default' => [
797+
'source' => 'openAi',
798+
'apiKey' => 'OPEN_AI_API_KEY',
799+
'model' => 'text-embedding-3-small',
800+
'documentTemplate' => 'A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}'
801+
]
802+
]);

0 commit comments

Comments
 (0)