Skip to content

Commit 9bdd6f7

Browse files
fix multimodal example
1 parent 925da25 commit 9bdd6f7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

learn/ai_powered_search/image_search_with_multimodal_embeddings.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,29 @@ curl \
164164
]
165165
}
166166
}
167+
},
168+
"request": {
169+
"inputs": [
170+
"{{fragment}}",
171+
"{{..}}"
172+
],
173+
"model": "voyage-multimodal-3"
174+
},
175+
"response": {
176+
"data": [
177+
{
178+
"embedding": "{{embedding}}"
179+
},
180+
"{{..}}"
181+
]
167182
}
168183
}
169184
}
170185
}'
171186
```
172187

188+
Since the `source` of this embedder is `rest`, you must also specify a [`request` and a `response` fields](/reference/api/settings#body-21). These respectively instruct Meilisearch on how to structure the request sent to the embeddings provider, and where to find the embeddings in the provider's response.
189+
173190
## Add documents
174191

175192
Once your embedder is configured, you can [add documents to your index](/learn/getting_started/cloud_quick_start) with the [`/documents` endpoint](/reference/api/documents).

0 commit comments

Comments
 (0)