Skip to content

Commit 1b0f74d

Browse files
Amazon Kendra now supports confidence score buckets for retrieved passage results using the Retrieve API.
1 parent 36099de commit 1b0f74d

24 files changed

+657
-352
lines changed

generator/ServiceModels/kendra/kendra-2019-02-03.api.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4654,7 +4654,8 @@
46544654
"DocumentTitle":{"shape":"DocumentTitle"},
46554655
"Content":{"shape":"Content"},
46564656
"DocumentURI":{"shape":"Url"},
4657-
"DocumentAttributes":{"shape":"DocumentAttributeList"}
4657+
"DocumentAttributes":{"shape":"DocumentAttributeList"},
4658+
"ScoreAttributes":{"shape":"ScoreAttributes"}
46584659
}
46594660
},
46604661
"RetrieveResultItemList":{

generator/ServiceModels/kendra/kendra-2019-02-03.docs.json

Lines changed: 30 additions & 29 deletions
Large diffs are not rendered by default.

generator/ServiceModels/kendra/kendra-2019-02-03.endpoint-rule-set.json

Lines changed: 154 additions & 190 deletions
Large diffs are not rendered by default.

generator/ServiceModels/kendra/kendra-2019-02-03.normal.json

Lines changed: 32 additions & 28 deletions
Large diffs are not rendered by default.

sdk/src/Services/Kendra/Generated/Model/AttributeFilter.cs

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,56 @@
2929
namespace Amazon.Kendra.Model
3030
{
3131
/// <summary>
32-
/// Provides filtering the query results based on document attributes or metadata fields.
32+
/// Filters the search results based on document attributes or fields.
3333
///
3434
///
3535
/// <para>
36-
/// When you use the <code>AndAllFilters</code> or <code>OrAllFilters</code>, filters
37-
/// you can use 2 layers under the first attribute filter. For example, you can use:
36+
/// You can filter results using attributes for your particular documents. The attributes
37+
/// must exist in your index. For example, if your documents include the custom attribute
38+
/// "Department", you can filter documents that belong to the "HR" department. You would
39+
/// use the <code>EqualsTo</code> operation to filter results or documents with "Department"
40+
/// equals to "HR".
3841
/// </para>
3942
///
4043
/// <para>
41-
/// <code>&lt;AndAllFilters&gt;</code>
44+
/// You can use <code>AndAllFilters</code> and <code>AndOrFilters</code> in combination
45+
/// with each other or with other operations such as <code>EqualsTo</code>. For example:
4246
/// </para>
43-
/// <ol> <li>
47+
///
48+
/// <para>
49+
/// <code>AndAllFilters</code>
50+
/// </para>
51+
/// <ul> <li>
4452
/// <para>
45-
/// <code> &lt;OrAllFilters&gt;</code>
53+
/// <code>EqualsTo</code>: "Department", "HR"
4654
/// </para>
4755
/// </li> <li>
4856
/// <para>
49-
/// <code> &lt;EqualsTo&gt;</code>
57+
/// <code>AndOrFilters</code>
58+
/// </para>
59+
/// <ul> <li>
60+
/// <para>
61+
/// <code>ContainsAny</code>: "Project Name", ["new hires", "new hiring"]
5062
/// </para>
51-
/// </li> </ol>
63+
/// </li> </ul> </li> </ul>
5264
/// <para>
53-
/// If you use more than 2 layers, you receive a <code>ValidationException</code> exception
54-
/// with the message "<code>AttributeFilter</code> cannot have a depth of more than 2."
65+
/// This example filters results or documents that belong to the HR department <i>and</i>
66+
/// belong to projects that contain "new hires" <i>or</i> "new hiring" in the project
67+
/// name (must use <code>ContainAny</code> with <code>StringListValue</code>). This example
68+
/// is filtering with a depth of 2.
5569
/// </para>
5670
///
5771
/// <para>
58-
/// If you use more than 10 attribute filters in a given list for <code>AndAllFilters</code>
72+
/// You cannot filter more than a depth of 2, otherwise you receive a <code>ValidationException</code>
73+
/// exception with the message "AttributeFilter cannot have a depth of more than 2." Also,
74+
/// if you use more than 10 attribute filters in a given list for <code>AndAllFilters</code>
5975
/// or <code>OrAllFilters</code>, you receive a <code>ValidationException</code> with
60-
/// the message "<code>AttributeFilter</code> cannot have a length of more than 10".
76+
/// the message "AttributeFilter cannot have a length of more than 10".
77+
/// </para>
78+
///
79+
/// <para>
80+
/// For examples of using <code>AttributeFilter</code>, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html#search-filtering">Using
81+
/// document attributes to filter search results</a>.
6182
/// </para>
6283
/// </summary>
6384
public partial class AttributeFilter
@@ -76,7 +97,7 @@ public partial class AttributeFilter
7697
/// <summary>
7798
/// Gets and sets the property AndAllFilters.
7899
/// <para>
79-
/// Performs a logical <code>AND</code> operation on all supplied filters.
100+
/// Performs a logical <code>AND</code> operation on all filters that you specify.
80101
/// </para>
81102
/// </summary>
82103
public List<AttributeFilter> AndAllFilters
@@ -94,8 +115,8 @@ internal bool IsSetAndAllFilters()
94115
/// <summary>
95116
/// Gets and sets the property ContainsAll.
96117
/// <para>
97-
/// Returns true when a document contains all of the specified document attributes or
98-
/// metadata fields. This filter is only applicable to <code>StringListValue</code> metadata.
118+
/// Returns true when a document contains all of the specified document attributes/fields.
119+
/// This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.
99120
/// </para>
100121
/// </summary>
101122
public DocumentAttribute ContainsAll
@@ -113,8 +134,8 @@ internal bool IsSetContainsAll()
113134
/// <summary>
114135
/// Gets and sets the property ContainsAny.
115136
/// <para>
116-
/// Returns true when a document contains any of the specified document attributes or
117-
/// metadata fields. This filter is only applicable to <code>StringListValue</code> metadata.
137+
/// Returns true when a document contains any of the specified document attributes/fields.
138+
/// This filter is only applicable to <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">StringListValue</a>.
118139
/// </para>
119140
/// </summary>
120141
public DocumentAttribute ContainsAny
@@ -132,7 +153,7 @@ internal bool IsSetContainsAny()
132153
/// <summary>
133154
/// Gets and sets the property EqualsTo.
134155
/// <para>
135-
/// Performs an equals operation on two document attributes or metadata fields.
156+
/// Performs an equals operation on document attributes/fields and their values.
136157
/// </para>
137158
/// </summary>
138159
public DocumentAttribute EqualsTo
@@ -150,8 +171,9 @@ internal bool IsSetEqualsTo()
150171
/// <summary>
151172
/// Gets and sets the property GreaterThan.
152173
/// <para>
153-
/// Performs a greater than operation on two document attributes or metadata fields. Use
154-
/// with a document attribute of type <code>Date</code> or <code>Long</code>.
174+
/// Performs a greater than operation on document attributes/fields and their values.
175+
/// Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document
176+
/// attribute type</a> <code>Date</code> or <code>Long</code>.
155177
/// </para>
156178
/// </summary>
157179
public DocumentAttribute GreaterThan
@@ -169,8 +191,9 @@ internal bool IsSetGreaterThan()
169191
/// <summary>
170192
/// Gets and sets the property GreaterThanOrEquals.
171193
/// <para>
172-
/// Performs a greater or equals than operation on two document attributes or metadata
173-
/// fields. Use with a document attribute of type <code>Date</code> or <code>Long</code>.
194+
/// Performs a greater or equals than operation on document attributes/fields and their
195+
/// values. Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document
196+
/// attribute type</a> <code>Date</code> or <code>Long</code>.
174197
/// </para>
175198
/// </summary>
176199
public DocumentAttribute GreaterThanOrEquals
@@ -188,8 +211,9 @@ internal bool IsSetGreaterThanOrEquals()
188211
/// <summary>
189212
/// Gets and sets the property LessThan.
190213
/// <para>
191-
/// Performs a less than operation on two document attributes or metadata fields. Use
192-
/// with a document attribute of type <code>Date</code> or <code>Long</code>.
214+
/// Performs a less than operation on document attributes/fields and their values. Use
215+
/// with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document
216+
/// attribute type</a> <code>Date</code> or <code>Long</code>.
193217
/// </para>
194218
/// </summary>
195219
public DocumentAttribute LessThan
@@ -207,8 +231,9 @@ internal bool IsSetLessThan()
207231
/// <summary>
208232
/// Gets and sets the property LessThanOrEquals.
209233
/// <para>
210-
/// Performs a less than or equals operation on two document attributes or metadata fields.
211-
/// Use with a document attribute of type <code>Date</code> or <code>Long</code>.
234+
/// Performs a less than or equals operation on document attributes/fields and their values.
235+
/// Use with the <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_DocumentAttributeValue.html">document
236+
/// attribute type</a> <code>Date</code> or <code>Long</code>.
212237
/// </para>
213238
/// </summary>
214239
public DocumentAttribute LessThanOrEquals
@@ -226,7 +251,7 @@ internal bool IsSetLessThanOrEquals()
226251
/// <summary>
227252
/// Gets and sets the property NotFilter.
228253
/// <para>
229-
/// Performs a logical <code>NOT</code> operation on all supplied filters.
254+
/// Performs a logical <code>NOT</code> operation on all filters that you specify.
230255
/// </para>
231256
/// </summary>
232257
public AttributeFilter NotFilter
@@ -244,7 +269,7 @@ internal bool IsSetNotFilter()
244269
/// <summary>
245270
/// Gets and sets the property OrAllFilters.
246271
/// <para>
247-
/// Performs a logical <code>OR</code> operation on all supplied filters.
272+
/// Performs a logical <code>OR</code> operation on all filters that you specify.
248273
/// </para>
249274
/// </summary>
250275
public List<AttributeFilter> OrAllFilters

sdk/src/Services/Kendra/Generated/Model/BatchDeleteDocumentRequest.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,14 @@ namespace Amazon.Kendra.Model
3737
/// <para>
3838
/// The documents are deleted asynchronously. You can see the progress of the deletion
3939
/// by using Amazon Web Services CloudWatch. Any error messages related to the processing
40-
/// of the batch are sent to you CloudWatch log.
40+
/// of the batch are sent to your Amazon Web Services CloudWatch log. You can also use
41+
/// the <code>BatchGetDocumentStatus</code> API to monitor the progress of deleting your
42+
/// documents.
43+
/// </para>
44+
///
45+
/// <para>
46+
/// Deleting documents from an index using <code>BatchDeleteDocument</code> could take
47+
/// up to an hour or more, depending on the number of documents you want to delete.
4148
/// </para>
4249
/// </summary>
4350
public partial class BatchDeleteDocumentRequest : AmazonKendraRequest

sdk/src/Services/Kendra/Generated/Model/BatchPutDocumentRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ namespace Amazon.Kendra.Model
4343
/// <para>
4444
/// The documents are indexed asynchronously. You can see the progress of the batch using
4545
/// Amazon Web Services CloudWatch. Any error messages related to processing the batch
46-
/// are sent to your Amazon Web Services CloudWatch log.
46+
/// are sent to your Amazon Web Services CloudWatch log. You can also use the <code>BatchGetDocumentStatus</code>
47+
/// API to monitor the progress of indexing your documents.
4748
/// </para>
4849
///
4950
/// <para>

sdk/src/Services/Kendra/Generated/Model/BatchPutDocumentResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public partial class BatchPutDocumentResponse : AmazonWebServiceResponse
4646
/// <para>
4747
/// If there was an error adding a document to an index the error is reported in your
4848
/// Amazon Web Services CloudWatch log. For more information, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/cloudwatch-logs.html">Monitoring
49-
/// Amazon Kendra with Amazon CloudWatch Logs</a>
49+
/// Amazon Kendra with Amazon CloudWatch logs</a>.
5050
/// </para>
5151
/// </summary>
5252
public List<BatchPutDocumentResponseFailedDocument> FailedDocuments

sdk/src/Services/Kendra/Generated/Model/CreateIndexRequest.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ namespace Amazon.Kendra.Model
3737
///
3838
///
3939
/// <para>
40-
/// Once the index is active you can index your documents using the <code>BatchPutDocument</code>
41-
/// API or using one of the supported data sources.
40+
/// Once the index is active, you can index your documents using the <code>BatchPutDocument</code>
41+
/// API or using one of the supported <a href="https://docs.aws.amazon.com/kendra/latest/dg/data-sources.html">data
42+
/// sources</a>.
4243
/// </para>
4344
///
4445
/// <para>

sdk/src/Services/Kendra/Generated/Model/DataSourceToIndexFieldMapping.cs

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,14 @@
2929
namespace Amazon.Kendra.Model
3030
{
3131
/// <summary>
32-
/// Maps a column or attribute in the data source to an index field. You must first create
33-
/// the fields in the index using the <code>UpdateIndex</code> API.
32+
/// Maps attributes or field names of the documents synced from the data source to Amazon
33+
/// Kendra index field names. You can set up field mappings for each data source when
34+
/// calling <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_CreateDataSource.html">CreateDataSource</a>
35+
/// or <a href="https://docs.aws.amazon.com/kendra/latest/APIReference/API_UpdateDataSource.html">UpdateDataSource</a>
36+
/// API. To create custom fields, use the <code>UpdateIndex</code> API to first create
37+
/// an index field and then map to the data source field. For more information, see <a
38+
/// href="https://docs.aws.amazon.com/kendra/latest/dg/field-mapping.html">Mapping data
39+
/// source fields</a>.
3440
/// </summary>
3541
public partial class DataSourceToIndexFieldMapping
3642
{
@@ -41,7 +47,8 @@ public partial class DataSourceToIndexFieldMapping
4147
/// <summary>
4248
/// Gets and sets the property DataSourceFieldName.
4349
/// <para>
44-
/// The name of the column or attribute in the data source.
50+
/// The name of the field in the data source. You must first create the index field using
51+
/// the <code>UpdateIndex</code> API.
4552
/// </para>
4653
/// </summary>
4754
[AWSProperty(Required=true, Min=1, Max=100)]
@@ -60,7 +67,9 @@ internal bool IsSetDataSourceFieldName()
6067
/// <summary>
6168
/// Gets and sets the property DateFieldFormat.
6269
/// <para>
63-
/// The type of data stored in the column or attribute.
70+
/// The format for date fields in the data source. If the field specified in <code>DataSourceFieldName</code>
71+
/// is a date field, you must specify the date format. If the field is not a date field,
72+
/// an exception is thrown.
6473
/// </para>
6574
/// </summary>
6675
[AWSProperty(Min=4, Max=40)]
@@ -79,7 +88,8 @@ internal bool IsSetDateFieldFormat()
7988
/// <summary>
8089
/// Gets and sets the property IndexFieldName.
8190
/// <para>
82-
/// The name of the field in the index.
91+
/// The name of the index field to map to the data source field. The index field type
92+
/// must match the data source field type.
8393
/// </para>
8494
/// </summary>
8595
[AWSProperty(Required=true, Min=1, Max=30)]

0 commit comments

Comments
 (0)