CustomQuestionAnswering 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient)
初始化 CustomQuestionAnswering 类的新实例。
public CustomQuestionAnswering (Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint endpoint, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options = default, System.Net.Http.HttpClient httpClient = default);
new Microsoft.Bot.Builder.AI.QnA.CustomQuestionAnswering : Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient -> Microsoft.Bot.Builder.AI.QnA.CustomQuestionAnswering
Public Sub New (endpoint As QnAMakerEndpoint, Optional options As QnAMakerOptions = Nothing, Optional httpClient As HttpClient = Nothing)
参数
- endpoint
- QnAMakerEndpoint
要QnAMakerEndpoint查询的知识库的 。
- options
- QnAMakerOptions
QnAMakerOptions自定义问答知识库的 。
- httpClient
- HttpClient
与语言服务通信的备用客户端。 如果为 null,则此实例使用默认客户端。
适用于
CustomQuestionAnswering(QnAMakerEndpoint, QnAMakerOptions, HttpClient, IBotTelemetryClient, Boolean)
初始化 CustomQuestionAnswering 类的新实例。
public CustomQuestionAnswering (Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint endpoint, Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions options, System.Net.Http.HttpClient httpClient, Microsoft.Bot.Builder.IBotTelemetryClient telemetryClient, bool logPersonalInformation = false);
new Microsoft.Bot.Builder.AI.QnA.CustomQuestionAnswering : Microsoft.Bot.Builder.AI.QnA.QnAMakerEndpoint * Microsoft.Bot.Builder.AI.QnA.QnAMakerOptions * System.Net.Http.HttpClient * Microsoft.Bot.Builder.IBotTelemetryClient * bool -> Microsoft.Bot.Builder.AI.QnA.CustomQuestionAnswering
Public Sub New (endpoint As QnAMakerEndpoint, options As QnAMakerOptions, httpClient As HttpClient, telemetryClient As IBotTelemetryClient, Optional logPersonalInformation As Boolean = false)
参数
- endpoint
- QnAMakerEndpoint
要QnAMakerEndpoint查询的知识库的 。
- options
- QnAMakerOptions
QnAMakerOptions自定义问答知识库的 。
- httpClient
- HttpClient
与语言服务通信的备用客户端。 如果为 null,则此实例使用默认客户端。
- telemetryClient
- IBotTelemetryClient
用于记录遥测事件的 IBotTelemetryClient。
- logPersonalInformation
- Boolean
设置为 true 以在遥测事件中包含个人身份信息。