Delen via


AzureMachineLearningIndexChatDataSource Class

Definition

Represents a data source configuration that will use an Azure Machine Learning vector index.

public class AzureMachineLearningIndexChatDataSource : Azure.AI.OpenAI.Chat.AzureChatDataSource, System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Chat.AzureMachineLearningIndexChatDataSource>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Chat.AzureMachineLearningIndexChatDataSource>
type AzureMachineLearningIndexChatDataSource = class
    inherit AzureChatDataSource
    interface IJsonModel<AzureMachineLearningIndexChatDataSource>
    interface IPersistableModel<AzureMachineLearningIndexChatDataSource>
Public Class AzureMachineLearningIndexChatDataSource
Inherits AzureChatDataSource
Implements IJsonModel(Of AzureMachineLearningIndexChatDataSource), IPersistableModel(Of AzureMachineLearningIndexChatDataSource)
Inheritance
AzureMachineLearningIndexChatDataSource
Implements

Constructors

AzureMachineLearningIndexChatDataSource()
Obsolete.

Creates a new instance of AzureMachineLearningIndexChatDataSource.

Properties

AllowPartialResult

If set to true, the system will allow partial search results to be used and the request will fail if all partial queries fail. If not specified or specified as false, the request will fail if any search query fails.

Authentication

The authentication options to use with the Azure Machine Learning Index data source.

Filter

A search filter, which is only applicable if the vector index is of the 'AzureSearch' type.

IndexName

The name of the Azure Machine Learning index to use.

InScope

Whether queries should be restricted to use of the indexed data.

MaxSearchQueries

The maximum number of rewritten queries that should be sent to the search provider for a single user message. By default, the system will make an automatic determination.

OutputContextFlags

The include_context flags to request for an On Your Data retrieval result, which control what information will be available on AzureChatMessageContext instances in the response.

ProjectResourceId

The ID of the Azure Machine Learning index project to use.

RoleInformation

Additional instructions for the model to inform 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. This is limited to 100 tokens and counts against the overall token limit.

Strictness

The configured strictness of the search relevance filtering. Higher strictness will increase precision but lower recall of the answer.

TopNDocuments

The configured number of documents to feature in the query.

Version

The version of the vector index to use.

Explicit Interface Implementations

IJsonModel<AzureChatDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from AzureChatDataSource)
IJsonModel<AzureChatDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from AzureChatDataSource)
IJsonModel<AzureMachineLearningIndexChatDataSource>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AzureMachineLearningIndexChatDataSource>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AzureChatDataSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from AzureChatDataSource)
IPersistableModel<AzureChatDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from AzureChatDataSource)
IPersistableModel<AzureChatDataSource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from AzureChatDataSource)
IPersistableModel<AzureMachineLearningIndexChatDataSource>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AzureMachineLearningIndexChatDataSource>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AzureMachineLearningIndexChatDataSource>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to