aws-sdk-kendra 1.23.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13ef9deb75aa3e25a0f22eb8f435dc97249bbb0a9c8620310bcbccae155309ce
4
- data.tar.gz: 32b19f5f2b1295864ebc017073de00eded9ef29f7385db7ebe114d3b2d085143
3
+ metadata.gz: f3cba49ab0bd0ebf0402ed5cfa575f7974f0cc2237808f474615a3d2bbc09ce6
4
+ data.tar.gz: 8cab555f2b156c2997cc48c51d7a85f76ed74b255ec013d5fdf01860ba4e31da
5
5
  SHA512:
6
- metadata.gz: ed3c5d1d147b776e2b8e177b2f0de93dcb226d0cb8a56f1de887e33811fd85cb43dedf3c38121073c0130425450f72e3032b4eb352a3ec923a60a900c9565f1f
7
- data.tar.gz: '0996fde8b0b7b298047a6a5d98e6d08d6b396288b9405c6f25be384cad828b34e073691f4857df3181624d4eecff36867457c1dad33199a3c4b6b477497d7c82'
6
+ metadata.gz: 4476c80222605da34edc81d2cfc7efe2209a574c067bace3c9bf23a872c37bc100fa34d2e75934db17c6c3ca532a659cf5be21d1ba85e610768c05266aafaaad
7
+ data.tar.gz: 59a7170b16fea52f95bc57e0f9be6ebdb411f9d05ed444f7811ed9ddf41f5ac6d7d375c3cc0e7649c0d7d145839349a184169549494ea0fe7f0ece5db2affb38
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.24.0 (2021-04-21)
5
+ ------------------
6
+
7
+ * Feature - Amazon Kendra now enables users to override index-level boosting configurations for each query.
8
+
4
9
  1.23.0 (2021-04-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.23.0
1
+ 1.24.0
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-kendra/customizations'
48
48
  # @!group service
49
49
  module Aws::Kendra
50
50
 
51
- GEM_VERSION = '1.23.0'
51
+ GEM_VERSION = '1.24.0'
52
52
 
53
53
  end
@@ -2018,6 +2018,23 @@ module Aws::Kendra
2018
2018
  # Sets the type of query. Only results for the specified query type are
2019
2019
  # returned.
2020
2020
  #
2021
+ # @option params [Array<Types::DocumentRelevanceConfiguration>] :document_relevance_override_configurations
2022
+ # Overrides relevance tuning configurations of fields or attributes set
2023
+ # at the index level.
2024
+ #
2025
+ # If you use this API to override the relevance tuning configured at the
2026
+ # index level, but there is no relevance tuning configured at the index
2027
+ # level, then Amazon Kendra does not apply any relevance tuning.
2028
+ #
2029
+ # If there is relevance tuning configured at the index level, but you do
2030
+ # not use this API to override any relevance tuning in the index, then
2031
+ # Amazon Kendra uses the relevance tuning that is configured at the
2032
+ # index level.
2033
+ #
2034
+ # If there is relevance tuning configured for fields at the index level,
2035
+ # but you use this API to override only some of these fields, then for
2036
+ # the fields you did not override, the importance is set to 1.
2037
+ #
2021
2038
  # @option params [Integer] :page_number
2022
2039
  # Query results are returned in pages the size of the `PageSize`
2023
2040
  # parameter. By default, Amazon Kendra returns the first page of
@@ -2144,6 +2161,20 @@ module Aws::Kendra
2144
2161
  # ],
2145
2162
  # requested_document_attributes: ["DocumentAttributeKey"],
2146
2163
  # query_result_type_filter: "DOCUMENT", # accepts DOCUMENT, QUESTION_ANSWER, ANSWER
2164
+ # document_relevance_override_configurations: [
2165
+ # {
2166
+ # name: "DocumentMetadataConfigurationName", # required
2167
+ # relevance: { # required
2168
+ # freshness: false,
2169
+ # importance: 1,
2170
+ # duration: "Duration",
2171
+ # rank_order: "ASCENDING", # accepts ASCENDING, DESCENDING
2172
+ # value_importance_map: {
2173
+ # "ValueImportanceMapKey" => 1,
2174
+ # },
2175
+ # },
2176
+ # },
2177
+ # ],
2147
2178
  # page_number: 1,
2148
2179
  # page_size: 1,
2149
2180
  # sorting_configuration: {
@@ -2853,7 +2884,7 @@ module Aws::Kendra
2853
2884
  params: params,
2854
2885
  config: config)
2855
2886
  context[:gem_name] = 'aws-sdk-kendra'
2856
- context[:gem_version] = '1.23.0'
2887
+ context[:gem_version] = '1.24.0'
2857
2888
  Seahorse::Client::Request.new(handlers, context)
2858
2889
  end
2859
2890
 
@@ -128,6 +128,8 @@ module Aws::Kendra
128
128
  DocumentMetadataConfiguration = Shapes::StructureShape.new(name: 'DocumentMetadataConfiguration')
129
129
  DocumentMetadataConfigurationList = Shapes::ListShape.new(name: 'DocumentMetadataConfigurationList')
130
130
  DocumentMetadataConfigurationName = Shapes::StringShape.new(name: 'DocumentMetadataConfigurationName')
131
+ DocumentRelevanceConfiguration = Shapes::StructureShape.new(name: 'DocumentRelevanceConfiguration')
132
+ DocumentRelevanceOverrideConfigurationList = Shapes::ListShape.new(name: 'DocumentRelevanceOverrideConfigurationList')
131
133
  DocumentsMetadataConfiguration = Shapes::StructureShape.new(name: 'DocumentsMetadataConfiguration')
132
134
  Duration = Shapes::StringShape.new(name: 'Duration')
133
135
  ErrorCode = Shapes::StringShape.new(name: 'ErrorCode')
@@ -709,6 +711,12 @@ module Aws::Kendra
709
711
 
710
712
  DocumentMetadataConfigurationList.member = Shapes::ShapeRef.new(shape: DocumentMetadataConfiguration)
711
713
 
714
+ DocumentRelevanceConfiguration.add_member(:name, Shapes::ShapeRef.new(shape: DocumentMetadataConfigurationName, required: true, location_name: "Name"))
715
+ DocumentRelevanceConfiguration.add_member(:relevance, Shapes::ShapeRef.new(shape: Relevance, required: true, location_name: "Relevance"))
716
+ DocumentRelevanceConfiguration.struct_class = Types::DocumentRelevanceConfiguration
717
+
718
+ DocumentRelevanceOverrideConfigurationList.member = Shapes::ShapeRef.new(shape: DocumentRelevanceConfiguration)
719
+
712
720
  DocumentsMetadataConfiguration.add_member(:s3_prefix, Shapes::ShapeRef.new(shape: S3ObjectKey, location_name: "S3Prefix"))
713
721
  DocumentsMetadataConfiguration.struct_class = Types::DocumentsMetadataConfiguration
714
722
 
@@ -871,6 +879,7 @@ module Aws::Kendra
871
879
  QueryRequest.add_member(:facets, Shapes::ShapeRef.new(shape: FacetList, location_name: "Facets"))
872
880
  QueryRequest.add_member(:requested_document_attributes, Shapes::ShapeRef.new(shape: DocumentAttributeKeyList, location_name: "RequestedDocumentAttributes"))
873
881
  QueryRequest.add_member(:query_result_type_filter, Shapes::ShapeRef.new(shape: QueryResultType, location_name: "QueryResultTypeFilter"))
882
+ QueryRequest.add_member(:document_relevance_override_configurations, Shapes::ShapeRef.new(shape: DocumentRelevanceOverrideConfigurationList, location_name: "DocumentRelevanceOverrideConfigurations"))
874
883
  QueryRequest.add_member(:page_number, Shapes::ShapeRef.new(shape: Integer, location_name: "PageNumber"))
875
884
  QueryRequest.add_member(:page_size, Shapes::ShapeRef.new(shape: Integer, location_name: "PageSize"))
876
885
  QueryRequest.add_member(:sorting_configuration, Shapes::ShapeRef.new(shape: SortingConfiguration, location_name: "SortingConfiguration"))
@@ -3449,6 +3449,45 @@ module Aws::Kendra
3449
3449
  include Aws::Structure
3450
3450
  end
3451
3451
 
3452
+ # Overrides the document relevance properties of a custom index field.
3453
+ #
3454
+ # @note When making an API call, you may pass DocumentRelevanceConfiguration
3455
+ # data as a hash:
3456
+ #
3457
+ # {
3458
+ # name: "DocumentMetadataConfigurationName", # required
3459
+ # relevance: { # required
3460
+ # freshness: false,
3461
+ # importance: 1,
3462
+ # duration: "Duration",
3463
+ # rank_order: "ASCENDING", # accepts ASCENDING, DESCENDING
3464
+ # value_importance_map: {
3465
+ # "ValueImportanceMapKey" => 1,
3466
+ # },
3467
+ # },
3468
+ # }
3469
+ #
3470
+ # @!attribute [rw] name
3471
+ # The name of the tuning configuration to override document relevance
3472
+ # at the index level.
3473
+ # @return [String]
3474
+ #
3475
+ # @!attribute [rw] relevance
3476
+ # Provides information for manually tuning the relevance of a field in
3477
+ # a search. When a query includes terms that match the field, the
3478
+ # results are given a boost in the response based on these tuning
3479
+ # parameters.
3480
+ # @return [Types::Relevance]
3481
+ #
3482
+ # @see http://docs.aws.amazon.com/goto/WebAPI/kendra-2019-02-03/DocumentRelevanceConfiguration AWS API Documentation
3483
+ #
3484
+ class DocumentRelevanceConfiguration < Struct.new(
3485
+ :name,
3486
+ :relevance)
3487
+ SENSITIVE = []
3488
+ include Aws::Structure
3489
+ end
3490
+
3452
3491
  # Document metadata files that contain information such as the document
3453
3492
  # access control information, source URI, document author, and custom
3454
3493
  # attributes. Each metadata file contains metadata about a single
@@ -4437,6 +4476,20 @@ module Aws::Kendra
4437
4476
  # ],
4438
4477
  # requested_document_attributes: ["DocumentAttributeKey"],
4439
4478
  # query_result_type_filter: "DOCUMENT", # accepts DOCUMENT, QUESTION_ANSWER, ANSWER
4479
+ # document_relevance_override_configurations: [
4480
+ # {
4481
+ # name: "DocumentMetadataConfigurationName", # required
4482
+ # relevance: { # required
4483
+ # freshness: false,
4484
+ # importance: 1,
4485
+ # duration: "Duration",
4486
+ # rank_order: "ASCENDING", # accepts ASCENDING, DESCENDING
4487
+ # value_importance_map: {
4488
+ # "ValueImportanceMapKey" => 1,
4489
+ # },
4490
+ # },
4491
+ # },
4492
+ # ],
4440
4493
  # page_number: 1,
4441
4494
  # page_size: 1,
4442
4495
  # sorting_configuration: {
@@ -4486,6 +4539,25 @@ module Aws::Kendra
4486
4539
  # are returned.
4487
4540
  # @return [String]
4488
4541
  #
4542
+ # @!attribute [rw] document_relevance_override_configurations
4543
+ # Overrides relevance tuning configurations of fields or attributes
4544
+ # set at the index level.
4545
+ #
4546
+ # If you use this API to override the relevance tuning configured at
4547
+ # the index level, but there is no relevance tuning configured at the
4548
+ # index level, then Amazon Kendra does not apply any relevance tuning.
4549
+ #
4550
+ # If there is relevance tuning configured at the index level, but you
4551
+ # do not use this API to override any relevance tuning in the index,
4552
+ # then Amazon Kendra uses the relevance tuning that is configured at
4553
+ # the index level.
4554
+ #
4555
+ # If there is relevance tuning configured for fields at the index
4556
+ # level, but you use this API to override only some of these fields,
4557
+ # then for the fields you did not override, the importance is set to
4558
+ # 1.
4559
+ # @return [Array<Types::DocumentRelevanceConfiguration>]
4560
+ #
4489
4561
  # @!attribute [rw] page_number
4490
4562
  # Query results are returned in pages the size of the `PageSize`
4491
4563
  # parameter. By default, Amazon Kendra returns the first page of
@@ -4530,6 +4602,7 @@ module Aws::Kendra
4530
4602
  :facets,
4531
4603
  :requested_document_attributes,
4532
4604
  :query_result_type_filter,
4605
+ :document_relevance_override_configurations,
4533
4606
  :page_number,
4534
4607
  :page_size,
4535
4608
  :sorting_configuration,
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.23.0
4
+ version: 1.24.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: 2021-04-01 00:00:00.000000000 Z
11
+ date: 2021-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.7.6.2
87
+ rubygems_version: 2.7.6.3
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: AWS SDK for Ruby - kendra