Class AzureMachineLearningIndexChatExtensionParameters

java.lang.Object
com.azure.ai.openai.models.AzureMachineLearningIndexChatExtensionParameters

public final class AzureMachineLearningIndexChatExtensionParameters extends Object
Parameters for the Azure Machine Learning vector index chat extension. The supported authentication types are AccessToken, SystemAssignedManagedIdentity and UserAssignedManagedIdentity.
  • Constructor Details

    • AzureMachineLearningIndexChatExtensionParameters

      public AzureMachineLearningIndexChatExtensionParameters(String projectResourceId, String name, String version)
      Creates an instance of AzureMachineLearningIndexChatExtensionParameters class.
      Parameters:
      projectResourceId - the projectResourceId value to set.
      name - the name value to set.
      version - the version value to set.
  • Method Details

    • 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:
      the authentication value.
    • setAuthentication

      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 AzureMachineLearningIndexChatExtensionParameters object itself.
    • getTopNDocuments

      public Integer getTopNDocuments()
      Get the topNDocuments property: The configured top number of documents to feature for the configured query.
      Returns:
      the topNDocuments value.
    • setTopNDocuments

      public AzureMachineLearningIndexChatExtensionParameters setTopNDocuments(Integer topNDocuments)
      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 AzureMachineLearningIndexChatExtensionParameters object itself.
    • isInScope

      public Boolean 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 AzureMachineLearningIndexChatExtensionParameters object itself.
    • 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:
      the strictness value.
    • setStrictness

      public AzureMachineLearningIndexChatExtensionParameters 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:
      strictness - the strictness value to set.
      Returns:
      the AzureMachineLearningIndexChatExtensionParameters object itself.
    • getRoleInformation

      public String 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

      public AzureMachineLearningIndexChatExtensionParameters 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. 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 AzureMachineLearningIndexChatExtensionParameters object itself.
    • getProjectResourceId

      public String getProjectResourceId()
      Get the projectResourceId property: The resource ID of the Azure Machine Learning project.
      Returns:
      the projectResourceId value.
    • getName

      public String getName()
      Get the name property: The Azure Machine Learning vector index name.
      Returns:
      the name value.
    • getVersion

      public String getVersion()
      Get the version property: The version of the Azure Machine Learning vector index.
      Returns:
      the version value.
    • getFilter

      public String getFilter()
      Get the filter property: Search filter. Only supported if the Azure Machine Learning vector index is of type AzureSearch.
      Returns:
      the filter value.
    • setFilter

      Set the filter property: Search filter. Only supported if the Azure Machine Learning vector index is of type AzureSearch.
      Parameters:
      filter - the filter value to set.
      Returns:
      the AzureMachineLearningIndexChatExtensionParameters object itself.