Skip to content

Commit ee26856

Browse files
committed
Add update_embedders_1 code sample
1 parent 0b98229 commit ee26856

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.code-samples.meilisearch.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -821,3 +821,13 @@ get_all_batches_1: |-
821821
client.getBatches();
822822
get_batch_1: |-
823823
client.getBatch(BATCH_UID);
824+
# Vector search
825+
update_embedders_1: |-
826+
client.index('INDEX_NAME').updateEmbedders({
827+
default: {
828+
source: 'openAi',
829+
apiKey: 'OPEN_AI_API_KEY',
830+
model: 'text-embedding-3-small',
831+
documentTemplate: 'A document titled '{{doc.title}}' whose description starts with {{doc.overview|truncatewords: 20}}'
832+
}
833+
});

0 commit comments

Comments
 (0)