Package com.azure.ai.openai.models
Class AzureCognitiveSearchChatExtensionParameters
java.lang.Object
com.azure.ai.openai.models.AzureCognitiveSearchChatExtensionParameters
Parameters for Azure Cognitive Search when used as an Azure OpenAI chat extension.
-
Constructor Summary
ConstructorsConstructorDescriptionAzureCognitiveSearchChatExtensionParameters(String endpoint, String indexName) Creates an instance of AzureCognitiveSearchChatExtensionParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the authentication property: The authentication method to use when accessing the defined data source.Get the embeddingDependency property: The embedding dependency for vector search.Get the embeddingEndpoint property: When using embeddings for search, specifies the resource endpoint URL from which embeddings should be retrieved.Get the embeddingKey property: When using embeddings, specifies the API key to use with the provided embeddings endpoint.Get the endpoint property: The absolute endpoint path for the Azure Cognitive Search resource to use.Get the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.Get the filter property: Search filter.Get the indexName property: The name of the index to use as available in the referenced Azure Cognitive Search resource.getKey()Get the key property: The API key to use when interacting with the Azure Cognitive Search resource.Get the queryType property: The query type to use with Azure Cognitive Search.Get the roleInformation property: Give the model instructions about how it should behave and any context it should reference when generating a response.Get the semanticConfiguration property: The additional semantic configuration for the query.Get the strictness property: The configured strictness of the search relevance filtering.Get the topNDocuments property: The configured top number of documents to feature for the configured query.Get the inScope property: Whether queries should be restricted to use of indexed data.setAuthentication(OnYourDataAuthenticationOptions authentication) Set the authentication property: The authentication method to use when accessing the defined data source.setEmbeddingDependency(OnYourDataVectorizationSource embeddingDependency) Set the embeddingDependency property: The embedding dependency for vector search.setEmbeddingEndpoint(String embeddingEndpoint) Set the embeddingEndpoint property: When using embeddings for search, specifies the resource endpoint URL from which embeddings should be retrieved.setEmbeddingKey(String embeddingKey) Set the embeddingKey property: When using embeddings, specifies the API key to use with the provided embeddings endpoint.setFieldsMapping(AzureCognitiveSearchIndexFieldMappingOptions fieldsMapping) Set the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.Set the filter property: Search filter.setInScope(Boolean inScope) Set the inScope property: Whether queries should be restricted to use of indexed data.Set the key property: The API key to use when interacting with the Azure Cognitive Search resource.setQueryType(AzureCognitiveSearchQueryType queryType) Set the queryType property: The query type to use with Azure Cognitive Search.setRoleInformation(String roleInformation) Set the roleInformation property: Give the model instructions about how it should behave and any context it should reference when generating a response.setSemanticConfiguration(String semanticConfiguration) Set the semanticConfiguration property: The additional semantic configuration for the query.setStrictness(Integer strictness) Set the strictness property: The configured strictness of the search relevance filtering.setTopNDocuments(Integer topNDocuments) Set the topNDocuments property: The configured top number of documents to feature for the configured query.
-
Constructor Details
-
AzureCognitiveSearchChatExtensionParameters
Creates an instance of AzureCognitiveSearchChatExtensionParameters class.- Parameters:
endpoint- the endpoint value to set.indexName- the indexName value to set.
-
-
Method Details
-
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:
- the authentication value.
-
setAuthentication
public AzureCognitiveSearchChatExtensionParameters 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:
authentication- the authentication value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getTopNDocuments
Get the topNDocuments property: The configured top number of documents to feature for the configured query.- Returns:
- the topNDocuments value.
-
setTopNDocuments
Set the topNDocuments property: The configured top number of documents to feature for the configured query.- Parameters:
topNDocuments- the topNDocuments value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
isInScope
Get the inScope property: Whether queries should be restricted to use of indexed data.- Returns:
- the inScope value.
-
setInScope
Set the inScope property: Whether queries should be restricted to use of indexed data.- Parameters:
inScope- the inScope value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
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:
- the strictness value.
-
setStrictness
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:
strictness- the strictness value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getRoleInformation
Get the roleInformation property: Give the model instructions about how it should behave and any context it should reference when generating a response. You can describe the assistant's personality and tell it how to format responses. There's a 100 token limit for it, and it counts against the overall token limit.- Returns:
- the roleInformation value.
-
setRoleInformation
Set the roleInformation property: Give the model instructions about how it should behave and any context it should reference when generating a response. You can describe the assistant's personality and tell it how to format responses. There's a 100 token limit for it, and it counts against the overall token limit.- Parameters:
roleInformation- the roleInformation value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getEndpoint
Get the endpoint property: The absolute endpoint path for the Azure Cognitive Search resource to use.- Returns:
- the endpoint value.
-
getIndexName
Get the indexName property: The name of the index to use as available in the referenced Azure Cognitive Search resource.- Returns:
- the indexName value.
-
getKey
Get the key property: The API key to use when interacting with the Azure Cognitive Search resource.- Returns:
- the key value.
-
setKey
Set the key property: The API key to use when interacting with the Azure Cognitive Search resource.- Parameters:
key- the key value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getFieldsMapping
Get the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.- Returns:
- the fieldsMapping value.
-
setFieldsMapping
public AzureCognitiveSearchChatExtensionParameters setFieldsMapping(AzureCognitiveSearchIndexFieldMappingOptions fieldsMapping) Set the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.- Parameters:
fieldsMapping- the fieldsMapping value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getQueryType
Get the queryType property: The query type to use with Azure Cognitive Search.- Returns:
- the queryType value.
-
setQueryType
public AzureCognitiveSearchChatExtensionParameters setQueryType(AzureCognitiveSearchQueryType queryType) Set the queryType property: The query type to use with Azure Cognitive Search.- Parameters:
queryType- the queryType value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getSemanticConfiguration
Get the semanticConfiguration property: The additional semantic configuration for the query.- Returns:
- the semanticConfiguration value.
-
setSemanticConfiguration
public AzureCognitiveSearchChatExtensionParameters setSemanticConfiguration(String semanticConfiguration) Set the semanticConfiguration property: The additional semantic configuration for the query.- Parameters:
semanticConfiguration- the semanticConfiguration value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getFilter
Get the filter property: Search filter.- Returns:
- the filter value.
-
setFilter
Set the filter property: Search filter.- Parameters:
filter- the filter value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getEmbeddingEndpoint
Get the embeddingEndpoint property: When using embeddings for search, specifies the resource endpoint URL from which embeddings should be retrieved. It should be in the format of format https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version={api-version}.- Returns:
- the embeddingEndpoint value.
-
setEmbeddingEndpoint
Set the embeddingEndpoint property: When using embeddings for search, specifies the resource endpoint URL from which embeddings should be retrieved. It should be in the format of format https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/embeddings?api-version={api-version}.- Parameters:
embeddingEndpoint- the embeddingEndpoint value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getEmbeddingKey
Get the embeddingKey property: When using embeddings, specifies the API key to use with the provided embeddings endpoint.- Returns:
- the embeddingKey value.
-
setEmbeddingKey
Set the embeddingKey property: When using embeddings, specifies the API key to use with the provided embeddings endpoint.- Parameters:
embeddingKey- the embeddingKey value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-
getEmbeddingDependency
Get the embeddingDependency property: The embedding dependency for vector search.- Returns:
- the embeddingDependency value.
-
setEmbeddingDependency
public AzureCognitiveSearchChatExtensionParameters setEmbeddingDependency(OnYourDataVectorizationSource embeddingDependency) Set the embeddingDependency property: The embedding dependency for vector search.- Parameters:
embeddingDependency- the embeddingDependency value to set.- Returns:
- the AzureCognitiveSearchChatExtensionParameters object itself.
-