AzureCosmosDBChatExtensionConfiguration interface

A specific representation of configurable options for Azure Cosmos DB when using it as an Azure OpenAI chat extension.

Properties

authentication

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.

containerName

The name of the Azure Cosmos DB resource container.

databaseName

The MongoDB vCore database name to use with Azure Cosmos DB.

embeddingDependency

The embedding dependency for vector search.

fieldsMapping

Customized field mapping behavior to use when interacting with the search index.

indexName

The MongoDB vCore index name to use with Azure Cosmos DB.

inScope

Whether queries should be restricted to use of indexed data.

roleInformation

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.

strictness

The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer.

topNDocuments

The configured top number of documents to feature for the configured query.

type

The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its default value for Azure Cosmos DB.

Property Details

authentication

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.

authentication?: OnYourDataAuthenticationOptionsUnion

Property Value

containerName

The name of the Azure Cosmos DB resource container.

containerName: string

Property Value

string

databaseName

The MongoDB vCore database name to use with Azure Cosmos DB.

databaseName: string

Property Value

string

embeddingDependency

The embedding dependency for vector search.

embeddingDependency: OnYourDataVectorizationSourceUnion

Property Value

fieldsMapping

Customized field mapping behavior to use when interacting with the search index.

fieldsMapping: AzureCosmosDBFieldMappingOptions

Property Value

indexName

The MongoDB vCore index name to use with Azure Cosmos DB.

indexName: string

Property Value

string

inScope

Whether queries should be restricted to use of indexed data.

inScope?: boolean

Property Value

boolean

roleInformation

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.

roleInformation?: string

Property Value

string

strictness

The configured strictness of the search relevance filtering. The higher of strictness, the higher of the precision but lower recall of the answer.

strictness?: number

Property Value

number

topNDocuments

The configured top number of documents to feature for the configured query.

topNDocuments?: number

Property Value

number

type

The type label to use when configuring Azure OpenAI chat extensions. This should typically not be changed from its default value for Azure Cosmos DB.

type: "azure_cosmos_db"

Property Value

"azure_cosmos_db"