Skip to content

Commit 0d6b16c

Browse files
committed
fixes
1 parent 4124529 commit 0d6b16c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

articles/machine-learning/reference-model-inference-embeddings.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Represents an image generated.
183183

184184
| Name | Type | Description |
185185
| --------- | ----------------------------------- | ------------------------------------------------------------------------------------------------ |
186-
| embedding | number\[\] | The embedding vector, which is a list of floats. The length of vector depends on the model used. |
186+
| embedding | number\[\] | The embedding vector. The length of vector depends on the model used and the type depends on the `encoding_format` used. |
187187
| index | integer | The index of the embedding in the list of embeddings. |
188188
| object | [EmbeddingObject](#embeddingobject) | The object type, which is always "embedding". |
189189

@@ -206,9 +206,9 @@ The type of the input. Either `text`, `query`, or `document`. Returns a 422 erro
206206

207207
| Name | Type | Description |
208208
| -------- | ------ | ----------- |
209-
| document | string | |
210-
| query | string | |
211-
| text | string | |
209+
| document | string | Indicates the input represents a document that is stored in a vector database. |
210+
| query | string | Indicates the input represents a search queries to find the most relevant documents in your vector database. |
211+
| text | string | Indicates the input is a general text input. |
212212

213213

214214
### EmbeddingObject

articles/machine-learning/reference-model-inference-images-embeddings.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ POST /images/embeddings?api-version=2024-04-01-preview
8787
"input": [
8888
{
8989
"text": "A nice picture of a cat",
90-
"image": "qwertyuiopasdfghjklqwrtyuio"
90+
"image": "data:image/jpeg;base64,iVBORw0KG..."
9191
}
9292
],
9393
"encoding_format": "float",
@@ -242,7 +242,7 @@ Represents an image with optional text.
242242

243243
| Name | Type | Description |
244244
| --- | --- | --- |
245-
| image | string | The input image, in PNG format. |
245+
| image | string | The input image encoded in `base64` string as a data URL. Example: `data:image/{format};base64,{data}`. |
246246
| text | string | Optional. The text input to feed into the model (like DINO, CLIP). Returns a 422 error if the model doesn't support the value or parameter. |
247247

248248

0 commit comments

Comments
 (0)