aws-sdk-kendra 1.67.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-kendra/client.rb +257 -34
- data/lib/aws-sdk-kendra/client_api.rb +46 -1
- data/lib/aws-sdk-kendra/endpoints.rb +14 -0
- data/lib/aws-sdk-kendra/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-kendra/types.rb +212 -72
- data/lib/aws-sdk-kendra.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4372c3acacf5d72ee47336d56278f06798fb0b3a4b5381b748f6ba2cc4c4b399
|
4
|
+
data.tar.gz: e6853eea98a07d146ebf29af0bb646e07b04b72f58955af5f8acd46419ad746d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f89a7105f742a34a51e0df627c9e66411668dfd8cc43b10c635d4c85d1ab7f39ebd4c5768d8f9c3888c7b62b83cf3f3612376a753527da0555b8390f0e921d22
|
7
|
+
data.tar.gz: d707dd3b5aa4934e16ce8c9800239bc579bd10b5d5a6e69747a96b6f13fcc99d222435ba0644a5a3fb9aba04bc824085146cec3c116737260dcbc422617e7e87
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.69.0 (2023-06-28)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.68.0 (2023-06-22)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Introducing Amazon Kendra Retrieve API that can be used to retrieve relevant passages or text excerpts given an input query.
|
13
|
+
|
4
14
|
1.67.0 (2023-06-15)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.69.0
|
@@ -1958,6 +1958,8 @@ module Aws::Kendra
|
|
1958
1958
|
# format, a CSV format that includes customs attributes in a header, and
|
1959
1959
|
# a JSON format that includes custom attributes.
|
1960
1960
|
#
|
1961
|
+
# The default format is CSV.
|
1962
|
+
#
|
1961
1963
|
# The format must match the format of the file stored in the S3 bucket
|
1962
1964
|
# identified in the `S3Path` parameter.
|
1963
1965
|
#
|
@@ -5036,31 +5038,33 @@ module Aws::Kendra
|
|
5036
5038
|
req.send_request(options)
|
5037
5039
|
end
|
5038
5040
|
|
5039
|
-
# Searches an
|
5040
|
-
# query. The `Query` API enables to do faceted search and to filter
|
5041
|
-
# results based on document attributes.
|
5041
|
+
# Searches an index given an input query.
|
5042
5042
|
#
|
5043
|
-
#
|
5044
|
-
#
|
5043
|
+
# You can configure boosting or relevance tuning at the query level to
|
5044
|
+
# override boosting at the index level, filter based on document
|
5045
|
+
# fields/attributes and faceted search, and filter based on the user or
|
5046
|
+
# their group access to documents. You can also include certain fields
|
5047
|
+
# in the response that might provide useful additional information.
|
5045
5048
|
#
|
5046
|
-
#
|
5047
|
-
# answer (FAQ) content. By default the response contains three types of
|
5048
|
-
# results.
|
5049
|
+
# A query response contains three types of results.
|
5049
5050
|
#
|
5050
|
-
# * Relevant
|
5051
|
+
# * Relevant suggested answers. The answers can be either a text excerpt
|
5052
|
+
# or table excerpt. The answer can be highlighted in the excerpt.
|
5051
5053
|
#
|
5052
|
-
# * Matching FAQs
|
5054
|
+
# * Matching FAQs or questions-answer from your FAQ file.
|
5053
5055
|
#
|
5054
|
-
# * Relevant documents
|
5056
|
+
# * Relevant documents. This result type includes an excerpt of the
|
5057
|
+
# document with the document title. The searched terms can be
|
5058
|
+
# highlighted in the excerpt.
|
5055
5059
|
#
|
5056
5060
|
# You can specify that the query return only one type of result using
|
5057
|
-
# the `QueryResultTypeFilter` parameter.
|
5058
|
-
#
|
5059
|
-
#
|
5061
|
+
# the `QueryResultTypeFilter` parameter. Each query returns the 100 most
|
5062
|
+
# relevant results. If you filter result type to only question-answers,
|
5063
|
+
# a maximum of four results are returned. If you filter result type to
|
5064
|
+
# only answers, a maximum of three results are returned.
|
5060
5065
|
#
|
5061
5066
|
# @option params [required, String] :index_id
|
5062
|
-
# The identifier of the index
|
5063
|
-
# the response from the `CreateIndex` API.
|
5067
|
+
# The identifier of the index for the search.
|
5064
5068
|
#
|
5065
5069
|
# @option params [String] :query_text
|
5066
5070
|
# The input query text for the search. Amazon Kendra truncates queries
|
@@ -5069,44 +5073,39 @@ module Aws::Kendra
|
|
5069
5073
|
# queries.
|
5070
5074
|
#
|
5071
5075
|
# @option params [Types::AttributeFilter] :attribute_filter
|
5072
|
-
#
|
5076
|
+
# Filters search results by document fields/attributes. You can only
|
5073
5077
|
# provide one attribute filter; however, the `AndAllFilters`,
|
5074
5078
|
# `NotFilter`, and `OrAllFilters` parameters contain a list of other
|
5075
5079
|
# filters.
|
5076
5080
|
#
|
5077
|
-
# The `AttributeFilter` parameter
|
5081
|
+
# The `AttributeFilter` parameter means you can create a set of
|
5078
5082
|
# filtering rules that a document must satisfy to be included in the
|
5079
5083
|
# query results.
|
5080
5084
|
#
|
5081
5085
|
# @option params [Array<Types::Facet>] :facets
|
5082
|
-
# An array of documents attributes
|
5083
|
-
# each
|
5084
|
-
# search.
|
5086
|
+
# An array of documents fields/attributes for faceted search. Amazon
|
5087
|
+
# Kendra returns a count for each field key specified. This helps your
|
5088
|
+
# users narrow their search.
|
5085
5089
|
#
|
5086
5090
|
# @option params [Array<String>] :requested_document_attributes
|
5087
|
-
# An array of document attributes to include in the response. You
|
5088
|
-
# limit the response to include certain document
|
5091
|
+
# An array of document fields/attributes to include in the response. You
|
5092
|
+
# can limit the response to include certain document fields. By default,
|
5089
5093
|
# all document attributes are included in the response.
|
5090
5094
|
#
|
5091
5095
|
# @option params [String] :query_result_type_filter
|
5092
|
-
# Sets the type of query. Only results for the
|
5093
|
-
# returned.
|
5096
|
+
# Sets the type of query result or response. Only results for the
|
5097
|
+
# specified type are returned.
|
5094
5098
|
#
|
5095
5099
|
# @option params [Array<Types::DocumentRelevanceConfiguration>] :document_relevance_override_configurations
|
5096
|
-
# Overrides relevance tuning configurations of fields
|
5097
|
-
#
|
5100
|
+
# Overrides relevance tuning configurations of fields/attributes set at
|
5101
|
+
# the index level.
|
5098
5102
|
#
|
5099
5103
|
# If you use this API to override the relevance tuning configured at the
|
5100
5104
|
# index level, but there is no relevance tuning configured at the index
|
5101
5105
|
# level, then Amazon Kendra does not apply any relevance tuning.
|
5102
5106
|
#
|
5103
|
-
# If there is relevance tuning configured at the index level, but you do
|
5104
|
-
# not use this API to override any relevance tuning in the index, then
|
5105
|
-
# Amazon Kendra uses the relevance tuning that is configured at the
|
5106
|
-
# index level.
|
5107
|
-
#
|
5108
5107
|
# If there is relevance tuning configured for fields at the index level,
|
5109
|
-
#
|
5108
|
+
# and you use this API to override only some of these fields, then for
|
5110
5109
|
# the fields you did not override, the importance is set to 1.
|
5111
5110
|
#
|
5112
5111
|
# @option params [Integer] :page_number
|
@@ -5394,6 +5393,230 @@ module Aws::Kendra
|
|
5394
5393
|
req.send_request(options)
|
5395
5394
|
end
|
5396
5395
|
|
5396
|
+
# Retrieves relevant passages or text excerpts given an input query.
|
5397
|
+
#
|
5398
|
+
# This API is similar to the [Query][1] API. However, by default, the
|
5399
|
+
# `Query` API only returns excerpt passages of up to 100 token words.
|
5400
|
+
# With the `Retrieve` API, you can retrieve longer passages of up to 200
|
5401
|
+
# token words and up to 100 semantically relevant passages. This
|
5402
|
+
# doesn't include question-answer or FAQ type responses from your
|
5403
|
+
# index. The passages are text excerpts that can be semantically
|
5404
|
+
# extracted from multiple documents and multiple parts of the same
|
5405
|
+
# document. If in extreme cases your documents produce no relevant
|
5406
|
+
# passages using the `Retrieve` API, you can alternatively use the
|
5407
|
+
# `Query` API.
|
5408
|
+
#
|
5409
|
+
# You can also do the following:
|
5410
|
+
#
|
5411
|
+
# * Override boosting at the index level
|
5412
|
+
#
|
5413
|
+
# * Filter based on document fields or attributes
|
5414
|
+
#
|
5415
|
+
# * Filter based on the user or their group access to documents
|
5416
|
+
#
|
5417
|
+
# You can also include certain fields in the response that might provide
|
5418
|
+
# useful additional information.
|
5419
|
+
#
|
5420
|
+
#
|
5421
|
+
#
|
5422
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/APIReference/API_Query.html
|
5423
|
+
#
|
5424
|
+
# @option params [required, String] :index_id
|
5425
|
+
# The identifier of the index to retrieve relevant passages for the
|
5426
|
+
# search.
|
5427
|
+
#
|
5428
|
+
# @option params [required, String] :query_text
|
5429
|
+
# The input query text to retrieve relevant passages for the search.
|
5430
|
+
# Amazon Kendra truncates queries at 30 token words, which excludes
|
5431
|
+
# punctuation and stop words. Truncation still applies if you use
|
5432
|
+
# Boolean or more advanced, complex queries.
|
5433
|
+
#
|
5434
|
+
# @option params [Types::AttributeFilter] :attribute_filter
|
5435
|
+
# Filters search results by document fields/attributes. You can only
|
5436
|
+
# provide one attribute filter; however, the `AndAllFilters`,
|
5437
|
+
# `NotFilter`, and `OrAllFilters` parameters contain a list of other
|
5438
|
+
# filters.
|
5439
|
+
#
|
5440
|
+
# The `AttributeFilter` parameter means you can create a set of
|
5441
|
+
# filtering rules that a document must satisfy to be included in the
|
5442
|
+
# query results.
|
5443
|
+
#
|
5444
|
+
# @option params [Array<String>] :requested_document_attributes
|
5445
|
+
# A list of document fields/attributes to include in the response. You
|
5446
|
+
# can limit the response to include certain document fields. By default,
|
5447
|
+
# all document fields are included in the response.
|
5448
|
+
#
|
5449
|
+
# @option params [Array<Types::DocumentRelevanceConfiguration>] :document_relevance_override_configurations
|
5450
|
+
# Overrides relevance tuning configurations of fields/attributes set at
|
5451
|
+
# the index level.
|
5452
|
+
#
|
5453
|
+
# If you use this API to override the relevance tuning configured at the
|
5454
|
+
# index level, but there is no relevance tuning configured at the index
|
5455
|
+
# level, then Amazon Kendra does not apply any relevance tuning.
|
5456
|
+
#
|
5457
|
+
# If there is relevance tuning configured for fields at the index level,
|
5458
|
+
# and you use this API to override only some of these fields, then for
|
5459
|
+
# the fields you did not override, the importance is set to 1.
|
5460
|
+
#
|
5461
|
+
# @option params [Integer] :page_number
|
5462
|
+
# Retrieved relevant passages are returned in pages the size of the
|
5463
|
+
# `PageSize` parameter. By default, Amazon Kendra returns the first page
|
5464
|
+
# of results. Use this parameter to get result pages after the first
|
5465
|
+
# one.
|
5466
|
+
#
|
5467
|
+
# @option params [Integer] :page_size
|
5468
|
+
# Sets the number of retrieved relevant passages that are returned in
|
5469
|
+
# each page of results. The default page size is 10. The maximum number
|
5470
|
+
# of results returned is 100. If you ask for more than 100 results, only
|
5471
|
+
# 100 are returned.
|
5472
|
+
#
|
5473
|
+
# @option params [Types::UserContext] :user_context
|
5474
|
+
# The user context token or user and group information.
|
5475
|
+
#
|
5476
|
+
# @return [Types::RetrieveResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5477
|
+
#
|
5478
|
+
# * {Types::RetrieveResult#query_id #query_id} => String
|
5479
|
+
# * {Types::RetrieveResult#result_items #result_items} => Array<Types::RetrieveResultItem>
|
5480
|
+
#
|
5481
|
+
# @example Request syntax with placeholder values
|
5482
|
+
#
|
5483
|
+
# resp = client.retrieve({
|
5484
|
+
# index_id: "IndexId", # required
|
5485
|
+
# query_text: "QueryText", # required
|
5486
|
+
# attribute_filter: {
|
5487
|
+
# and_all_filters: [
|
5488
|
+
# {
|
5489
|
+
# # recursive AttributeFilter
|
5490
|
+
# },
|
5491
|
+
# ],
|
5492
|
+
# or_all_filters: [
|
5493
|
+
# {
|
5494
|
+
# # recursive AttributeFilter
|
5495
|
+
# },
|
5496
|
+
# ],
|
5497
|
+
# not_filter: {
|
5498
|
+
# # recursive AttributeFilter
|
5499
|
+
# },
|
5500
|
+
# equals_to: {
|
5501
|
+
# key: "DocumentAttributeKey", # required
|
5502
|
+
# value: { # required
|
5503
|
+
# string_value: "DocumentAttributeStringValue",
|
5504
|
+
# string_list_value: ["String"],
|
5505
|
+
# long_value: 1,
|
5506
|
+
# date_value: Time.now,
|
5507
|
+
# },
|
5508
|
+
# },
|
5509
|
+
# contains_all: {
|
5510
|
+
# key: "DocumentAttributeKey", # required
|
5511
|
+
# value: { # required
|
5512
|
+
# string_value: "DocumentAttributeStringValue",
|
5513
|
+
# string_list_value: ["String"],
|
5514
|
+
# long_value: 1,
|
5515
|
+
# date_value: Time.now,
|
5516
|
+
# },
|
5517
|
+
# },
|
5518
|
+
# contains_any: {
|
5519
|
+
# key: "DocumentAttributeKey", # required
|
5520
|
+
# value: { # required
|
5521
|
+
# string_value: "DocumentAttributeStringValue",
|
5522
|
+
# string_list_value: ["String"],
|
5523
|
+
# long_value: 1,
|
5524
|
+
# date_value: Time.now,
|
5525
|
+
# },
|
5526
|
+
# },
|
5527
|
+
# greater_than: {
|
5528
|
+
# key: "DocumentAttributeKey", # required
|
5529
|
+
# value: { # required
|
5530
|
+
# string_value: "DocumentAttributeStringValue",
|
5531
|
+
# string_list_value: ["String"],
|
5532
|
+
# long_value: 1,
|
5533
|
+
# date_value: Time.now,
|
5534
|
+
# },
|
5535
|
+
# },
|
5536
|
+
# greater_than_or_equals: {
|
5537
|
+
# key: "DocumentAttributeKey", # required
|
5538
|
+
# value: { # required
|
5539
|
+
# string_value: "DocumentAttributeStringValue",
|
5540
|
+
# string_list_value: ["String"],
|
5541
|
+
# long_value: 1,
|
5542
|
+
# date_value: Time.now,
|
5543
|
+
# },
|
5544
|
+
# },
|
5545
|
+
# less_than: {
|
5546
|
+
# key: "DocumentAttributeKey", # required
|
5547
|
+
# value: { # required
|
5548
|
+
# string_value: "DocumentAttributeStringValue",
|
5549
|
+
# string_list_value: ["String"],
|
5550
|
+
# long_value: 1,
|
5551
|
+
# date_value: Time.now,
|
5552
|
+
# },
|
5553
|
+
# },
|
5554
|
+
# less_than_or_equals: {
|
5555
|
+
# key: "DocumentAttributeKey", # required
|
5556
|
+
# value: { # required
|
5557
|
+
# string_value: "DocumentAttributeStringValue",
|
5558
|
+
# string_list_value: ["String"],
|
5559
|
+
# long_value: 1,
|
5560
|
+
# date_value: Time.now,
|
5561
|
+
# },
|
5562
|
+
# },
|
5563
|
+
# },
|
5564
|
+
# requested_document_attributes: ["DocumentAttributeKey"],
|
5565
|
+
# document_relevance_override_configurations: [
|
5566
|
+
# {
|
5567
|
+
# name: "DocumentMetadataConfigurationName", # required
|
5568
|
+
# relevance: { # required
|
5569
|
+
# freshness: false,
|
5570
|
+
# importance: 1,
|
5571
|
+
# duration: "Duration",
|
5572
|
+
# rank_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
5573
|
+
# value_importance_map: {
|
5574
|
+
# "ValueImportanceMapKey" => 1,
|
5575
|
+
# },
|
5576
|
+
# },
|
5577
|
+
# },
|
5578
|
+
# ],
|
5579
|
+
# page_number: 1,
|
5580
|
+
# page_size: 1,
|
5581
|
+
# user_context: {
|
5582
|
+
# token: "Token",
|
5583
|
+
# user_id: "PrincipalName",
|
5584
|
+
# groups: ["PrincipalName"],
|
5585
|
+
# data_source_groups: [
|
5586
|
+
# {
|
5587
|
+
# group_id: "PrincipalName", # required
|
5588
|
+
# data_source_id: "DataSourceId", # required
|
5589
|
+
# },
|
5590
|
+
# ],
|
5591
|
+
# },
|
5592
|
+
# })
|
5593
|
+
#
|
5594
|
+
# @example Response structure
|
5595
|
+
#
|
5596
|
+
# resp.query_id #=> String
|
5597
|
+
# resp.result_items #=> Array
|
5598
|
+
# resp.result_items[0].id #=> String
|
5599
|
+
# resp.result_items[0].document_id #=> String
|
5600
|
+
# resp.result_items[0].document_title #=> String
|
5601
|
+
# resp.result_items[0].content #=> String
|
5602
|
+
# resp.result_items[0].document_uri #=> String
|
5603
|
+
# resp.result_items[0].document_attributes #=> Array
|
5604
|
+
# resp.result_items[0].document_attributes[0].key #=> String
|
5605
|
+
# resp.result_items[0].document_attributes[0].value.string_value #=> String
|
5606
|
+
# resp.result_items[0].document_attributes[0].value.string_list_value #=> Array
|
5607
|
+
# resp.result_items[0].document_attributes[0].value.string_list_value[0] #=> String
|
5608
|
+
# resp.result_items[0].document_attributes[0].value.long_value #=> Integer
|
5609
|
+
# resp.result_items[0].document_attributes[0].value.date_value #=> Time
|
5610
|
+
#
|
5611
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/Retrieve AWS API Documentation
|
5612
|
+
#
|
5613
|
+
# @overload retrieve(params = {})
|
5614
|
+
# @param [Hash] params ({})
|
5615
|
+
def retrieve(params = {}, options = {})
|
5616
|
+
req = build_request(:retrieve, params)
|
5617
|
+
req.send_request(options)
|
5618
|
+
end
|
5619
|
+
|
5397
5620
|
# Starts a synchronization job for a data source connector. If a
|
5398
5621
|
# synchronization job is already in progress, Amazon Kendra returns a
|
5399
5622
|
# `ResourceInUseException` exception.
|
@@ -6940,7 +7163,7 @@ module Aws::Kendra
|
|
6940
7163
|
params: params,
|
6941
7164
|
config: config)
|
6942
7165
|
context[:gem_name] = 'aws-sdk-kendra'
|
6943
|
-
context[:gem_version] = '1.
|
7166
|
+
context[:gem_version] = '1.69.0'
|
6944
7167
|
Seahorse::Client::Request.new(handlers, context)
|
6945
7168
|
end
|
6946
7169
|
|
@@ -96,6 +96,7 @@ module Aws::Kendra
|
|
96
96
|
ConfluenceSpaceToIndexFieldMapping = Shapes::StructureShape.new(name: 'ConfluenceSpaceToIndexFieldMapping')
|
97
97
|
ConfluenceVersion = Shapes::StringShape.new(name: 'ConfluenceVersion')
|
98
98
|
ConnectionConfiguration = Shapes::StructureShape.new(name: 'ConnectionConfiguration')
|
99
|
+
Content = Shapes::StringShape.new(name: 'Content')
|
99
100
|
ContentSourceConfiguration = Shapes::StructureShape.new(name: 'ContentSourceConfiguration')
|
100
101
|
ContentType = Shapes::StringShape.new(name: 'ContentType')
|
101
102
|
Correction = Shapes::StructureShape.new(name: 'Correction')
|
@@ -208,6 +209,7 @@ module Aws::Kendra
|
|
208
209
|
DocumentRelevanceOverrideConfigurationList = Shapes::ListShape.new(name: 'DocumentRelevanceOverrideConfigurationList')
|
209
210
|
DocumentStatus = Shapes::StringShape.new(name: 'DocumentStatus')
|
210
211
|
DocumentStatusList = Shapes::ListShape.new(name: 'DocumentStatusList')
|
212
|
+
DocumentTitle = Shapes::StringShape.new(name: 'DocumentTitle')
|
211
213
|
DocumentsMetadataConfiguration = Shapes::StructureShape.new(name: 'DocumentsMetadataConfiguration')
|
212
214
|
Domain = Shapes::StringShape.new(name: 'Domain')
|
213
215
|
Duration = Shapes::StringShape.new(name: 'Duration')
|
@@ -438,6 +440,10 @@ module Aws::Kendra
|
|
438
440
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
439
441
|
ResourceUnavailableException = Shapes::StructureShape.new(name: 'ResourceUnavailableException')
|
440
442
|
ResultId = Shapes::StringShape.new(name: 'ResultId')
|
443
|
+
RetrieveRequest = Shapes::StructureShape.new(name: 'RetrieveRequest')
|
444
|
+
RetrieveResult = Shapes::StructureShape.new(name: 'RetrieveResult')
|
445
|
+
RetrieveResultItem = Shapes::StructureShape.new(name: 'RetrieveResultItem')
|
446
|
+
RetrieveResultItemList = Shapes::ListShape.new(name: 'RetrieveResultItemList')
|
441
447
|
RoleArn = Shapes::StringShape.new(name: 'RoleArn')
|
442
448
|
S3BucketName = Shapes::StringShape.new(name: 'S3BucketName')
|
443
449
|
S3DataSourceConfiguration = Shapes::StructureShape.new(name: 'S3DataSourceConfiguration')
|
@@ -1004,7 +1010,7 @@ module Aws::Kendra
|
|
1004
1010
|
DataSourceConfiguration.add_member(:quip_configuration, Shapes::ShapeRef.new(shape: QuipConfiguration, location_name: "QuipConfiguration"))
|
1005
1011
|
DataSourceConfiguration.add_member(:jira_configuration, Shapes::ShapeRef.new(shape: JiraConfiguration, location_name: "JiraConfiguration"))
|
1006
1012
|
DataSourceConfiguration.add_member(:git_hub_configuration, Shapes::ShapeRef.new(shape: GitHubConfiguration, location_name: "GitHubConfiguration"))
|
1007
|
-
DataSourceConfiguration.add_member(:alfresco_configuration, Shapes::ShapeRef.new(shape: AlfrescoConfiguration, location_name: "AlfrescoConfiguration"))
|
1013
|
+
DataSourceConfiguration.add_member(:alfresco_configuration, Shapes::ShapeRef.new(shape: AlfrescoConfiguration, deprecated: true, location_name: "AlfrescoConfiguration", metadata: {"deprecatedMessage"=>"Deprecated AlfrescoConfiguration in favor of TemplateConfiguration"}))
|
1008
1014
|
DataSourceConfiguration.add_member(:template_configuration, Shapes::ShapeRef.new(shape: TemplateConfiguration, location_name: "TemplateConfiguration"))
|
1009
1015
|
DataSourceConfiguration.struct_class = Types::DataSourceConfiguration
|
1010
1016
|
|
@@ -1967,6 +1973,30 @@ module Aws::Kendra
|
|
1967
1973
|
ResourceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
1968
1974
|
ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
|
1969
1975
|
|
1976
|
+
RetrieveRequest.add_member(:index_id, Shapes::ShapeRef.new(shape: IndexId, required: true, location_name: "IndexId"))
|
1977
|
+
RetrieveRequest.add_member(:query_text, Shapes::ShapeRef.new(shape: QueryText, required: true, location_name: "QueryText"))
|
1978
|
+
RetrieveRequest.add_member(:attribute_filter, Shapes::ShapeRef.new(shape: AttributeFilter, location_name: "AttributeFilter"))
|
1979
|
+
RetrieveRequest.add_member(:requested_document_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeKeyList, location_name: "RequestedDocumentAttributes"))
|
1980
|
+
RetrieveRequest.add_member(:document_relevance_override_configurations, Shapes::ShapeRef.new(shape: DocumentRelevanceOverrideConfigurationList, location_name: "DocumentRelevanceOverrideConfigurations"))
|
1981
|
+
RetrieveRequest.add_member(:page_number, Shapes::ShapeRef.new(shape: Integer, location_name: "PageNumber"))
|
1982
|
+
RetrieveRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: Integer, location_name: "PageSize"))
|
1983
|
+
RetrieveRequest.add_member(:user_context, Shapes::ShapeRef.new(shape: UserContext, location_name: "UserContext"))
|
1984
|
+
RetrieveRequest.struct_class = Types::RetrieveRequest
|
1985
|
+
|
1986
|
+
RetrieveResult.add_member(:query_id, Shapes::ShapeRef.new(shape: QueryId, location_name: "QueryId"))
|
1987
|
+
RetrieveResult.add_member(:result_items, Shapes::ShapeRef.new(shape: RetrieveResultItemList, location_name: "ResultItems"))
|
1988
|
+
RetrieveResult.struct_class = Types::RetrieveResult
|
1989
|
+
|
1990
|
+
RetrieveResultItem.add_member(:id, Shapes::ShapeRef.new(shape: ResultId, location_name: "Id"))
|
1991
|
+
RetrieveResultItem.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, location_name: "DocumentId"))
|
1992
|
+
RetrieveResultItem.add_member(:document_title, Shapes::ShapeRef.new(shape: DocumentTitle, location_name: "DocumentTitle"))
|
1993
|
+
RetrieveResultItem.add_member(:content, Shapes::ShapeRef.new(shape: Content, location_name: "Content"))
|
1994
|
+
RetrieveResultItem.add_member(:document_uri, Shapes::ShapeRef.new(shape: Url, location_name: "DocumentURI"))
|
1995
|
+
RetrieveResultItem.add_member(:document_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeList, location_name: "DocumentAttributes"))
|
1996
|
+
RetrieveResultItem.struct_class = Types::RetrieveResultItem
|
1997
|
+
|
1998
|
+
RetrieveResultItemList.member = Shapes::ShapeRef.new(shape: RetrieveResultItem)
|
1999
|
+
|
1970
2000
|
S3DataSourceConfiguration.add_member(:bucket_name, Shapes::ShapeRef.new(shape: S3BucketName, required: true, location_name: "BucketName"))
|
1971
2001
|
S3DataSourceConfiguration.add_member(:inclusion_prefixes, Shapes::ShapeRef.new(shape: DataSourceInclusionsExclusionsStrings, location_name: "InclusionPrefixes"))
|
1972
2002
|
S3DataSourceConfiguration.add_member(:inclusion_patterns, Shapes::ShapeRef.new(shape: DataSourceInclusionsExclusionsStrings, location_name: "InclusionPatterns"))
|
@@ -3207,6 +3237,21 @@ module Aws::Kendra
|
|
3207
3237
|
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
3208
3238
|
end)
|
3209
3239
|
|
3240
|
+
api.add_operation(:retrieve, Seahorse::Model::Operation.new.tap do |o|
|
3241
|
+
o.name = "Retrieve"
|
3242
|
+
o.http_method = "POST"
|
3243
|
+
o.http_request_uri = "/"
|
3244
|
+
o.input = Shapes::ShapeRef.new(shape: RetrieveRequest)
|
3245
|
+
o.output = Shapes::ShapeRef.new(shape: RetrieveResult)
|
3246
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
3247
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
3248
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
3249
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
3250
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
3251
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
3252
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
3253
|
+
end)
|
3254
|
+
|
3210
3255
|
api.add_operation(:start_data_source_sync_job, Seahorse::Model::Operation.new.tap do |o|
|
3211
3256
|
o.name = "StartDataSourceSyncJob"
|
3212
3257
|
o.http_method = "POST"
|
@@ -740,6 +740,20 @@ module Aws::Kendra
|
|
740
740
|
end
|
741
741
|
end
|
742
742
|
|
743
|
+
class Retrieve
|
744
|
+
def self.build(context)
|
745
|
+
unless context.config.regional_endpoint
|
746
|
+
endpoint = context.config.endpoint.to_s
|
747
|
+
end
|
748
|
+
Aws::Kendra::EndpointParameters.new(
|
749
|
+
region: context.config.region,
|
750
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
751
|
+
use_fips: context.config.use_fips_endpoint,
|
752
|
+
endpoint: endpoint,
|
753
|
+
)
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
743
757
|
class StartDataSourceSyncJob
|
744
758
|
def self.build(context)
|
745
759
|
unless context.config.regional_endpoint
|
@@ -160,6 +160,8 @@ module Aws::Kendra
|
|
160
160
|
Aws::Kendra::Endpoints::PutPrincipalMapping.build(context)
|
161
161
|
when :query
|
162
162
|
Aws::Kendra::Endpoints::Query.build(context)
|
163
|
+
when :retrieve
|
164
|
+
Aws::Kendra::Endpoints::Retrieve.build(context)
|
163
165
|
when :start_data_source_sync_job
|
164
166
|
Aws::Kendra::Endpoints::StartDataSourceSyncJob.build(context)
|
165
167
|
when :stop_data_source_sync_job
|
data/lib/aws-sdk-kendra/types.rb
CHANGED
@@ -119,15 +119,15 @@ module Aws::Kendra
|
|
119
119
|
# Provides the configuration information to connect to Alfresco as your
|
120
120
|
# data source.
|
121
121
|
#
|
122
|
-
# <note markdown="1">
|
123
|
-
#
|
124
|
-
#
|
122
|
+
# <note markdown="1"> Support for `AlfrescoConfiguration` ended May 2023. We recommend
|
123
|
+
# migrating to or using the Alfresco data source template schema /
|
124
|
+
# [TemplateConfiguration][1] API.
|
125
125
|
#
|
126
126
|
# </note>
|
127
127
|
#
|
128
128
|
#
|
129
129
|
#
|
130
|
-
# [1]:
|
130
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/APIReference/API_TemplateConfiguration.html
|
131
131
|
#
|
132
132
|
# @!attribute [rw] site_url
|
133
133
|
# The URL of the Alfresco site. For example, *https://hostname:8080*.
|
@@ -2066,6 +2066,8 @@ module Aws::Kendra
|
|
2066
2066
|
# format, a CSV format that includes customs attributes in a header,
|
2067
2067
|
# and a JSON format that includes custom attributes.
|
2068
2068
|
#
|
2069
|
+
# The default format is CSV.
|
2070
|
+
#
|
2069
2071
|
# The format must match the format of the file stored in the S3 bucket
|
2070
2072
|
# identified in the `S3Path` parameter.
|
2071
2073
|
#
|
@@ -2634,6 +2636,14 @@ module Aws::Kendra
|
|
2634
2636
|
# @!attribute [rw] alfresco_configuration
|
2635
2637
|
# Provides the configuration information to connect to Alfresco as
|
2636
2638
|
# your data source.
|
2639
|
+
#
|
2640
|
+
# Support for `AlfrescoConfiguration` ended May 2023. We recommend
|
2641
|
+
# migrating to or using the Alfresco data source template schema /
|
2642
|
+
# [TemplateConfiguration][1] API.
|
2643
|
+
#
|
2644
|
+
#
|
2645
|
+
#
|
2646
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/APIReference/API_TemplateConfiguration.html
|
2637
2647
|
# @return [Types::AlfrescoConfiguration]
|
2638
2648
|
#
|
2639
2649
|
# @!attribute [rw] template_configuration
|
@@ -4246,6 +4256,10 @@ module Aws::Kendra
|
|
4246
4256
|
#
|
4247
4257
|
# @!attribute [rw] content_type
|
4248
4258
|
# The file type of the document in the `Blob` field.
|
4259
|
+
#
|
4260
|
+
# If you want to index snippets or subsets of HTML documents instead
|
4261
|
+
# of the entirety of the HTML documents, you must add the `HTML` start
|
4262
|
+
# and closing tags (`<HTML>content</HTML>`) around the content.
|
4249
4263
|
# @return [String]
|
4250
4264
|
#
|
4251
4265
|
# @!attribute [rw] access_control_configuration_id
|
@@ -7487,8 +7501,7 @@ module Aws::Kendra
|
|
7487
7501
|
end
|
7488
7502
|
|
7489
7503
|
# @!attribute [rw] index_id
|
7490
|
-
# The identifier of the index
|
7491
|
-
# the response from the `CreateIndex` API.
|
7504
|
+
# The identifier of the index for the search.
|
7492
7505
|
# @return [String]
|
7493
7506
|
#
|
7494
7507
|
# @!attribute [rw] query_text
|
@@ -7499,48 +7512,43 @@ module Aws::Kendra
|
|
7499
7512
|
# @return [String]
|
7500
7513
|
#
|
7501
7514
|
# @!attribute [rw] attribute_filter
|
7502
|
-
#
|
7515
|
+
# Filters search results by document fields/attributes. You can only
|
7503
7516
|
# provide one attribute filter; however, the `AndAllFilters`,
|
7504
7517
|
# `NotFilter`, and `OrAllFilters` parameters contain a list of other
|
7505
7518
|
# filters.
|
7506
7519
|
#
|
7507
|
-
# The `AttributeFilter` parameter
|
7520
|
+
# The `AttributeFilter` parameter means you can create a set of
|
7508
7521
|
# filtering rules that a document must satisfy to be included in the
|
7509
7522
|
# query results.
|
7510
7523
|
# @return [Types::AttributeFilter]
|
7511
7524
|
#
|
7512
7525
|
# @!attribute [rw] facets
|
7513
|
-
# An array of documents attributes
|
7514
|
-
# each
|
7515
|
-
# search.
|
7526
|
+
# An array of documents fields/attributes for faceted search. Amazon
|
7527
|
+
# Kendra returns a count for each field key specified. This helps your
|
7528
|
+
# users narrow their search.
|
7516
7529
|
# @return [Array<Types::Facet>]
|
7517
7530
|
#
|
7518
7531
|
# @!attribute [rw] requested_document_attributes
|
7519
|
-
# An array of document attributes to include in the response.
|
7520
|
-
# limit the response to include certain document
|
7521
|
-
# default all document attributes are included in the response.
|
7532
|
+
# An array of document fields/attributes to include in the response.
|
7533
|
+
# You can limit the response to include certain document fields. By
|
7534
|
+
# default, all document attributes are included in the response.
|
7522
7535
|
# @return [Array<String>]
|
7523
7536
|
#
|
7524
7537
|
# @!attribute [rw] query_result_type_filter
|
7525
|
-
# Sets the type of query. Only results for the
|
7526
|
-
# are returned.
|
7538
|
+
# Sets the type of query result or response. Only results for the
|
7539
|
+
# specified type are returned.
|
7527
7540
|
# @return [String]
|
7528
7541
|
#
|
7529
7542
|
# @!attribute [rw] document_relevance_override_configurations
|
7530
|
-
# Overrides relevance tuning configurations of fields
|
7531
|
-
#
|
7543
|
+
# Overrides relevance tuning configurations of fields/attributes set
|
7544
|
+
# at the index level.
|
7532
7545
|
#
|
7533
7546
|
# If you use this API to override the relevance tuning configured at
|
7534
7547
|
# the index level, but there is no relevance tuning configured at the
|
7535
7548
|
# index level, then Amazon Kendra does not apply any relevance tuning.
|
7536
7549
|
#
|
7537
|
-
# If there is relevance tuning configured at the index level, but you
|
7538
|
-
# do not use this API to override any relevance tuning in the index,
|
7539
|
-
# then Amazon Kendra uses the relevance tuning that is configured at
|
7540
|
-
# the index level.
|
7541
|
-
#
|
7542
7550
|
# If there is relevance tuning configured for fields at the index
|
7543
|
-
# level,
|
7551
|
+
# level, and you use this API to override only some of these fields,
|
7544
7552
|
# then for the fields you did not override, the importance is set to
|
7545
7553
|
# 1.
|
7546
7554
|
# @return [Array<Types::DocumentRelevanceConfiguration>]
|
@@ -7605,8 +7613,12 @@ module Aws::Kendra
|
|
7605
7613
|
end
|
7606
7614
|
|
7607
7615
|
# @!attribute [rw] query_id
|
7608
|
-
# The identifier for the search. You use `QueryId` to identify
|
7609
|
-
# search when using the
|
7616
|
+
# The identifier for the search. You also use `QueryId` to identify
|
7617
|
+
# the search when using the [SubmitFeedback][1] API.
|
7618
|
+
#
|
7619
|
+
#
|
7620
|
+
#
|
7621
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/APIReference/API_SubmitFeedback.html
|
7610
7622
|
# @return [String]
|
7611
7623
|
#
|
7612
7624
|
# @!attribute [rw] result_items
|
@@ -7615,12 +7627,12 @@ module Aws::Kendra
|
|
7615
7627
|
#
|
7616
7628
|
# @!attribute [rw] facet_results
|
7617
7629
|
# Contains the facet results. A `FacetResult` contains the counts for
|
7618
|
-
# each attribute key that was specified in the `Facets` input
|
7630
|
+
# each field/attribute key that was specified in the `Facets` input
|
7619
7631
|
# parameter.
|
7620
7632
|
# @return [Array<Types::FacetResult>]
|
7621
7633
|
#
|
7622
7634
|
# @!attribute [rw] total_number_of_results
|
7623
|
-
# The total number of items found by the search
|
7635
|
+
# The total number of items found by the search. However, you can only
|
7624
7636
|
# retrieve up to 100 items. For example, if the search found 192
|
7625
7637
|
# items, you can only retrieve the first 100 of the items.
|
7626
7638
|
# @return [Integer]
|
@@ -7688,7 +7700,8 @@ module Aws::Kendra
|
|
7688
7700
|
# @return [String]
|
7689
7701
|
#
|
7690
7702
|
# @!attribute [rw] additional_attributes
|
7691
|
-
# One or more additional attributes associated with the query
|
7703
|
+
# One or more additional fields/attributes associated with the query
|
7704
|
+
# result.
|
7692
7705
|
# @return [Array<Types::AdditionalResultAttribute>]
|
7693
7706
|
#
|
7694
7707
|
# @!attribute [rw] document_id
|
@@ -7710,27 +7723,27 @@ module Aws::Kendra
|
|
7710
7723
|
# @return [String]
|
7711
7724
|
#
|
7712
7725
|
# @!attribute [rw] document_attributes
|
7713
|
-
# An array of document attributes assigned to a document in the
|
7714
|
-
# results. For example, the document author (`_author`) or the
|
7715
|
-
# URI (`_source_uri`) of the document.
|
7726
|
+
# An array of document fields/attributes assigned to a document in the
|
7727
|
+
# search results. For example, the document author (`_author`) or the
|
7728
|
+
# source URI (`_source_uri`) of the document.
|
7716
7729
|
# @return [Array<Types::DocumentAttribute>]
|
7717
7730
|
#
|
7718
7731
|
# @!attribute [rw] score_attributes
|
7719
|
-
# Indicates the confidence
|
7720
|
-
#
|
7721
|
-
#
|
7722
|
-
#
|
7732
|
+
# Indicates the confidence level of Amazon Kendra providing a relevant
|
7733
|
+
# result for the query. Each result is placed into a bin that
|
7734
|
+
# indicates the confidence, `VERY_HIGH`, `HIGH`, `MEDIUM` and `LOW`.
|
7735
|
+
# You can use the score to determine if a response meets the
|
7723
7736
|
# confidence needed for your application.
|
7724
7737
|
#
|
7725
7738
|
# The field is only set to `LOW` when the `Type` field is set to
|
7726
|
-
# `DOCUMENT` and Amazon Kendra is not confident that the result
|
7727
|
-
#
|
7739
|
+
# `DOCUMENT` and Amazon Kendra is not confident that the result is
|
7740
|
+
# relevant to the query.
|
7728
7741
|
# @return [Types::ScoreAttributes]
|
7729
7742
|
#
|
7730
7743
|
# @!attribute [rw] feedback_token
|
7731
7744
|
# A token that identifies a particular result from a particular query.
|
7732
7745
|
# Use this token to provide click-through feedback for the result. For
|
7733
|
-
# more information, see [Submitting feedback
|
7746
|
+
# more information, see [Submitting feedback][1].
|
7734
7747
|
#
|
7735
7748
|
#
|
7736
7749
|
#
|
@@ -8089,6 +8102,145 @@ module Aws::Kendra
|
|
8089
8102
|
include Aws::Structure
|
8090
8103
|
end
|
8091
8104
|
|
8105
|
+
# @!attribute [rw] index_id
|
8106
|
+
# The identifier of the index to retrieve relevant passages for the
|
8107
|
+
# search.
|
8108
|
+
# @return [String]
|
8109
|
+
#
|
8110
|
+
# @!attribute [rw] query_text
|
8111
|
+
# The input query text to retrieve relevant passages for the search.
|
8112
|
+
# Amazon Kendra truncates queries at 30 token words, which excludes
|
8113
|
+
# punctuation and stop words. Truncation still applies if you use
|
8114
|
+
# Boolean or more advanced, complex queries.
|
8115
|
+
# @return [String]
|
8116
|
+
#
|
8117
|
+
# @!attribute [rw] attribute_filter
|
8118
|
+
# Filters search results by document fields/attributes. You can only
|
8119
|
+
# provide one attribute filter; however, the `AndAllFilters`,
|
8120
|
+
# `NotFilter`, and `OrAllFilters` parameters contain a list of other
|
8121
|
+
# filters.
|
8122
|
+
#
|
8123
|
+
# The `AttributeFilter` parameter means you can create a set of
|
8124
|
+
# filtering rules that a document must satisfy to be included in the
|
8125
|
+
# query results.
|
8126
|
+
# @return [Types::AttributeFilter]
|
8127
|
+
#
|
8128
|
+
# @!attribute [rw] requested_document_attributes
|
8129
|
+
# A list of document fields/attributes to include in the response. You
|
8130
|
+
# can limit the response to include certain document fields. By
|
8131
|
+
# default, all document fields are included in the response.
|
8132
|
+
# @return [Array<String>]
|
8133
|
+
#
|
8134
|
+
# @!attribute [rw] document_relevance_override_configurations
|
8135
|
+
# Overrides relevance tuning configurations of fields/attributes set
|
8136
|
+
# at the index level.
|
8137
|
+
#
|
8138
|
+
# If you use this API to override the relevance tuning configured at
|
8139
|
+
# the index level, but there is no relevance tuning configured at the
|
8140
|
+
# index level, then Amazon Kendra does not apply any relevance tuning.
|
8141
|
+
#
|
8142
|
+
# If there is relevance tuning configured for fields at the index
|
8143
|
+
# level, and you use this API to override only some of these fields,
|
8144
|
+
# then for the fields you did not override, the importance is set to
|
8145
|
+
# 1.
|
8146
|
+
# @return [Array<Types::DocumentRelevanceConfiguration>]
|
8147
|
+
#
|
8148
|
+
# @!attribute [rw] page_number
|
8149
|
+
# Retrieved relevant passages are returned in pages the size of the
|
8150
|
+
# `PageSize` parameter. By default, Amazon Kendra returns the first
|
8151
|
+
# page of results. Use this parameter to get result pages after the
|
8152
|
+
# first one.
|
8153
|
+
# @return [Integer]
|
8154
|
+
#
|
8155
|
+
# @!attribute [rw] page_size
|
8156
|
+
# Sets the number of retrieved relevant passages that are returned in
|
8157
|
+
# each page of results. The default page size is 10. The maximum
|
8158
|
+
# number of results returned is 100. If you ask for more than 100
|
8159
|
+
# results, only 100 are returned.
|
8160
|
+
# @return [Integer]
|
8161
|
+
#
|
8162
|
+
# @!attribute [rw] user_context
|
8163
|
+
# The user context token or user and group information.
|
8164
|
+
# @return [Types::UserContext]
|
8165
|
+
#
|
8166
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/RetrieveRequest AWS API Documentation
|
8167
|
+
#
|
8168
|
+
class RetrieveRequest < Struct.new(
|
8169
|
+
:index_id,
|
8170
|
+
:query_text,
|
8171
|
+
:attribute_filter,
|
8172
|
+
:requested_document_attributes,
|
8173
|
+
:document_relevance_override_configurations,
|
8174
|
+
:page_number,
|
8175
|
+
:page_size,
|
8176
|
+
:user_context)
|
8177
|
+
SENSITIVE = []
|
8178
|
+
include Aws::Structure
|
8179
|
+
end
|
8180
|
+
|
8181
|
+
# @!attribute [rw] query_id
|
8182
|
+
# The identifier of query used for the search. You also use `QueryId`
|
8183
|
+
# to identify the search when using the [Submitfeedback][1] API.
|
8184
|
+
#
|
8185
|
+
#
|
8186
|
+
#
|
8187
|
+
# [1]: https://docs.aws.amazon.com/kendra/latest/APIReference/API_SubmitFeedback.html
|
8188
|
+
# @return [String]
|
8189
|
+
#
|
8190
|
+
# @!attribute [rw] result_items
|
8191
|
+
# The results of the retrieved relevant passages for the search.
|
8192
|
+
# @return [Array<Types::RetrieveResultItem>]
|
8193
|
+
#
|
8194
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/RetrieveResult AWS API Documentation
|
8195
|
+
#
|
8196
|
+
class RetrieveResult < Struct.new(
|
8197
|
+
:query_id,
|
8198
|
+
:result_items)
|
8199
|
+
SENSITIVE = []
|
8200
|
+
include Aws::Structure
|
8201
|
+
end
|
8202
|
+
|
8203
|
+
# A single retrieved relevant passage result.
|
8204
|
+
#
|
8205
|
+
# @!attribute [rw] id
|
8206
|
+
# The identifier of the relevant passage result.
|
8207
|
+
# @return [String]
|
8208
|
+
#
|
8209
|
+
# @!attribute [rw] document_id
|
8210
|
+
# The identifier of the document.
|
8211
|
+
# @return [String]
|
8212
|
+
#
|
8213
|
+
# @!attribute [rw] document_title
|
8214
|
+
# The title of the document.
|
8215
|
+
# @return [String]
|
8216
|
+
#
|
8217
|
+
# @!attribute [rw] content
|
8218
|
+
# The contents of the relevant passage.
|
8219
|
+
# @return [String]
|
8220
|
+
#
|
8221
|
+
# @!attribute [rw] document_uri
|
8222
|
+
# The URI of the original location of the document.
|
8223
|
+
# @return [String]
|
8224
|
+
#
|
8225
|
+
# @!attribute [rw] document_attributes
|
8226
|
+
# An array of document fields/attributes assigned to a document in the
|
8227
|
+
# search results. For example, the document author (`_author`) or the
|
8228
|
+
# source URI (`_source_uri`) of the document.
|
8229
|
+
# @return [Array<Types::DocumentAttribute>]
|
8230
|
+
#
|
8231
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/RetrieveResultItem AWS API Documentation
|
8232
|
+
#
|
8233
|
+
class RetrieveResultItem < Struct.new(
|
8234
|
+
:id,
|
8235
|
+
:document_id,
|
8236
|
+
:document_title,
|
8237
|
+
:content,
|
8238
|
+
:document_uri,
|
8239
|
+
:document_attributes)
|
8240
|
+
SENSITIVE = []
|
8241
|
+
include Aws::Structure
|
8242
|
+
end
|
8243
|
+
|
8092
8244
|
# Provides the configuration information to connect to an Amazon S3
|
8093
8245
|
# bucket.
|
8094
8246
|
#
|
@@ -8520,10 +8672,10 @@ module Aws::Kendra
|
|
8520
8672
|
end
|
8521
8673
|
|
8522
8674
|
# Provides a relative ranking that indicates how confident Amazon Kendra
|
8523
|
-
# is that the response
|
8675
|
+
# is that the response is relevant to the query.
|
8524
8676
|
#
|
8525
8677
|
# @!attribute [rw] score_confidence
|
8526
|
-
# A relative ranking for how
|
8678
|
+
# A relative ranking for how relevant the response is to the query.
|
8527
8679
|
# @return [String]
|
8528
8680
|
#
|
8529
8681
|
# @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/ScoreAttributes AWS API Documentation
|
@@ -8596,15 +8748,15 @@ module Aws::Kendra
|
|
8596
8748
|
# @!attribute [rw] web_crawler_mode
|
8597
8749
|
# You can choose one of the following modes:
|
8598
8750
|
#
|
8599
|
-
# * `HOST_ONLY
|
8600
|
-
#
|
8751
|
+
# * `HOST_ONLY`—crawl only the website host names. For example, if the
|
8752
|
+
# seed URL is "abc.example.com", then only URLs with host name
|
8601
8753
|
# "abc.example.com" are crawled.
|
8602
8754
|
#
|
8603
|
-
# * `SUBDOMAINS
|
8755
|
+
# * `SUBDOMAINS`—crawl the website host names with subdomains. For
|
8604
8756
|
# example, if the seed URL is "abc.example.com", then
|
8605
8757
|
# "a.abc.example.com" and "b.abc.example.com" are also crawled.
|
8606
8758
|
#
|
8607
|
-
# * `EVERYTHING
|
8759
|
+
# * `EVERYTHING`—crawl the website host names with subdomains and
|
8608
8760
|
# other domains that the web pages link to.
|
8609
8761
|
#
|
8610
8762
|
# The default mode is set to `HOST_ONLY`.
|
@@ -8709,27 +8861,21 @@ module Aws::Kendra
|
|
8709
8861
|
# @return [Boolean]
|
8710
8862
|
#
|
8711
8863
|
# @!attribute [rw] include_attachment_file_patterns
|
8712
|
-
# A list of regular expression patterns to include
|
8713
|
-
#
|
8714
|
-
#
|
8715
|
-
#
|
8716
|
-
#
|
8717
|
-
#
|
8718
|
-
#
|
8719
|
-
# The regex is applied to the field specified in the
|
8720
|
-
# `PatternTargetField`.
|
8864
|
+
# A list of regular expression patterns applied to include knowledge
|
8865
|
+
# article attachments. Attachments that match the patterns are
|
8866
|
+
# included in the index. Items that don't match the patterns are
|
8867
|
+
# excluded from the index. If an item matches both an inclusion and
|
8868
|
+
# exclusion pattern, the exclusion pattern takes precedence and the
|
8869
|
+
# item isn't included in the index.
|
8721
8870
|
# @return [Array<String>]
|
8722
8871
|
#
|
8723
8872
|
# @!attribute [rw] exclude_attachment_file_patterns
|
8724
|
-
# A list of regular expression patterns to exclude certain
|
8725
|
-
#
|
8726
|
-
#
|
8727
|
-
#
|
8728
|
-
#
|
8729
|
-
#
|
8730
|
-
#
|
8731
|
-
# The regex is applied to the field specified in the
|
8732
|
-
# `PatternTargetField`.
|
8873
|
+
# A list of regular expression patterns applied to exclude certain
|
8874
|
+
# knowledge article attachments. Attachments that match the patterns
|
8875
|
+
# are excluded from the index. Items that don't match the patterns
|
8876
|
+
# are included in the index. If an item matches both an inclusion and
|
8877
|
+
# exclusion pattern, the exclusion pattern takes precedence and the
|
8878
|
+
# item isn't included in the index.
|
8733
8879
|
# @return [Array<String>]
|
8734
8880
|
#
|
8735
8881
|
# @!attribute [rw] document_data_field_name
|
@@ -10564,15 +10710,9 @@ module Aws::Kendra
|
|
10564
10710
|
# @return [Types::Urls]
|
10565
10711
|
#
|
10566
10712
|
# @!attribute [rw] crawl_depth
|
10567
|
-
#
|
10568
|
-
#
|
10569
|
-
#
|
10570
|
-
# For example, if a website has three levels—index level (the seed in
|
10571
|
-
# this example), sections level, and subsections level—and you are
|
10572
|
-
# only interested in crawling information up to the sections level
|
10573
|
-
# (levels 0-1), you can set your depth to 1.
|
10574
|
-
#
|
10575
|
-
# The default crawl depth is set to 2.
|
10713
|
+
# The 'depth' or number of levels from the seed level to crawl. For
|
10714
|
+
# example, the seed URL page is depth 1 and any hyperlinks on this
|
10715
|
+
# page that are also crawled are depth 2.
|
10576
10716
|
# @return [Integer]
|
10577
10717
|
#
|
10578
10718
|
# @!attribute [rw] max_links_per_page
|
data/lib/aws-sdk-kendra.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-kendra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.69.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.176.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.176.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|