Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the QueryDTO class.
 /// </summary>
 /// <param name="qnaId">Exact qnaId to fetch from the knowledgebase,
 /// this field takes priority over question.</param>
 /// <param name="question">User question to query against the knowledge
 /// base.</param>
 /// <param name="top">Max number of answers to be returned for the
 /// question.</param>
 /// <param name="userId">Unique identifier for the user.</param>
 /// <param name="isTest">Query against the test index.</param>
 /// <param name="scoreThreshold">Threshold for answers returned based
 /// on score.</param>
 /// <param name="context">Context object with previous QnA's
 /// information.</param>
 /// <param name="strictFilters">Find only answers that contain these
 /// metadata.</param>
 public QueryDTO(string qnaId = default(string), string question = default(string), int?top = default(int?), string userId = default(string), bool?isTest = default(bool?), double?scoreThreshold = default(double?), QueryDTOContext context = default(QueryDTOContext), IList <MetadataDTO> strictFilters = default(IList <MetadataDTO>))
 {
     QnaId          = qnaId;
     Question       = question;
     Top            = top;
     UserId         = userId;
     IsTest         = isTest;
     ScoreThreshold = scoreThreshold;
     Context        = context;
     StrictFilters  = strictFilters;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the QueryDTO class.
 /// </summary>
 /// <param name="qnaId">Exact qnaId to fetch from the knowledgebase,
 /// this field takes priority over question.</param>
 /// <param name="question">User question to query against the knowledge
 /// base.</param>
 /// <param name="top">Max number of answers to be returned for the
 /// question.</param>
 /// <param name="userId">Unique identifier for the user.</param>
 /// <param name="isTest">Query against the test index.</param>
 /// <param name="scoreThreshold">Minimum threshold score for
 /// answers.</param>
 /// <param name="context">Context object with previous QnA's
 /// information.</param>
 /// <param name="rankerType">Optional field. Set to 'QuestionOnly' for
 /// using a question only Ranker.</param>
 /// <param name="strictFilters">Find QnAs that are associated with the
 /// given list of metadata.</param>
 /// <param name="strictFiltersCompoundOperationType">Optional field.
 /// Set to 'OR' for using OR operation for strict filters. Possible
 /// values include: 'AND', 'OR'</param>
 /// <param name="answerSpanRequest">To configure Answer span prediction
 /// feature.</param>
 public QueryDTO(string qnaId = default(string), string question = default(string), int?top = default(int?), string userId = default(string), bool?isTest = default(bool?), double?scoreThreshold = default(double?), QueryDTOContext context = default(QueryDTOContext), string rankerType = default(string), IList <MetadataDTO> strictFilters = default(IList <MetadataDTO>), string strictFiltersCompoundOperationType = default(string), QueryDTOAnswerSpanRequest answerSpanRequest = default(QueryDTOAnswerSpanRequest))
 {
     QnaId          = qnaId;
     Question       = question;
     Top            = top;
     UserId         = userId;
     IsTest         = isTest;
     ScoreThreshold = scoreThreshold;
     Context        = context;
     RankerType     = rankerType;
     StrictFilters  = strictFilters;
     StrictFiltersCompoundOperationType = strictFiltersCompoundOperationType;
     AnswerSpanRequest = answerSpanRequest;
     CustomInit();
 }