QnASearchResult Constructors

Definition

Overloads

QnASearchResult()
QnASearchResult(IList<String>, String, Nullable<Double>, Nullable<Int32>, String, IList<MetadataDTO>, QnASearchResultContext)
QnASearchResult(IList<String>, String, Nullable<Double>, Nullable<Int32>, String, IList<MetadataDTO>, QnASearchResultContext, QnASearchResultAnswerSpan)

QnASearchResult()

public QnASearchResult ();
Public Sub New ()

Applies to

QnASearchResult(IList<String>, String, Nullable<Double>, Nullable<Int32>, String, IList<MetadataDTO>, QnASearchResultContext)

public QnASearchResult (System.Collections.Generic.IList<string> questions = default, string answer = default, double? score = default, int? id = default, string source = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.MetadataDTO> metadata = default, Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultContext context = default);
new Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResult : System.Collections.Generic.IList<string> * string * Nullable<double> * Nullable<int> * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.MetadataDTO> * Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultContext -> Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResult
Public Sub New (Optional questions As IList(Of String) = Nothing, Optional answer As String = Nothing, Optional score As Nullable(Of Double) = Nothing, Optional id As Nullable(Of Integer) = Nothing, Optional source As String = Nothing, Optional metadata As IList(Of MetadataDTO) = Nothing, Optional context As QnASearchResultContext = Nothing)

Parameters

questions
System.Collections.Generic.IList<System.String>
answer
System.String
score
System.Nullable<System.Double>
id
System.Nullable<System.Int32>
source
System.String
metadata
System.Collections.Generic.IList<MetadataDTO>

Applies to

QnASearchResult(IList<String>, String, Nullable<Double>, Nullable<Int32>, String, IList<MetadataDTO>, QnASearchResultContext, QnASearchResultAnswerSpan)

public QnASearchResult (System.Collections.Generic.IList<string> questions = default, string answer = default, double? score = default, int? id = default, string source = default, System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.MetadataDTO> metadata = default, Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultContext context = default, Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultAnswerSpan answerSpan = default);
new Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResult : System.Collections.Generic.IList<string> * string * Nullable<double> * Nullable<int> * string * System.Collections.Generic.IList<Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.MetadataDTO> * Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultContext * Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResultAnswerSpan -> Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker.Models.QnASearchResult
Public Sub New (Optional questions As IList(Of String) = Nothing, Optional answer As String = Nothing, Optional score As Nullable(Of Double) = Nothing, Optional id As Nullable(Of Integer) = Nothing, Optional source As String = Nothing, Optional metadata As IList(Of MetadataDTO) = Nothing, Optional context As QnASearchResultContext = Nothing, Optional answerSpan As QnASearchResultAnswerSpan = Nothing)

Parameters

questions
System.Collections.Generic.IList<System.String>
answer
System.String
score
System.Nullable<System.Double>
id
System.Nullable<System.Int32>
source
System.String
metadata
System.Collections.Generic.IList<MetadataDTO>

Applies to