QuestionAnswersConfig Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Parameters to query a knowledge base.
public class QuestionAnswersConfig : System.ClientModel.Primitives.IJsonModel<Azure.AI.Language.Conversations.Models.QuestionAnswersConfig>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Language.Conversations.Models.QuestionAnswersConfig>
type QuestionAnswersConfig = class
interface IJsonModel<QuestionAnswersConfig>
interface IPersistableModel<QuestionAnswersConfig>
Public Class QuestionAnswersConfig
Implements IJsonModel(Of QuestionAnswersConfig), IPersistableModel(Of QuestionAnswersConfig)
- Inheritance
-
QuestionAnswersConfig
- Implements
Constructors
QuestionAnswersConfig() |
Initializes a new instance of QuestionAnswersConfig. |
Properties
AnswerContext |
Context object with previous QnA's information. |
ConfidenceThreshold |
Minimum threshold score for answers, value ranges from 0 to 1. |
Filters |
Filter QnAs based on given metadata list and knowledge base sources. |
IncludeUnstructuredSources |
(Optional) Flag to enable Query over Unstructured Sources. |
QnaId |
Exact QnA ID to fetch from the knowledge base, this field takes priority over question. |
Question |
User question to query against the knowledge base. |
RankerKind |
Type of ranker to be used. |
ShortAnswerOptions |
To configure Answer span prediction feature. |
Top |
Max number of answers to be returned for the question. |
UserId |
Unique identifier for the user. |
Explicit Interface Implementations
IJsonModel<QuestionAnswersConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<QuestionAnswersConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<QuestionAnswersConfig>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<QuestionAnswersConfig>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<QuestionAnswersConfig>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET