Skip to content

Commit e91bf40

Browse files
authored
Update rest.md
1 parent 4fea9d4 commit e91bf40

File tree

1 file changed

+7
-2
lines changed
  • articles/ai-foundry/model-inference/includes/use-embeddings

1 file changed

+7
-2
lines changed

articles/ai-foundry/model-inference/includes/use-embeddings/rest.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ Create an embedding request to see the output of the model.
5050

5151
```json
5252
{
53+
"model": "text-embedding-3-small",
5354
"input": [
5455
"The ultimate answer to the question of life"
5556
]
@@ -93,6 +94,7 @@ It can be useful to compute embeddings in input batches. The parameter `inputs`
9394

9495
```json
9596
{
97+
"model": "text-embedding-3-small",
9698
"input": [
9799
"The ultimate answer to the question of life",
98100
"The largest planet in our solar system is Jupiter"
@@ -150,6 +152,7 @@ You can specify the number of dimensions for the embeddings. The following examp
150152

151153
```json
152154
{
155+
"model": "text-embedding-3-small",
153156
"input": [
154157
"The ultimate answer to the question of life"
155158
],
@@ -161,23 +164,25 @@ You can specify the number of dimensions for the embeddings. The following examp
161164

162165
Some models can generate multiple embeddings for the same input depending on how you plan to use them. This capability allows you to retrieve more accurate embeddings for RAG patterns.
163166

164-
The following example shows how to create embeddings that are used to create an embedding for a document that will be stored in a vector database:
167+
The following example shows how to create embeddings that are used to create an embedding for a document that will be stored in a vector database. Since `text-embedding-3-small` doesn't support this capability, we are using an embedding model from Cohere in the following example:
165168

166169

167170
```json
168171
{
172+
"model": "cohere-embed-v3-english",
169173
"input": [
170174
"The answer to the ultimate question of life, the universe, and everything is 42"
171175
],
172176
"input_type": "document"
173177
}
174178
```
175179

176-
When you work on a query to retrieve such a document, you can use the following code snippet to create the embeddings for the query and maximize the retrieval performance.
180+
When you work on a query to retrieve such a document, you can use the following code snippet to create the embeddings for the query and maximize the retrieval performance. Since `text-embedding-3-small` doesn't support this capability, we are using an embedding model from Cohere in the following example:
177181

178182

179183
```json
180184
{
185+
"model": "cohere-embed-v3-english",
181186
"input": [
182187
"What's the ultimate meaning of life?"
183188
],

0 commit comments

Comments
 (0)