-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
QueryAnswerResult.cs
48 lines (42 loc) · 2.51 KB
/
QueryAnswerResult.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Search.Documents.Models
{
/// <summary> An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected. </summary>
public partial class QueryAnswerResult
{
/// <summary> Initializes a new instance of <see cref="QueryAnswerResult"/>. </summary>
internal QueryAnswerResult()
{
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
}
/// <summary> Initializes a new instance of <see cref="QueryAnswerResult"/>. </summary>
/// <param name="score"> The score value represents how relevant the answer is to the query relative to other answers returned for the query. </param>
/// <param name="key"> The key of the document the answer was extracted from. </param>
/// <param name="text"> The text passage extracted from the document contents as the answer. </param>
/// <param name="highlights"> Same text passage as in the Text property with highlighted text phrases most relevant to the query. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
internal QueryAnswerResult(double? score, string key, string text, string highlights, IReadOnlyDictionary<string, object> additionalProperties)
{
Score = score;
Key = key;
Text = text;
Highlights = highlights;
AdditionalProperties = additionalProperties;
}
/// <summary> The score value represents how relevant the answer is to the query relative to other answers returned for the query. </summary>
public double? Score { get; }
/// <summary> The key of the document the answer was extracted from. </summary>
public string Key { get; }
/// <summary> The text passage extracted from the document contents as the answer. </summary>
public string Text { get; }
/// <summary> Same text passage as in the Text property with highlighted text phrases most relevant to the query. </summary>
public string Highlights { get; }
/// <summary> Additional Properties. </summary>
public IReadOnlyDictionary<string, object> AdditionalProperties { get; }
}
}