You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/openai/reference.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -486,7 +486,6 @@ The following parameters can be used inside of the `parameters` field inside of
486
486
|--|--|--|--|--|
487
487
|`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`. |
488
488
|`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. |
490
489
|`inScope`| boolean | Optional | true | If set, this value will limit responses specific to the grounding data content. |
491
490
|`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. |
492
491
|`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
498
497
|`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. |
499
498
500
499
501
-
**The following parameters are used for Azure AI Search only**
500
+
**The following parameters are used for Azure AI Search**
|`endpoint`| string | Required | null | Azure AI Search only. The data source endpoint. |
506
505
|`key`| string | Required | null | Azure AI Search only. One of the Azure AI Search admin keys for your service. |
507
506
|`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.
|`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
+
```
508
530
509
531
**The following parameters are used for Azure Cosmos DB for MongoDB vCore**
510
532
@@ -516,6 +538,7 @@ The following parameters can be used inside of the `parameters` field inside of
516
538
|`containerName`| string | Required | null | Azure Cosmos DB for MongoDB vCore only. The Azure Cosmos Mongo vCore container name in the database. |
517
539
|`type` (found inside of`embeddingDependencyType`) | string | Required | null | Indicates the embedding model dependency. |
518
540
|`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. |
0 commit comments