Udostępnij za pośrednictwem


QuestionAnsweringClient Class

Definition

The QuestionAnsweringClient allows you to ask questions of a custom or built-in knowledge base.

public class QuestionAnsweringClient
type QuestionAnsweringClient = class
Public Class QuestionAnsweringClient
Inheritance
QuestionAnsweringClient

Constructors

QuestionAnsweringClient()

Protected constructor to allow mocking.

QuestionAnsweringClient(Uri, AzureKeyCredential, QuestionAnsweringClientOptions)

Initializes a new instance of the QuestionAnsweringClient class.

QuestionAnsweringClient(Uri, AzureKeyCredential)

Initializes a new instance of the QuestionAnsweringClient class.

QuestionAnsweringClient(Uri, TokenCredential, QuestionAnsweringClientOptions)

Initializes a new instance of QuestionAnsweringClient.

QuestionAnsweringClient(Uri, TokenCredential)

Initializes a new instance of QuestionAnsweringClient.

Properties

Endpoint

Get the service endpoint for this client.

Methods

GetAnswers(Int32, QuestionAnsweringProject, AnswersOptions, CancellationToken)

Gets the specified QnA.

GetAnswers(String, QuestionAnsweringProject, AnswersOptions, CancellationToken)

Answers the specified question using your knowledge base.

GetAnswersAsync(Int32, QuestionAnsweringProject, AnswersOptions, CancellationToken)

Gets the specified QnA.

GetAnswersAsync(String, QuestionAnsweringProject, AnswersOptions, CancellationToken)

Answers the specified question using your knowledge base.

GetAnswersFromText(AnswersFromTextOptions, CancellationToken)

Answers the specified question using the provided text in the body.

GetAnswersFromText(String, IEnumerable<String>, String, CancellationToken)

Answers the specified question using the text textDocuments.

GetAnswersFromText(String, IEnumerable<TextDocument>, String, CancellationToken)

Answers the specified question using the text textDocuments.

GetAnswersFromTextAsync(AnswersFromTextOptions, CancellationToken)

Answers the specified question using the provided text in the body.

GetAnswersFromTextAsync(String, IEnumerable<String>, String, CancellationToken)

Answers the specified question using the text textDocuments.

GetAnswersFromTextAsync(String, IEnumerable<TextDocument>, String, CancellationToken)

Answers the specified question using the text textDocuments.

Applies to