Class AzureCosmosDBChatExtensionParameters

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

public final class AzureCosmosDBChatExtensionParameters extends Object
Parameters to use when configuring Azure OpenAI On Your Data chat extensions when using Azure Cosmos DB for MongoDB vCore. The supported authentication type is ConnectionString.
  • Constructor Details

    • AzureCosmosDBChatExtensionParameters

      public AzureCosmosDBChatExtensionParameters(String databaseName, String containerName, String indexName, AzureCosmosDBFieldMappingOptions fieldsMapping, OnYourDataVectorizationSource embeddingDependency)
      Creates an instance of AzureCosmosDBChatExtensionParameters class.
      Parameters:
      databaseName - the databaseName value to set.
      containerName - the containerName value to set.
      indexName - the indexName value to set.
      fieldsMapping - the fieldsMapping value to set.
      embeddingDependency - the embeddingDependency 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

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

      public AzureCosmosDBChatExtensionParameters setInScope(Boolean inScope)
      Set the inScope property: Whether queries should be restricted to use of indexed data.
      Parameters:
      inScope - the inScope value to set.
      Returns:
      the AzureCosmosDBChatExtensionParameters 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 AzureCosmosDBChatExtensionParameters 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 AzureCosmosDBChatExtensionParameters 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 AzureCosmosDBChatExtensionParameters 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 AzureCosmosDBChatExtensionParameters object itself.
    • getDatabaseName

      public String getDatabaseName()
      Get the databaseName property: The MongoDB vCore database name to use with Azure Cosmos DB.
      Returns:
      the databaseName value.
    • getContainerName

      public String getContainerName()
      Get the containerName property: The name of the Azure Cosmos DB resource container.
      Returns:
      the containerName value.
    • getIndexName

      public String getIndexName()
      Get the indexName property: The MongoDB vCore index name to use with Azure Cosmos DB.
      Returns:
      the indexName value.
    • getFieldsMapping

      public AzureCosmosDBFieldMappingOptions getFieldsMapping()
      Get the fieldsMapping property: Customized field mapping behavior to use when interacting with the search index.
      Returns:
      the fieldsMapping value.
    • getEmbeddingDependency

      public OnYourDataVectorizationSource getEmbeddingDependency()
      Get the embeddingDependency property: The embedding dependency for vector search.
      Returns:
      the embeddingDependency value.