Skip to content

Commit e0e5353

Browse files
committed
fixes
1 parent 04f2b10 commit e0e5353

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

articles/ai-studio/reference/reference-model-inference-embeddings.md

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

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

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

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

214214

215215
### EmbeddingObject

articles/ai-studio/reference/reference-model-inference-images-embeddings.md

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

244244
| Name | Type | Description |
245245
| --- | --- | --- |
246-
| image | string | The input image, in PNG format. |
246+
| image | string | The input image encoded in `base64` string as a data URL. Example: `data:image/{format};base64,{data}`. |
247247
| 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. |
248248

249249

0 commit comments

Comments
 (0)