Skip to content

Commit 10fc071

Browse files
Merge pull request #262469 from aahill/fields-mapping
documenting fields mapping parameters
2 parents 921df0c + df8a540 commit 10fc071

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

articles/ai-services/openai/reference.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,6 @@ The following parameters can be used inside of the `parameters` field inside of
486486
|--|--|--|--|--|
487487
| `type` | string | Required | null | The data source to be used for the Azure OpenAI on your data feature. For Azure AI Search the value is `AzureCognitiveSearch`. For Azure Cosmos DB for MongoDB vCore, the value is `AzureCosmosDB`. |
488488
| `indexName` | string | Required | null | The search index to be used. |
489-
| `fieldsMapping` | dictionary | Optional for Azure AI Search. Required for Azure Cosmos DB for MongoDB vCore. | null | Index data column mapping. When using Azure Cosmos DB for MongoDB vCore, the value `vectorFields` is required, which indicates the fields that store vectors. |
490489
| `inScope` | boolean | Optional | true | If set, this value will limit responses specific to the grounding data content. |
491490
| `topNDocuments` | number | Optional | 5 | Specifies the number of top-scoring documents from your data index used to generate responses. You might want to increase the value when you have short documents or want to provide more context. This is the *retrieved documents* parameter in Azure OpenAI studio. |
492491
| `semanticConfiguration` | string | Optional | null | The semantic search configuration. Only required when `queryType` is set to `semantic` or `vectorSemanticHybrid`. |
@@ -498,13 +497,36 @@ The following parameters can be used inside of the `parameters` field inside of
498497
| `strictness` | number | Optional | 3 | Sets the threshold to categorize documents as relevant to your queries. Raising the value means a higher threshold for relevance and filters out more less-relevant documents for responses. Setting this value too high might cause the model to fail to generate responses due to limited available documents. |
499498

500499

501-
**The following parameters are used for Azure AI Search only**
500+
**The following parameters are used for Azure AI Search**
502501

503502
| Parameters | Type | Required? | Default | Description |
504503
|--|--|--|--|--|
505504
| `endpoint` | string | Required | null | Azure AI Search only. The data source endpoint. |
506505
| `key` | string | Required | null | Azure AI Search only. One of the Azure AI Search admin keys for your service. |
507506
| `queryType` | string | Optional | simple | Indicates which query option will be used for Azure AI Search. Available types: `simple`, `semantic`, `vector`, `vectorSimpleHybrid`, `vectorSemanticHybrid`. |
507+
| `fieldsMapping` | dictionary | Optional for Azure AI Search. | null | defines which [fields](./concepts/use-your-data.md?tabs=ai-search#index-field-mapping) you want to map when you add your data source. |
508+
509+
The following parameters are used inside of the `fieldsMapping` field.
510+
511+
| Parameters | Type | Required? | Default | Description |
512+
|--|--|--|--|--|
513+
| `titleField` | string | Optional | null | The field in your index that contains the original title of each document. |
514+
| `urlField` | string | Optional | null | The field in your index that contains the original URL of each document. |
515+
| `filepathField` | string | Optional | null | The field in your index that contains the original file name of each document. |
516+
| `contentFields` | dictionary | Optional | null | The fields in your index that contain the main text content of each document. |
517+
| `contentFieldsSeparator` | string | Optional | null | The separator for the your content fields. Use `\n` by default. |
518+
519+
```json
520+
"fieldsMapping": {
521+
"titleField": "myTitleField",
522+
"urlField": "myUrlField",
523+
"filepathField": "myFilePathField",
524+
"contentFields": [
525+
"myContentField"
526+
],
527+
"contentFieldsSeparator": "\n"
528+
}
529+
```
508530

509531
**The following parameters are used for Azure Cosmos DB for MongoDB vCore**
510532

@@ -516,6 +538,7 @@ The following parameters can be used inside of the `parameters` field inside of
516538
| `containerName` | string | Required | null | Azure Cosmos DB for MongoDB vCore only. The Azure Cosmos Mongo vCore container name in the database. |
517539
| `type` (found inside of`embeddingDependencyType`) | string | Required | null | Indicates the embedding model dependency. |
518540
| `deploymentName` (found inside of`embeddingDependencyType`) | string | Required | null | The embedding model deployment name. |
541+
| `fieldsMapping` | dictionary | Required for Azure Cosmos DB for MongoDB vCore. | null | Index data column mapping. When using Azure Cosmos DB for MongoDB vCore, the value `vectorFields` is required, which indicates the fields that store vectors. |
519542

520543
### Start an ingestion job
521544

0 commit comments

Comments
 (0)