AzureSearchChatExtensionParameters Class
- java.
lang. Object - com.
azure. ai. openai. models. AzureSearchChatExtensionParameters
- com.
Implements
public final class AzureSearchChatExtensionParameters
implements JsonSerializable<AzureSearchChatExtensionParameters>
Parameters for Azure Cognitive Search when used as an Azure OpenAI chat extension. The supported authentication types are APIKey, SystemAssignedManagedIdentity and UserAssignedManagedIdentity.
Constructor Summary
Constructor | Description |
---|---|
AzureSearchChatExtensionParameters(String endpoint, String indexName) |
Creates an instance of Azure |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Azure |
fromJson(JsonReader jsonReader)
Reads an instance of Azure |
On |
getAuthentication()
Get the authentication property: The authentication method to use when accessing the defined data source. |
On |
getEmbeddingDependency()
Get the embedding |
String |
getEndpoint()
Get the endpoint property: The absolute endpoint path for the Azure Cognitive Search resource to use. |
Azure |
getFieldsMapping()
Get the fields |
String |
getFilter()
Get the filter property: Search filter. |
List<On |
getIncludeContexts()
Get the include |
String |
getIndexName()
Get the index |
Integer |
getMaxSearchQueries()
Get the max |
Azure |
getQueryType()
Get the query |
String |
getSemanticConfiguration()
Get the semantic |
Integer |
getStrictness()
Get the strictness property: The configured strictness of the search relevance filtering. |
Integer |
getTopNDocuments()
Get the top |
Boolean |
isAllowPartialResult()
Get the allow |
Boolean |
isInScope()
Get the in |
Azure |
setAllowPartialResult(Boolean allowPartialResult)
Set the allow |
Azure |
setAuthentication(OnYourDataAuthenticationOptions authentication)
Set the authentication property: The authentication method to use when accessing the defined data source. |
Azure |
setEmbeddingDependency(OnYourDataVectorizationSource embeddingDependency)
Set the embedding |
Azure |
setFieldsMapping(AzureSearchIndexFieldMappingOptions fieldsMapping)
Set the fields |
Azure |
setFilter(String filter)
Set the filter property: Search filter. |
Azure |
setIncludeContexts(List<OnYourDataContextProperty> includeContexts)
Set the include |
Azure |
setInScope(Boolean inScope)
Set the in |
Azure |
setMaxSearchQueries(Integer maxSearchQueries)
Set the max |
Azure |
setQueryType(AzureSearchQueryType queryType)
Set the query |
Azure |
setSemanticConfiguration(String semanticConfiguration)
Set the semantic |
Azure |
setStrictness(Integer strictness)
Set the strictness property: The configured strictness of the search relevance filtering. |
Azure |
setTopNDocuments(Integer topNDocuments)
Set the top |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
AzureSearchChatExtensionParameters
public AzureSearchChatExtensionParameters(String endpoint, String indexName)
Creates an instance of AzureSearchChatExtensionParameters class.
Parameters:
Method Details
fromJson
public static AzureSearchChatExtensionParameters fromJson(JsonReader jsonReader)
Reads an instance of AzureSearchChatExtensionParameters from the JsonReader.
Parameters:
Returns:
Throws:
getAuthentication
public OnYourDataAuthenticationOptions getAuthentication()
Get the authentication property: The authentication method to use when accessing the defined data source. Each data source type supports a specific set of available authentication methods; please see the documentation of the data source for supported mechanisms. If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential) authentication.
Returns:
getEmbeddingDependency
public OnYourDataVectorizationSource getEmbeddingDependency()
Get the embeddingDependency property: The embedding dependency for vector search.
Returns:
getEndpoint
public String getEndpoint()
Get the endpoint property: The absolute endpoint path for the Azure Cognitive Search resource to use.
Returns:
getFieldsMapping
public AzureSearchIndexFieldMappingOptions getFieldsMapping()
Get the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.
Returns:
getFilter
public String getFilter()
Get the filter property: Search filter.
Returns:
getIncludeContexts
public List
Get the includeContexts property: The included properties of the output context. If not specified, the default value is `citations` and `intent`.
Returns:
getIndexName
public String getIndexName()
Get the indexName property: The name of the index to use as available in the referenced Azure Cognitive Search resource.
Returns:
getMaxSearchQueries
public Integer getMaxSearchQueries()
Get the maxSearchQueries property: 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.
Returns:
getQueryType
public AzureSearchQueryType getQueryType()
Get the queryType property: The query type to use with Azure Cognitive Search.
Returns:
getSemanticConfiguration
public String getSemanticConfiguration()
Get the semanticConfiguration property: The additional semantic configuration for the query.
Returns:
getStrictness
public Integer getStrictness()
Get the strictness property: The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer.
Returns:
getTopNDocuments
public Integer getTopNDocuments()
Get the topNDocuments property: The configured top number of documents to feature for the configured query.
Returns:
isAllowPartialResult
public Boolean isAllowPartialResult()
Get the allowPartialResult property: 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.
Returns:
isInScope
public Boolean isInScope()
Get the inScope property: Whether queries should be restricted to use of indexed data.
Returns:
setAllowPartialResult
public AzureSearchChatExtensionParameters setAllowPartialResult(Boolean allowPartialResult)
Set the allowPartialResult property: 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.
Parameters:
Returns:
setAuthentication
public AzureSearchChatExtensionParameters setAuthentication(OnYourDataAuthenticationOptions authentication)
Set the authentication property: The authentication method to use when accessing the defined data source. Each data source type supports a specific set of available authentication methods; please see the documentation of the data source for supported mechanisms. If not otherwise provided, On Your Data will attempt to use System Managed Identity (default credential) authentication.
Parameters:
Returns:
setEmbeddingDependency
public AzureSearchChatExtensionParameters setEmbeddingDependency(OnYourDataVectorizationSource embeddingDependency)
Set the embeddingDependency property: The embedding dependency for vector search.
Parameters:
Returns:
setFieldsMapping
public AzureSearchChatExtensionParameters setFieldsMapping(AzureSearchIndexFieldMappingOptions fieldsMapping)
Set the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.
Parameters:
Returns:
setFilter
public AzureSearchChatExtensionParameters setFilter(String filter)
Set the filter property: Search filter.
Parameters:
Returns:
setIncludeContexts
public AzureSearchChatExtensionParameters setIncludeContexts(List
Set the includeContexts property: The included properties of the output context. If not specified, the default value is `citations` and `intent`.
Parameters:
Returns:
setInScope
public AzureSearchChatExtensionParameters setInScope(Boolean inScope)
Set the inScope property: Whether queries should be restricted to use of indexed data.
Parameters:
Returns:
setMaxSearchQueries
public AzureSearchChatExtensionParameters setMaxSearchQueries(Integer maxSearchQueries)
Set the maxSearchQueries property: 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.
Parameters:
Returns:
setQueryType
public AzureSearchChatExtensionParameters setQueryType(AzureSearchQueryType queryType)
Set the queryType property: The query type to use with Azure Cognitive Search.
Parameters:
Returns:
setSemanticConfiguration
public AzureSearchChatExtensionParameters setSemanticConfiguration(String semanticConfiguration)
Set the semanticConfiguration property: The additional semantic configuration for the query.
Parameters:
Returns:
setStrictness
public AzureSearchChatExtensionParameters setStrictness(Integer strictness)
Set the strictness property: The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer.
Parameters:
Returns:
setTopNDocuments
public AzureSearchChatExtensionParameters setTopNDocuments(Integer topNDocuments)
Set the topNDocuments property: The configured top number of documents to feature for the configured query.
Parameters:
Returns: