aws-sdk-bedrockagent 1.12.0 → 1.13.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: d3075b80e2e0c81e7d03a7b518ec40e583d4dd896abed0469786c026095357e2
4
- data.tar.gz: b0036ebbdf44ae8605edaef2bd6fb8e80d48f951da0e37ecb37716943c505411
3
+ metadata.gz: 4c9528347dbcf412e1c778bfb86c91e2669151935de7d35e1f734f292560ae8e
4
+ data.tar.gz: 7dbe069ab4d18e4308b8bd4762a6c2d2224925a68e1130ae801a050de00c9d7a
5
5
  SHA512:
6
- metadata.gz: 2a575dc51e5bebbda52544368dac5c90fd3a1977eaa17b81c91e0626b55b9b59ab238cf5c04c86aed95833d5c763c6c0d0f5ea2b750586a5346175e94413f4fa
7
- data.tar.gz: d9484c139067065504611440acbeb44b1f51e300d50fb353ede775e10e66068d898e9b5f08a0613fad91ba4d406090ce3be370cb23a83147e6a261ca7ecb14a4
6
+ metadata.gz: e8e03c5ae773d36b1332e33805a38598d2787c0c8297aac49cb78cca5b280cacd54d2af57adb4a98e4b3fd45abbf0ceff9897f4bd792fb76c0972b85ef5ae19c
7
+ data.tar.gz: 789beadc0e9fe4e10ee9df3f905a330e8a31bcb1d6b1fcb09fb26631018e9c433697a1fd8939cae34290366450cdb0a67cf9e3a5956f27a459938d8a3eb2278e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.13.0 (2024-05-30)
5
+ ------------------
6
+
7
+ * Feature - With this release, Knowledge bases for Bedrock adds support for Titan Text Embedding v2.
8
+
4
9
  1.12.0 (2024-05-20)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.12.0
1
+ 1.13.0
@@ -1097,6 +1097,11 @@ module Aws::BedrockAgent
1097
1097
  # type: "VECTOR", # required, accepts VECTOR
1098
1098
  # vector_knowledge_base_configuration: {
1099
1099
  # embedding_model_arn: "BedrockEmbeddingModelArn", # required
1100
+ # embedding_model_configuration: {
1101
+ # bedrock_embedding_model_configuration: {
1102
+ # dimensions: 1,
1103
+ # },
1104
+ # },
1100
1105
  # },
1101
1106
  # },
1102
1107
  # name: "Name", # required
@@ -1171,6 +1176,7 @@ module Aws::BedrockAgent
1171
1176
  # resp.knowledge_base.knowledge_base_arn #=> String
1172
1177
  # resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR"
1173
1178
  # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
1179
+ # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
1174
1180
  # resp.knowledge_base.knowledge_base_id #=> String
1175
1181
  # resp.knowledge_base.name #=> String
1176
1182
  # resp.knowledge_base.role_arn #=> String
@@ -1881,6 +1887,7 @@ module Aws::BedrockAgent
1881
1887
  # resp.knowledge_base.knowledge_base_arn #=> String
1882
1888
  # resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR"
1883
1889
  # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
1890
+ # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
1884
1891
  # resp.knowledge_base.knowledge_base_id #=> String
1885
1892
  # resp.knowledge_base.name #=> String
1886
1893
  # resp.knowledge_base.role_arn #=> String
@@ -3129,6 +3136,11 @@ module Aws::BedrockAgent
3129
3136
  # type: "VECTOR", # required, accepts VECTOR
3130
3137
  # vector_knowledge_base_configuration: {
3131
3138
  # embedding_model_arn: "BedrockEmbeddingModelArn", # required
3139
+ # embedding_model_configuration: {
3140
+ # bedrock_embedding_model_configuration: {
3141
+ # dimensions: 1,
3142
+ # },
3143
+ # },
3132
3144
  # },
3133
3145
  # },
3134
3146
  # knowledge_base_id: "Id", # required
@@ -3201,6 +3213,7 @@ module Aws::BedrockAgent
3201
3213
  # resp.knowledge_base.knowledge_base_arn #=> String
3202
3214
  # resp.knowledge_base.knowledge_base_configuration.type #=> String, one of "VECTOR"
3203
3215
  # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_arn #=> String
3216
+ # resp.knowledge_base.knowledge_base_configuration.vector_knowledge_base_configuration.embedding_model_configuration.bedrock_embedding_model_configuration.dimensions #=> Integer
3204
3217
  # resp.knowledge_base.knowledge_base_id #=> String
3205
3218
  # resp.knowledge_base.name #=> String
3206
3219
  # resp.knowledge_base.role_arn #=> String
@@ -3263,7 +3276,7 @@ module Aws::BedrockAgent
3263
3276
  params: params,
3264
3277
  config: config)
3265
3278
  context[:gem_name] = 'aws-sdk-bedrockagent'
3266
- context[:gem_version] = '1.12.0'
3279
+ context[:gem_version] = '1.13.0'
3267
3280
  Seahorse::Client::Request.new(handlers, context)
3268
3281
  end
3269
3282
 
@@ -47,6 +47,7 @@ module Aws::BedrockAgent
47
47
  AssociateAgentKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'AssociateAgentKnowledgeBaseResponse')
48
48
  BasePromptTemplate = Shapes::StringShape.new(name: 'BasePromptTemplate')
49
49
  BedrockEmbeddingModelArn = Shapes::StringShape.new(name: 'BedrockEmbeddingModelArn')
50
+ BedrockEmbeddingModelConfiguration = Shapes::StructureShape.new(name: 'BedrockEmbeddingModelConfiguration')
50
51
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
51
52
  BucketOwnerAccountId = Shapes::StringShape.new(name: 'BucketOwnerAccountId')
52
53
  ChunkingConfiguration = Shapes::StructureShape.new(name: 'ChunkingConfiguration')
@@ -87,9 +88,11 @@ module Aws::BedrockAgent
87
88
  DeleteKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseRequest')
88
89
  DeleteKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DeleteKnowledgeBaseResponse')
89
90
  Description = Shapes::StringShape.new(name: 'Description')
91
+ Dimensions = Shapes::IntegerShape.new(name: 'Dimensions')
90
92
  DisassociateAgentKnowledgeBaseRequest = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseRequest')
91
93
  DisassociateAgentKnowledgeBaseResponse = Shapes::StructureShape.new(name: 'DisassociateAgentKnowledgeBaseResponse')
92
94
  DraftVersion = Shapes::StringShape.new(name: 'DraftVersion')
95
+ EmbeddingModelConfiguration = Shapes::StructureShape.new(name: 'EmbeddingModelConfiguration')
93
96
  FailureReason = Shapes::StringShape.new(name: 'FailureReason')
94
97
  FailureReasons = Shapes::ListShape.new(name: 'FailureReasons')
95
98
  FieldName = Shapes::StringShape.new(name: 'FieldName')
@@ -433,6 +436,9 @@ module Aws::BedrockAgent
433
436
  AssociateAgentKnowledgeBaseResponse.add_member(:agent_knowledge_base, Shapes::ShapeRef.new(shape: AgentKnowledgeBase, required: true, location_name: "agentKnowledgeBase"))
434
437
  AssociateAgentKnowledgeBaseResponse.struct_class = Types::AssociateAgentKnowledgeBaseResponse
435
438
 
439
+ BedrockEmbeddingModelConfiguration.add_member(:dimensions, Shapes::ShapeRef.new(shape: Dimensions, location_name: "dimensions"))
440
+ BedrockEmbeddingModelConfiguration.struct_class = Types::BedrockEmbeddingModelConfiguration
441
+
436
442
  ChunkingConfiguration.add_member(:chunking_strategy, Shapes::ShapeRef.new(shape: ChunkingStrategy, required: true, location_name: "chunkingStrategy"))
437
443
  ChunkingConfiguration.add_member(:fixed_size_chunking_configuration, Shapes::ShapeRef.new(shape: FixedSizeChunkingConfiguration, location_name: "fixedSizeChunkingConfiguration"))
438
444
  ChunkingConfiguration.struct_class = Types::ChunkingConfiguration
@@ -593,6 +599,9 @@ module Aws::BedrockAgent
593
599
 
594
600
  DisassociateAgentKnowledgeBaseResponse.struct_class = Types::DisassociateAgentKnowledgeBaseResponse
595
601
 
602
+ EmbeddingModelConfiguration.add_member(:bedrock_embedding_model_configuration, Shapes::ShapeRef.new(shape: BedrockEmbeddingModelConfiguration, location_name: "bedrockEmbeddingModelConfiguration"))
603
+ EmbeddingModelConfiguration.struct_class = Types::EmbeddingModelConfiguration
604
+
596
605
  FailureReasons.member = Shapes::ShapeRef.new(shape: FailureReason)
597
606
 
598
607
  FixedSizeChunkingConfiguration.add_member(:max_tokens, Shapes::ShapeRef.new(shape: FixedSizeChunkingConfigurationMaxTokensInteger, required: true, location_name: "maxTokens"))
@@ -1073,6 +1082,7 @@ module Aws::BedrockAgent
1073
1082
  VectorIngestionConfiguration.struct_class = Types::VectorIngestionConfiguration
1074
1083
 
1075
1084
  VectorKnowledgeBaseConfiguration.add_member(:embedding_model_arn, Shapes::ShapeRef.new(shape: BedrockEmbeddingModelArn, required: true, location_name: "embeddingModelArn"))
1085
+ VectorKnowledgeBaseConfiguration.add_member(:embedding_model_configuration, Shapes::ShapeRef.new(shape: EmbeddingModelConfiguration, location_name: "embeddingModelConfiguration"))
1076
1086
  VectorKnowledgeBaseConfiguration.struct_class = Types::VectorKnowledgeBaseConfiguration
1077
1087
 
1078
1088
 
@@ -921,6 +921,21 @@ module Aws::BedrockAgent
921
921
  include Aws::Structure
922
922
  end
923
923
 
924
+ # The vector configuration details for the Bedrock embeddings model.
925
+ #
926
+ # @!attribute [rw] dimensions
927
+ # The dimensions details for the vector configuration used on the
928
+ # Bedrock embeddings model.
929
+ # @return [Integer]
930
+ #
931
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/BedrockEmbeddingModelConfiguration AWS API Documentation
932
+ #
933
+ class BedrockEmbeddingModelConfiguration < Struct.new(
934
+ :dimensions)
935
+ SENSITIVE = []
936
+ include Aws::Structure
937
+ end
938
+
924
939
  # Details about how to chunk the documents in the data source. A *chunk*
925
940
  # refers to an excerpt from a data source that is returned when the
926
941
  # knowledge base that it belongs to is queried.
@@ -1766,6 +1781,20 @@ module Aws::BedrockAgent
1766
1781
  #
1767
1782
  class DisassociateAgentKnowledgeBaseResponse < Aws::EmptyStructure; end
1768
1783
 
1784
+ # The configuration details for the embeddings model.
1785
+ #
1786
+ # @!attribute [rw] bedrock_embedding_model_configuration
1787
+ # The vector configuration details on the Bedrock embeddings model.
1788
+ # @return [Types::BedrockEmbeddingModelConfiguration]
1789
+ #
1790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/EmbeddingModelConfiguration AWS API Documentation
1791
+ #
1792
+ class EmbeddingModelConfiguration < Struct.new(
1793
+ :bedrock_embedding_model_configuration)
1794
+ SENSITIVE = []
1795
+ include Aws::Structure
1796
+ end
1797
+
1769
1798
  # Configurations for when you choose fixed-size chunking. If you set the
1770
1799
  # `chunkingStrategy` as `NONE`, exclude this field.
1771
1800
  #
@@ -4255,10 +4284,16 @@ module Aws::BedrockAgent
4255
4284
  # embeddings for the knowledge base.
4256
4285
  # @return [String]
4257
4286
  #
4287
+ # @!attribute [rw] embedding_model_configuration
4288
+ # The embeddings model configuration details for the vector model used
4289
+ # in Knowledge Base.
4290
+ # @return [Types::EmbeddingModelConfiguration]
4291
+ #
4258
4292
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/VectorKnowledgeBaseConfiguration AWS API Documentation
4259
4293
  #
4260
4294
  class VectorKnowledgeBaseConfiguration < Struct.new(
4261
- :embedding_model_arn)
4295
+ :embedding_model_arn,
4296
+ :embedding_model_configuration)
4262
4297
  SENSITIVE = []
4263
4298
  include Aws::Structure
4264
4299
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-bedrockagent/customizations'
52
52
  # @!group service
53
53
  module Aws::BedrockAgent
54
54
 
55
- GEM_VERSION = '1.12.0'
55
+ GEM_VERSION = '1.13.0'
56
56
 
57
57
  end
data/sig/client.rbs CHANGED
@@ -232,7 +232,12 @@ module Aws
232
232
  knowledge_base_configuration: {
233
233
  type: ("VECTOR"),
234
234
  vector_knowledge_base_configuration: {
235
- embedding_model_arn: ::String
235
+ embedding_model_arn: ::String,
236
+ embedding_model_configuration: {
237
+ bedrock_embedding_model_configuration: {
238
+ dimensions: ::Integer?
239
+ }?
240
+ }?
236
241
  }?
237
242
  },
238
243
  name: ::String,
@@ -801,7 +806,12 @@ module Aws
801
806
  knowledge_base_configuration: {
802
807
  type: ("VECTOR"),
803
808
  vector_knowledge_base_configuration: {
804
- embedding_model_arn: ::String
809
+ embedding_model_arn: ::String,
810
+ embedding_model_configuration: {
811
+ bedrock_embedding_model_configuration: {
812
+ dimensions: ::Integer?
813
+ }?
814
+ }?
805
815
  }?
806
816
  },
807
817
  knowledge_base_id: ::String,
data/sig/types.rbs CHANGED
@@ -206,6 +206,11 @@ module Aws::BedrockAgent
206
206
  SENSITIVE: []
207
207
  end
208
208
 
209
+ class BedrockEmbeddingModelConfiguration
210
+ attr_accessor dimensions: ::Integer
211
+ SENSITIVE: []
212
+ end
213
+
209
214
  class ChunkingConfiguration
210
215
  attr_accessor chunking_strategy: ("FIXED_SIZE" | "NONE")
211
216
  attr_accessor fixed_size_chunking_configuration: Types::FixedSizeChunkingConfiguration
@@ -420,6 +425,11 @@ module Aws::BedrockAgent
420
425
  class DisassociateAgentKnowledgeBaseResponse < Aws::EmptyStructure
421
426
  end
422
427
 
428
+ class EmbeddingModelConfiguration
429
+ attr_accessor bedrock_embedding_model_configuration: Types::BedrockEmbeddingModelConfiguration
430
+ SENSITIVE: []
431
+ end
432
+
423
433
  class FixedSizeChunkingConfiguration
424
434
  attr_accessor max_tokens: ::Integer
425
435
  attr_accessor overlap_percentage: ::Integer
@@ -1054,6 +1064,7 @@ module Aws::BedrockAgent
1054
1064
 
1055
1065
  class VectorKnowledgeBaseConfiguration
1056
1066
  attr_accessor embedding_model_arn: ::String
1067
+ attr_accessor embedding_model_configuration: Types::EmbeddingModelConfiguration
1057
1068
  SENSITIVE: []
1058
1069
  end
1059
1070
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrockagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.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: 2024-05-20 00:00:00.000000000 Z
11
+ date: 2024-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core