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/references/azure-search.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The configurable options of Azure AI Search when using Azure OpenAI On Your Data
27
27
|--- | --- | --- | --- |
28
28
|`endpoint`| string | True | The absolute endpoint path for the Azure Search resource to use.|
29
29
|`index_name`| string | True | The name of the index to use in the referenced Azure Search resource.|
30
-
|`authentication`| One of [ApiKeyAuthenticationOptions](#api-key-authentication-options), [SystemAssignedManagedIdentityAuthenticationOptions](#system-assigned-managed-identity-authentication-options), [UserAssignedManagedIdentityAuthenticationOptions](#user-assigned-managed-identity-authentication-options)| True | The authentication method to use when accessing the defined data source. |
30
+
|`authentication`| One of [ApiKeyAuthenticationOptions](#api-key-authentication-options), [SystemAssignedManagedIdentityAuthenticationOptions](#system-assigned-managed-identity-authentication-options), [UserAssignedManagedIdentityAuthenticationOptions](#user-assigned-managed-identity-authentication-options), [onYourDataAccessTokenAuthenticationOptions](#access-token-authentication-options)| True | The authentication method to use when accessing the defined data source. |
31
31
|`embedding_dependency`| One of [DeploymentNameVectorizationSource](#deployment-name-vectorization-source), [EndpointVectorizationSource](#endpoint-vectorization-source)| False | The embedding dependency for vector search. Required when `query_type` is `vector`, `vector_simple_hybrid`, or `vector_semantic_hybrid`.|
32
32
|`fields_mapping`|[FieldsMappingOptions](#fields-mapping-options)| False | Customized field mapping behavior to use when interacting with the search index.|
33
33
|`filter`| string | False | Search filter. |
@@ -37,6 +37,10 @@ The configurable options of Azure AI Search when using Azure OpenAI On Your Data
37
37
|`semantic_configuration`| string | False | The semantic configuration for the query. Required when `query_type` is `semantic` or `vector_semantic_hybrid`.|
38
38
|`strictness`| integer | False | The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer. Default is `3`.|
39
39
|`top_n_documents`| integer | False | The configured top number of documents to feature for the configured query. Default is `5`. |
40
+
|`max_search_queries`| integer | False | The max number of rewritten queries should be send to search provider for one user message. If not specified, the system will decide the number of queries to send. |
41
+
|`allow_partial_result`| integer | False | If specified as true, the system will allow partial search results to be used and the request fails if all the queries fail. If not specified, or specified as false, the request will fail if any search query fails. |
42
+
|`include_contexts`| array | False | The included properties of the output context. If not specified, the default value is `citations` and `intent`. Values can be `citations`,`intent`, `all_retrieved_documents`.|
43
+
40
44
41
45
## API key authentication options
42
46
@@ -64,6 +68,15 @@ The authentication options for Azure OpenAI On Your Data when using a user-assig
64
68
|`managed_identity_resource_id`|string|True|The resource ID of the user-assigned managed identity to use for authentication.|
65
69
|`type`|string|True| Must be `user_assigned_managed_identity`.|
66
70
71
+
## Access token authentication options
72
+
73
+
The authentication options for Azure OpenAI On Your Data when using access token.
74
+
75
+
|Name | Type | Required | Description |
76
+
|--- | --- | --- | --- |
77
+
|`access_token`|string|True|The access token to use for authentication.|
78
+
|`type`| string | True | Must be `access_token`. |
79
+
67
80
## Deployment name vectorization source
68
81
69
82
The details of the vectorization source, used by Azure OpenAI On Your Data when applying vector search. This vectorization source is based on an internal embeddings model deployment name in the same Azure OpenAI resource. This vectorization source enables you to use vector search without Azure OpenAI api-key and without Azure OpenAI public network access.
@@ -72,6 +85,7 @@ The details of the vectorization source, used by Azure OpenAI On Your Data when
72
85
|--- | --- | --- | --- |
73
86
|`deployment_name`|string|True|The embedding model deployment name within the same Azure OpenAI resource. |
74
87
|`type`|string|True| Must be `deployment_name`.|
88
+
|`dimensions`|integer|False| The number of dimensions the embeddings should have. Only supported in `text-embedding-3` and later models. |
75
89
76
90
## Endpoint vectorization source
77
91
@@ -82,6 +96,8 @@ The details of the vectorization source, used by Azure OpenAI On Your Data when
82
96
|`endpoint`|string|True|Specifies the resource endpoint URL from which embeddings should be retrieved. It should be in the format of `https://{YOUR_RESOURCE_NAME}.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings`. The api-version query parameter isn't allowed.|
83
97
|`authentication`|[ApiKeyAuthenticationOptions](#api-key-authentication-options)|True | Specifies the authentication options to use when retrieving embeddings from the specified endpoint.|
84
98
|`type`|string|True| Must be `endpoint`.|
99
+
|`dimensions`|integer|False| The number of dimensions the embeddings should have. Only supported in `text-embedding-3` and later models. |
Copy file name to clipboardExpand all lines: articles/ai-services/openai/references/on-your-data.md
+25-4Lines changed: 25 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.custom: devx-track-python
14
14
15
15
# Azure OpenAI On Your Data API Reference
16
16
17
-
This article provides reference documentation for Python and REST for the new Azure OpenAI On Your Data API. The latest API version is `2024-02-01`[Swagger spec](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/stable/2024-02-01).
17
+
This article provides reference documentation for Python and REST for the new Azure OpenAI On Your Data API. The latest API version is `2024-05-01-preview`[Swagger spec](https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2024-05-01-preview).
18
18
19
19
> [!NOTE]
20
20
> Since API version `2024-02-15-preview` we introduced the following breaking changes comparing to earlier API versions:
@@ -30,9 +30,10 @@ POST {endpoint}/openai/deployments/{deployment-id}/chat/completions?api-version=
> [Azure Machine learning indexes](./azure-machine-learning.md), [Pinecone](./pinecone.md), and [Elasticsearch](./elasticsearch.md) are only supported in the `2024-02-15-preview` API version as a preview.
36
+
> [Azure Machine learning indexes](./azure-machine-learning.md), [Pinecone](./pinecone.md), and [Elasticsearch](./elasticsearch.md) are supported as a preview.
36
37
37
38
## URI parameters
38
39
@@ -67,6 +68,8 @@ The response assistant message schema inherits from the chat completions assista
67
68
|--- | --- | --- | --- |
68
69
|`citations`|[Citation](#citation)[]| False | The data source retrieval result, used to generate the assistant message in the response. Clients can render references from the citations. |
69
70
|`intent`| string | False | The detected intent from the chat history. Passing back the previous intent is no longer needed. Ignore this property. |
71
+
|`all_retrieved_documents`|[Retrieved documents](#retrieved-documents)[]| False | All the retrieved documents. |
72
+
70
73
71
74
## Citation
72
75
@@ -78,6 +81,24 @@ The response assistant message schema inherits from the chat completions assista
78
81
|`filepath`| string | False | The file path of the citation.|
79
82
|`chunk_id`| string | False | The chunk ID of the citation.|
80
83
84
+
## Retrieved documents
85
+
86
+
|Name | Type | Required | Description |
87
+
|--- | --- | --- | --- |
88
+
|`search_queries`| string[]| True | The search queries used to retrieve the document. |
89
+
|`data_source_index`| integer | True | The index of the data source. |
90
+
|`original_search_score`| double | True | The original search score of the retrieved document. |
91
+
|`rerank_score`| double | False | The rerank score of the retrieved document. |
92
+
|`filter_reason`|[]| False | Represents the rationale for filtering the document. If the document does not undergo filtering, this field will remain unset. |
93
+
94
+
## Filter reason
95
+
96
+
|Name | Type | Required | Description |
97
+
|--- | --- | --- | --- |
98
+
|`filterReason`| string | False | The filtering reason of the retrieved document. Will be `score` if the document is filtered by original search score threshold defined by `strictness`. Will be `rerank` if the document is not filtered by original search score threshold, but is filtered by rerank score and `top_n_documents`. |
0 commit comments