Skip to content

Commit 6563761

Browse files
committed
formatting edits
1 parent 7de4207 commit 6563761

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

articles/search/cognitive-search-output-field-mapping.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In contrast with a [`fieldMappings`](search-indexer-field-mappings.md) definitio
3333

3434
## Prerequisites
3535

36-
- Indexer, index, data source, and skillset
36+
- Indexer, index, data source, and skillset.
3737

3838
- Index fields must be simple or top-level fields. You can't output to a [complex type](search-howto-complex-data-types.md), but if you have a complex type, you can use an output field definition to flatten parts of the complex type and send them to a collection in a search index.
3939

@@ -177,6 +177,42 @@ Assume a skillset that generates embeddings for a vector field, and an index tha
177177
]
178178
```
179179

180+
The source field path is skill output. In this example, the output is `text_vector`. Target name is an optional property. If you don't give the output mapping a target name, the path would be `embedding` or more precisely, `/document/content/embedding`.
181+
182+
```json
183+
{
184+
"name": "test-vector-size-ss",
185+
"description": "Generate embeddings using AOAI",
186+
"skills": [
187+
{
188+
"@odata.type": "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill",
189+
"name": "#1",
190+
"description": null,
191+
"context": "/document/content",
192+
"resourceUri": "https://my-demo-eastus.openai.azure.com",
193+
"apiKey": null,
194+
"deploymentId": "text-embedding-ada-002",
195+
"dimensions": 1536,
196+
"modelName": "text-embedding-ada-002",
197+
"inputs": [
198+
{
199+
"name": "text",
200+
"source": "/document/content"
201+
}
202+
],
203+
"outputs": [
204+
{
205+
"name": "embedding",
206+
"targetName": "text_vector"
207+
}
208+
],
209+
"authIdentity": null
210+
}
211+
]
212+
}
213+
```
214+
215+
180216
<a name="flattening-information-from-complex-types"></a>
181217

182218
## Flatten complex structures into a string collection

0 commit comments

Comments
 (0)