Skip to content

Commit

Permalink
Add update_embedders_1 code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Strift committed Feb 13, 2025
1 parent 0b98229 commit ee26856
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .code-samples.meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -821,3 +821,13 @@ get_all_batches_1: |-
client.getBatches();
get_batch_1: |-
client.getBatch(BATCH_UID);
# Vector search
update_embedders_1: |-
client.index('INDEX_NAME').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 ee26856

Please sign in to comment.