aws-sdk-bedrock 1.38.0 → 1.39.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06e5bd49f2c960c59fe32be19d3dea38711be5669f7a2ce6c77bde803ff58a40
4
- data.tar.gz: 48b1ec0b6b803a66ea456cf54e1fa5b4d0c3071e5fc8db32a70aa9f2404918bc
3
+ metadata.gz: 1fd76e5f0076bc816124afe590e3f78d527414641b812d0dfcee99d46553c289
4
+ data.tar.gz: 9f7c653dae884cf2f7632ed6a37b24adbe2c9ff31e859ac3565a57283acbc713
5
5
  SHA512:
6
- metadata.gz: 0f623f5ad17561f5aea2a5862716b45b4a7ab8786317a53265f0ea96e46ba2f88c53ad387e46df189fb9163fd23d15bd607327a843212de89dd9e553e508f8e2
7
- data.tar.gz: 41b5fe8cadb51969cb643f9da587afa78a771145e067d4460ec9ca5f62f56a1eb4ddc32e21b884e577415c07fee40bb9a29faa507c6fe07f2f0af9802627d9c5
6
+ metadata.gz: 19cc949cc8f79801ad5b9cc49415e8dcdf4dea0c5277f17cd8a3d7e6427ea933f9cd3e330d8f0346d1c1429ffbc61dbdbfe8edb7dabea41ba18262d08abb3b65
7
+ data.tar.gz: bb4a8b7d2202aedd87fbdd49b0a6f432952cd44fa9a27d1652e93ec149ddf55bd287645f76d484fd6e95f17c56dfe91f6d70baeab64f1f0cb42659960d8dfcee
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.39.0 (2025-03-20)
5
+ ------------------
6
+
7
+ * Feature - With this release, Bedrock Evaluation will now support bring your own inference responses.
8
+
4
9
  1.38.0 (2025-03-19)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.39.0
@@ -643,12 +643,15 @@ module Aws::Bedrock
643
643
  # models: [
644
644
  # {
645
645
  # bedrock_model: {
646
- # model_identifier: "EvaluationModelIdentifier", # required
646
+ # model_identifier: "EvaluationBedrockModelIdentifier", # required
647
647
  # inference_params: "EvaluationModelInferenceParams",
648
648
  # performance_config: {
649
649
  # latency: "standard", # accepts standard, optimized
650
650
  # },
651
651
  # },
652
+ # precomputed_inference_source: {
653
+ # inference_source_identifier: "EvaluationPrecomputedInferenceSourceIdentifier", # required
654
+ # },
652
655
  # },
653
656
  # ],
654
657
  # rag_configs: [
@@ -874,6 +877,14 @@ module Aws::Bedrock
874
877
  # },
875
878
  # },
876
879
  # },
880
+ # precomputed_rag_source_config: {
881
+ # retrieve_source_config: {
882
+ # rag_source_identifier: "EvaluationPrecomputedRagSourceIdentifier", # required
883
+ # },
884
+ # retrieve_and_generate_source_config: {
885
+ # rag_source_identifier: "EvaluationPrecomputedRagSourceIdentifier", # required
886
+ # },
887
+ # },
877
888
  # },
878
889
  # ],
879
890
  # },
@@ -2346,6 +2357,7 @@ module Aws::Bedrock
2346
2357
  # resp.inference_config.models[0].bedrock_model.model_identifier #=> String
2347
2358
  # resp.inference_config.models[0].bedrock_model.inference_params #=> String
2348
2359
  # resp.inference_config.models[0].bedrock_model.performance_config.latency #=> String, one of "standard", "optimized"
2360
+ # resp.inference_config.models[0].precomputed_inference_source.inference_source_identifier #=> String
2349
2361
  # resp.inference_config.rag_configs #=> Array
2350
2362
  # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_id #=> String
2351
2363
  # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_config.knowledge_base_retrieval_configuration.vector_search_configuration.number_of_results #=> Integer
@@ -2411,6 +2423,8 @@ module Aws::Bedrock
2411
2423
  # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.external_sources_configuration.generation_configuration.kb_inference_config.text_inference_config.stop_sequences #=> Array
2412
2424
  # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.external_sources_configuration.generation_configuration.kb_inference_config.text_inference_config.stop_sequences[0] #=> String
2413
2425
  # resp.inference_config.rag_configs[0].knowledge_base_config.retrieve_and_generate_config.external_sources_configuration.generation_configuration.additional_model_request_fields #=> Hash
2426
+ # resp.inference_config.rag_configs[0].precomputed_rag_source_config.retrieve_source_config.rag_source_identifier #=> String
2427
+ # resp.inference_config.rag_configs[0].precomputed_rag_source_config.retrieve_and_generate_source_config.rag_source_identifier #=> String
2414
2428
  # resp.output_data_config.s3_uri #=> String
2415
2429
  # resp.creation_time #=> Time
2416
2430
  # resp.last_modified_time #=> Time
@@ -3288,6 +3302,14 @@ module Aws::Bedrock
3288
3302
  # resp.job_summaries[0].rag_identifiers[0] #=> String
3289
3303
  # resp.job_summaries[0].evaluator_model_identifiers #=> Array
3290
3304
  # resp.job_summaries[0].evaluator_model_identifiers[0] #=> String
3305
+ # resp.job_summaries[0].inference_config_summary.model_config_summary.bedrock_model_identifiers #=> Array
3306
+ # resp.job_summaries[0].inference_config_summary.model_config_summary.bedrock_model_identifiers[0] #=> String
3307
+ # resp.job_summaries[0].inference_config_summary.model_config_summary.precomputed_inference_source_identifiers #=> Array
3308
+ # resp.job_summaries[0].inference_config_summary.model_config_summary.precomputed_inference_source_identifiers[0] #=> String
3309
+ # resp.job_summaries[0].inference_config_summary.rag_config_summary.bedrock_knowledge_base_identifiers #=> Array
3310
+ # resp.job_summaries[0].inference_config_summary.rag_config_summary.bedrock_knowledge_base_identifiers[0] #=> String
3311
+ # resp.job_summaries[0].inference_config_summary.rag_config_summary.precomputed_rag_source_identifiers #=> Array
3312
+ # resp.job_summaries[0].inference_config_summary.rag_config_summary.precomputed_rag_source_identifiers[0] #=> String
3291
3313
  # resp.job_summaries[0].application_type #=> String, one of "ModelEvaluation", "RagEvaluation"
3292
3314
  #
3293
3315
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListEvaluationJobs AWS API Documentation
@@ -4763,7 +4785,7 @@ module Aws::Bedrock
4763
4785
  tracer: tracer
4764
4786
  )
4765
4787
  context[:gem_name] = 'aws-sdk-bedrock'
4766
- context[:gem_version] = '1.38.0'
4788
+ context[:gem_version] = '1.39.0'
4767
4789
  Seahorse::Client::Request.new(handlers, context)
4768
4790
  end
4769
4791
 
@@ -94,7 +94,10 @@ module Aws::Bedrock
94
94
  EndpointName = Shapes::StringShape.new(name: 'EndpointName')
95
95
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
96
96
  ErrorMessages = Shapes::ListShape.new(name: 'ErrorMessages')
97
+ EvaluationBedrockKnowledgeBaseIdentifiers = Shapes::ListShape.new(name: 'EvaluationBedrockKnowledgeBaseIdentifiers')
97
98
  EvaluationBedrockModel = Shapes::StructureShape.new(name: 'EvaluationBedrockModel')
99
+ EvaluationBedrockModelIdentifier = Shapes::StringShape.new(name: 'EvaluationBedrockModelIdentifier')
100
+ EvaluationBedrockModelIdentifiers = Shapes::ListShape.new(name: 'EvaluationBedrockModelIdentifiers')
98
101
  EvaluationConfig = Shapes::UnionShape.new(name: 'EvaluationConfig')
99
102
  EvaluationDataset = Shapes::StructureShape.new(name: 'EvaluationDataset')
100
103
  EvaluationDatasetLocation = Shapes::UnionShape.new(name: 'EvaluationDatasetLocation')
@@ -102,6 +105,7 @@ module Aws::Bedrock
102
105
  EvaluationDatasetMetricConfigs = Shapes::ListShape.new(name: 'EvaluationDatasetMetricConfigs')
103
106
  EvaluationDatasetName = Shapes::StringShape.new(name: 'EvaluationDatasetName')
104
107
  EvaluationInferenceConfig = Shapes::UnionShape.new(name: 'EvaluationInferenceConfig')
108
+ EvaluationInferenceConfigSummary = Shapes::StructureShape.new(name: 'EvaluationInferenceConfigSummary')
105
109
  EvaluationJobArn = Shapes::StringShape.new(name: 'EvaluationJobArn')
106
110
  EvaluationJobDescription = Shapes::StringShape.new(name: 'EvaluationJobDescription')
107
111
  EvaluationJobIdentifier = Shapes::StringShape.new(name: 'EvaluationJobIdentifier')
@@ -113,11 +117,19 @@ module Aws::Bedrock
113
117
  EvaluationMetricName = Shapes::StringShape.new(name: 'EvaluationMetricName')
114
118
  EvaluationMetricNames = Shapes::ListShape.new(name: 'EvaluationMetricNames')
115
119
  EvaluationModelConfig = Shapes::UnionShape.new(name: 'EvaluationModelConfig')
120
+ EvaluationModelConfigSummary = Shapes::StructureShape.new(name: 'EvaluationModelConfigSummary')
116
121
  EvaluationModelConfigs = Shapes::ListShape.new(name: 'EvaluationModelConfigs')
117
- EvaluationModelIdentifier = Shapes::StringShape.new(name: 'EvaluationModelIdentifier')
118
- EvaluationModelIdentifiers = Shapes::ListShape.new(name: 'EvaluationModelIdentifiers')
119
122
  EvaluationModelInferenceParams = Shapes::StringShape.new(name: 'EvaluationModelInferenceParams')
120
123
  EvaluationOutputDataConfig = Shapes::StructureShape.new(name: 'EvaluationOutputDataConfig')
124
+ EvaluationPrecomputedInferenceSource = Shapes::StructureShape.new(name: 'EvaluationPrecomputedInferenceSource')
125
+ EvaluationPrecomputedInferenceSourceIdentifier = Shapes::StringShape.new(name: 'EvaluationPrecomputedInferenceSourceIdentifier')
126
+ EvaluationPrecomputedInferenceSourceIdentifiers = Shapes::ListShape.new(name: 'EvaluationPrecomputedInferenceSourceIdentifiers')
127
+ EvaluationPrecomputedRagSourceConfig = Shapes::UnionShape.new(name: 'EvaluationPrecomputedRagSourceConfig')
128
+ EvaluationPrecomputedRagSourceIdentifier = Shapes::StringShape.new(name: 'EvaluationPrecomputedRagSourceIdentifier')
129
+ EvaluationPrecomputedRagSourceIdentifiers = Shapes::ListShape.new(name: 'EvaluationPrecomputedRagSourceIdentifiers')
130
+ EvaluationPrecomputedRetrieveAndGenerateSourceConfig = Shapes::StructureShape.new(name: 'EvaluationPrecomputedRetrieveAndGenerateSourceConfig')
131
+ EvaluationPrecomputedRetrieveSourceConfig = Shapes::StructureShape.new(name: 'EvaluationPrecomputedRetrieveSourceConfig')
132
+ EvaluationRagConfigSummary = Shapes::StructureShape.new(name: 'EvaluationRagConfigSummary')
121
133
  EvaluationRatingMethod = Shapes::StringShape.new(name: 'EvaluationRatingMethod')
122
134
  EvaluationSummaries = Shapes::ListShape.new(name: 'EvaluationSummaries')
123
135
  EvaluationSummary = Shapes::StructureShape.new(name: 'EvaluationSummary')
@@ -400,7 +412,6 @@ module Aws::Bedrock
400
412
  QueryTransformationConfiguration = Shapes::StructureShape.new(name: 'QueryTransformationConfiguration')
401
413
  QueryTransformationType = Shapes::StringShape.new(name: 'QueryTransformationType')
402
414
  RAGConfig = Shapes::UnionShape.new(name: 'RAGConfig')
403
- RAGIdentifiers = Shapes::ListShape.new(name: 'RAGIdentifiers')
404
415
  RAGStopSequences = Shapes::ListShape.new(name: 'RAGStopSequences')
405
416
  RAGStopSequencesMemberString = Shapes::StringShape.new(name: 'RAGStopSequencesMemberString')
406
417
  RagConfigs = Shapes::ListShape.new(name: 'RagConfigs')
@@ -752,11 +763,15 @@ module Aws::Bedrock
752
763
 
753
764
  ErrorMessages.member = Shapes::ShapeRef.new(shape: ErrorMessage)
754
765
 
755
- EvaluationBedrockModel.add_member(:model_identifier, Shapes::ShapeRef.new(shape: EvaluationModelIdentifier, required: true, location_name: "modelIdentifier"))
766
+ EvaluationBedrockKnowledgeBaseIdentifiers.member = Shapes::ShapeRef.new(shape: KnowledgeBaseId)
767
+
768
+ EvaluationBedrockModel.add_member(:model_identifier, Shapes::ShapeRef.new(shape: EvaluationBedrockModelIdentifier, required: true, location_name: "modelIdentifier"))
756
769
  EvaluationBedrockModel.add_member(:inference_params, Shapes::ShapeRef.new(shape: EvaluationModelInferenceParams, location_name: "inferenceParams"))
757
770
  EvaluationBedrockModel.add_member(:performance_config, Shapes::ShapeRef.new(shape: PerformanceConfiguration, location_name: "performanceConfig"))
758
771
  EvaluationBedrockModel.struct_class = Types::EvaluationBedrockModel
759
772
 
773
+ EvaluationBedrockModelIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluationBedrockModelIdentifier)
774
+
760
775
  EvaluationConfig.add_member(:automated, Shapes::ShapeRef.new(shape: AutomatedEvaluationConfig, location_name: "automated"))
761
776
  EvaluationConfig.add_member(:human, Shapes::ShapeRef.new(shape: HumanEvaluationConfig, location_name: "human"))
762
777
  EvaluationConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
@@ -790,23 +805,56 @@ module Aws::Bedrock
790
805
  EvaluationInferenceConfig.add_member_subclass(:unknown, Types::EvaluationInferenceConfig::Unknown)
791
806
  EvaluationInferenceConfig.struct_class = Types::EvaluationInferenceConfig
792
807
 
808
+ EvaluationInferenceConfigSummary.add_member(:model_config_summary, Shapes::ShapeRef.new(shape: EvaluationModelConfigSummary, location_name: "modelConfigSummary"))
809
+ EvaluationInferenceConfigSummary.add_member(:rag_config_summary, Shapes::ShapeRef.new(shape: EvaluationRagConfigSummary, location_name: "ragConfigSummary"))
810
+ EvaluationInferenceConfigSummary.struct_class = Types::EvaluationInferenceConfigSummary
811
+
793
812
  EvaluationJobIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluationJobIdentifier)
794
813
 
795
814
  EvaluationMetricNames.member = Shapes::ShapeRef.new(shape: EvaluationMetricName)
796
815
 
797
816
  EvaluationModelConfig.add_member(:bedrock_model, Shapes::ShapeRef.new(shape: EvaluationBedrockModel, location_name: "bedrockModel"))
817
+ EvaluationModelConfig.add_member(:precomputed_inference_source, Shapes::ShapeRef.new(shape: EvaluationPrecomputedInferenceSource, location_name: "precomputedInferenceSource"))
798
818
  EvaluationModelConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
799
819
  EvaluationModelConfig.add_member_subclass(:bedrock_model, Types::EvaluationModelConfig::BedrockModel)
820
+ EvaluationModelConfig.add_member_subclass(:precomputed_inference_source, Types::EvaluationModelConfig::PrecomputedInferenceSource)
800
821
  EvaluationModelConfig.add_member_subclass(:unknown, Types::EvaluationModelConfig::Unknown)
801
822
  EvaluationModelConfig.struct_class = Types::EvaluationModelConfig
802
823
 
803
- EvaluationModelConfigs.member = Shapes::ShapeRef.new(shape: EvaluationModelConfig)
824
+ EvaluationModelConfigSummary.add_member(:bedrock_model_identifiers, Shapes::ShapeRef.new(shape: EvaluationBedrockModelIdentifiers, location_name: "bedrockModelIdentifiers"))
825
+ EvaluationModelConfigSummary.add_member(:precomputed_inference_source_identifiers, Shapes::ShapeRef.new(shape: EvaluationPrecomputedInferenceSourceIdentifiers, location_name: "precomputedInferenceSourceIdentifiers"))
826
+ EvaluationModelConfigSummary.struct_class = Types::EvaluationModelConfigSummary
804
827
 
805
- EvaluationModelIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluationModelIdentifier)
828
+ EvaluationModelConfigs.member = Shapes::ShapeRef.new(shape: EvaluationModelConfig)
806
829
 
807
830
  EvaluationOutputDataConfig.add_member(:s3_uri, Shapes::ShapeRef.new(shape: S3Uri, required: true, location_name: "s3Uri"))
808
831
  EvaluationOutputDataConfig.struct_class = Types::EvaluationOutputDataConfig
809
832
 
833
+ EvaluationPrecomputedInferenceSource.add_member(:inference_source_identifier, Shapes::ShapeRef.new(shape: EvaluationPrecomputedInferenceSourceIdentifier, required: true, location_name: "inferenceSourceIdentifier"))
834
+ EvaluationPrecomputedInferenceSource.struct_class = Types::EvaluationPrecomputedInferenceSource
835
+
836
+ EvaluationPrecomputedInferenceSourceIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluationPrecomputedInferenceSourceIdentifier)
837
+
838
+ EvaluationPrecomputedRagSourceConfig.add_member(:retrieve_source_config, Shapes::ShapeRef.new(shape: EvaluationPrecomputedRetrieveSourceConfig, location_name: "retrieveSourceConfig"))
839
+ EvaluationPrecomputedRagSourceConfig.add_member(:retrieve_and_generate_source_config, Shapes::ShapeRef.new(shape: EvaluationPrecomputedRetrieveAndGenerateSourceConfig, location_name: "retrieveAndGenerateSourceConfig"))
840
+ EvaluationPrecomputedRagSourceConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
841
+ EvaluationPrecomputedRagSourceConfig.add_member_subclass(:retrieve_source_config, Types::EvaluationPrecomputedRagSourceConfig::RetrieveSourceConfig)
842
+ EvaluationPrecomputedRagSourceConfig.add_member_subclass(:retrieve_and_generate_source_config, Types::EvaluationPrecomputedRagSourceConfig::RetrieveAndGenerateSourceConfig)
843
+ EvaluationPrecomputedRagSourceConfig.add_member_subclass(:unknown, Types::EvaluationPrecomputedRagSourceConfig::Unknown)
844
+ EvaluationPrecomputedRagSourceConfig.struct_class = Types::EvaluationPrecomputedRagSourceConfig
845
+
846
+ EvaluationPrecomputedRagSourceIdentifiers.member = Shapes::ShapeRef.new(shape: EvaluationPrecomputedRagSourceIdentifier)
847
+
848
+ EvaluationPrecomputedRetrieveAndGenerateSourceConfig.add_member(:rag_source_identifier, Shapes::ShapeRef.new(shape: EvaluationPrecomputedRagSourceIdentifier, required: true, location_name: "ragSourceIdentifier"))
849
+ EvaluationPrecomputedRetrieveAndGenerateSourceConfig.struct_class = Types::EvaluationPrecomputedRetrieveAndGenerateSourceConfig
850
+
851
+ EvaluationPrecomputedRetrieveSourceConfig.add_member(:rag_source_identifier, Shapes::ShapeRef.new(shape: EvaluationPrecomputedRagSourceIdentifier, required: true, location_name: "ragSourceIdentifier"))
852
+ EvaluationPrecomputedRetrieveSourceConfig.struct_class = Types::EvaluationPrecomputedRetrieveSourceConfig
853
+
854
+ EvaluationRagConfigSummary.add_member(:bedrock_knowledge_base_identifiers, Shapes::ShapeRef.new(shape: EvaluationBedrockKnowledgeBaseIdentifiers, location_name: "bedrockKnowledgeBaseIdentifiers"))
855
+ EvaluationRagConfigSummary.add_member(:precomputed_rag_source_identifiers, Shapes::ShapeRef.new(shape: EvaluationPrecomputedRagSourceIdentifiers, location_name: "precomputedRagSourceIdentifiers"))
856
+ EvaluationRagConfigSummary.struct_class = Types::EvaluationRagConfigSummary
857
+
810
858
  EvaluationSummaries.member = Shapes::ShapeRef.new(shape: EvaluationSummary)
811
859
 
812
860
  EvaluationSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: EvaluationJobArn, required: true, location_name: "jobArn"))
@@ -815,9 +863,10 @@ module Aws::Bedrock
815
863
  EvaluationSummary.add_member(:creation_time, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "creationTime"))
816
864
  EvaluationSummary.add_member(:job_type, Shapes::ShapeRef.new(shape: EvaluationJobType, required: true, location_name: "jobType"))
817
865
  EvaluationSummary.add_member(:evaluation_task_types, Shapes::ShapeRef.new(shape: EvaluationTaskTypes, required: true, location_name: "evaluationTaskTypes"))
818
- EvaluationSummary.add_member(:model_identifiers, Shapes::ShapeRef.new(shape: EvaluationModelIdentifiers, location_name: "modelIdentifiers"))
819
- EvaluationSummary.add_member(:rag_identifiers, Shapes::ShapeRef.new(shape: RAGIdentifiers, location_name: "ragIdentifiers"))
866
+ EvaluationSummary.add_member(:model_identifiers, Shapes::ShapeRef.new(shape: EvaluationBedrockModelIdentifiers, deprecated: true, location_name: "modelIdentifiers", metadata: {"deprecatedMessage"=>"Inference identifiers should be retrieved from the inferenceConfigSummary"}))
867
+ EvaluationSummary.add_member(:rag_identifiers, Shapes::ShapeRef.new(shape: EvaluationBedrockKnowledgeBaseIdentifiers, deprecated: true, location_name: "ragIdentifiers", metadata: {"deprecatedMessage"=>"Inference identifiers should be retrieved from the inferenceConfigSummary"}))
820
868
  EvaluationSummary.add_member(:evaluator_model_identifiers, Shapes::ShapeRef.new(shape: EvaluatorModelIdentifiers, location_name: "evaluatorModelIdentifiers"))
869
+ EvaluationSummary.add_member(:inference_config_summary, Shapes::ShapeRef.new(shape: EvaluationInferenceConfigSummary, location_name: "inferenceConfigSummary"))
821
870
  EvaluationSummary.add_member(:application_type, Shapes::ShapeRef.new(shape: ApplicationType, location_name: "applicationType"))
822
871
  EvaluationSummary.struct_class = Types::EvaluationSummary
823
872
 
@@ -1701,13 +1750,13 @@ module Aws::Bedrock
1701
1750
  QueryTransformationConfiguration.struct_class = Types::QueryTransformationConfiguration
1702
1751
 
1703
1752
  RAGConfig.add_member(:knowledge_base_config, Shapes::ShapeRef.new(shape: KnowledgeBaseConfig, location_name: "knowledgeBaseConfig"))
1753
+ RAGConfig.add_member(:precomputed_rag_source_config, Shapes::ShapeRef.new(shape: EvaluationPrecomputedRagSourceConfig, location_name: "precomputedRagSourceConfig"))
1704
1754
  RAGConfig.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
1705
1755
  RAGConfig.add_member_subclass(:knowledge_base_config, Types::RAGConfig::KnowledgeBaseConfig)
1756
+ RAGConfig.add_member_subclass(:precomputed_rag_source_config, Types::RAGConfig::PrecomputedRagSourceConfig)
1706
1757
  RAGConfig.add_member_subclass(:unknown, Types::RAGConfig::Unknown)
1707
1758
  RAGConfig.struct_class = Types::RAGConfig
1708
1759
 
1709
- RAGIdentifiers.member = Shapes::ShapeRef.new(shape: KnowledgeBaseId)
1710
-
1711
1760
  RAGStopSequences.member = Shapes::ShapeRef.new(shape: RAGStopSequencesMemberString)
1712
1761
 
1713
1762
  RagConfigs.member = Shapes::ShapeRef.new(shape: RAGConfig)
@@ -1571,6 +1571,32 @@ module Aws::Bedrock
1571
1571
  class Unknown < EvaluationInferenceConfig; end
1572
1572
  end
1573
1573
 
1574
+ # Identifies the models, Knowledge Bases, or other RAG sources evaluated
1575
+ # in a model or Knowledge Base evaluation job.
1576
+ #
1577
+ # @!attribute [rw] model_config_summary
1578
+ # A summary of the models used in an Amazon Bedrock model evaluation
1579
+ # job. These resources can be models in Amazon Bedrock or models
1580
+ # outside of Amazon Bedrock that you use to generate your own
1581
+ # inference response data.
1582
+ # @return [Types::EvaluationModelConfigSummary]
1583
+ #
1584
+ # @!attribute [rw] rag_config_summary
1585
+ # A summary of the RAG resources used in an Amazon Bedrock Knowledge
1586
+ # Base evaluation job. These resources can be Knowledge Bases in
1587
+ # Amazon Bedrock or RAG sources outside of Amazon Bedrock that you use
1588
+ # to generate your own inference response data.
1589
+ # @return [Types::EvaluationRagConfigSummary]
1590
+ #
1591
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationInferenceConfigSummary AWS API Documentation
1592
+ #
1593
+ class EvaluationInferenceConfigSummary < Struct.new(
1594
+ :model_config_summary,
1595
+ :rag_config_summary)
1596
+ SENSITIVE = []
1597
+ include Aws::Structure
1598
+ end
1599
+
1574
1600
  # Defines the models used in the model evaluation job.
1575
1601
  #
1576
1602
  # @note EvaluationModelConfig is a union - when making an API calls you must set exactly one of the members.
@@ -1582,19 +1608,51 @@ module Aws::Bedrock
1582
1608
  # parameters you want used.
1583
1609
  # @return [Types::EvaluationBedrockModel]
1584
1610
  #
1611
+ # @!attribute [rw] precomputed_inference_source
1612
+ # Defines the model used to generate inference response data for a
1613
+ # model evaluation job where you provide your own inference response
1614
+ # data.
1615
+ # @return [Types::EvaluationPrecomputedInferenceSource]
1616
+ #
1585
1617
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationModelConfig AWS API Documentation
1586
1618
  #
1587
1619
  class EvaluationModelConfig < Struct.new(
1588
1620
  :bedrock_model,
1621
+ :precomputed_inference_source,
1589
1622
  :unknown)
1590
1623
  SENSITIVE = []
1591
1624
  include Aws::Structure
1592
1625
  include Aws::Structure::Union
1593
1626
 
1594
1627
  class BedrockModel < EvaluationModelConfig; end
1628
+ class PrecomputedInferenceSource < EvaluationModelConfig; end
1595
1629
  class Unknown < EvaluationModelConfig; end
1596
1630
  end
1597
1631
 
1632
+ # A summary of the models used in an Amazon Bedrock model evaluation
1633
+ # job. These resources can be models in Amazon Bedrock or models outside
1634
+ # of Amazon Bedrock that you use to generate your own inference response
1635
+ # data.
1636
+ #
1637
+ # @!attribute [rw] bedrock_model_identifiers
1638
+ # The Amazon Resource Names (ARNs) of the models used for the
1639
+ # evaluation job.
1640
+ # @return [Array<String>]
1641
+ #
1642
+ # @!attribute [rw] precomputed_inference_source_identifiers
1643
+ # A label that identifies the models used for a model evaluation job
1644
+ # where you provide your own inference response data.
1645
+ # @return [Array<String>]
1646
+ #
1647
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationModelConfigSummary AWS API Documentation
1648
+ #
1649
+ class EvaluationModelConfigSummary < Struct.new(
1650
+ :bedrock_model_identifiers,
1651
+ :precomputed_inference_source_identifiers)
1652
+ SENSITIVE = []
1653
+ include Aws::Structure
1654
+ end
1655
+
1598
1656
  # The Amazon S3 location where the results of your evaluation job are
1599
1657
  # saved.
1600
1658
  #
@@ -1610,6 +1668,115 @@ module Aws::Bedrock
1610
1668
  include Aws::Structure
1611
1669
  end
1612
1670
 
1671
+ # A summary of a model used for a model evaluation job where you provide
1672
+ # your own inference response data.
1673
+ #
1674
+ # @!attribute [rw] inference_source_identifier
1675
+ # A label that identifies a model used in a model evaluation job where
1676
+ # you provide your own inference response data.
1677
+ # @return [String]
1678
+ #
1679
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationPrecomputedInferenceSource AWS API Documentation
1680
+ #
1681
+ class EvaluationPrecomputedInferenceSource < Struct.new(
1682
+ :inference_source_identifier)
1683
+ SENSITIVE = []
1684
+ include Aws::Structure
1685
+ end
1686
+
1687
+ # A summary of a RAG source used for a Knowledge Base evaluation job
1688
+ # where you provide your own inference response data.
1689
+ #
1690
+ # @note EvaluationPrecomputedRagSourceConfig is a union - when making an API calls you must set exactly one of the members.
1691
+ #
1692
+ # @note EvaluationPrecomputedRagSourceConfig is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of EvaluationPrecomputedRagSourceConfig corresponding to the set member.
1693
+ #
1694
+ # @!attribute [rw] retrieve_source_config
1695
+ # A summary of a RAG source used for a retrieve-only Knowledge Base
1696
+ # evaluation job where you provide your own inference response data.
1697
+ # @return [Types::EvaluationPrecomputedRetrieveSourceConfig]
1698
+ #
1699
+ # @!attribute [rw] retrieve_and_generate_source_config
1700
+ # A summary of a RAG source used for a retrieve-and-generate Knowledge
1701
+ # Base evaluation job where you provide your own inference response
1702
+ # data.
1703
+ # @return [Types::EvaluationPrecomputedRetrieveAndGenerateSourceConfig]
1704
+ #
1705
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationPrecomputedRagSourceConfig AWS API Documentation
1706
+ #
1707
+ class EvaluationPrecomputedRagSourceConfig < Struct.new(
1708
+ :retrieve_source_config,
1709
+ :retrieve_and_generate_source_config,
1710
+ :unknown)
1711
+ SENSITIVE = []
1712
+ include Aws::Structure
1713
+ include Aws::Structure::Union
1714
+
1715
+ class RetrieveSourceConfig < EvaluationPrecomputedRagSourceConfig; end
1716
+ class RetrieveAndGenerateSourceConfig < EvaluationPrecomputedRagSourceConfig; end
1717
+ class Unknown < EvaluationPrecomputedRagSourceConfig; end
1718
+ end
1719
+
1720
+ # A summary of a RAG source used for a retrieve-and-generate Knowledge
1721
+ # Base evaluation job where you provide your own inference response
1722
+ # data.
1723
+ #
1724
+ # @!attribute [rw] rag_source_identifier
1725
+ # A label that identifies the RAG source used for a
1726
+ # retrieve-and-generate Knowledge Base evaluation job where you
1727
+ # provide your own inference response data.
1728
+ # @return [String]
1729
+ #
1730
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationPrecomputedRetrieveAndGenerateSourceConfig AWS API Documentation
1731
+ #
1732
+ class EvaluationPrecomputedRetrieveAndGenerateSourceConfig < Struct.new(
1733
+ :rag_source_identifier)
1734
+ SENSITIVE = []
1735
+ include Aws::Structure
1736
+ end
1737
+
1738
+ # A summary of a RAG source used for a retrieve-only Knowledge Base
1739
+ # evaluation job where you provide your own inference response data.
1740
+ #
1741
+ # @!attribute [rw] rag_source_identifier
1742
+ # A label that identifies the RAG source used for a retrieve-only
1743
+ # Knowledge Base evaluation job where you provide your own inference
1744
+ # response data.
1745
+ # @return [String]
1746
+ #
1747
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationPrecomputedRetrieveSourceConfig AWS API Documentation
1748
+ #
1749
+ class EvaluationPrecomputedRetrieveSourceConfig < Struct.new(
1750
+ :rag_source_identifier)
1751
+ SENSITIVE = []
1752
+ include Aws::Structure
1753
+ end
1754
+
1755
+ # A summary of the RAG resources used in an Amazon Bedrock Knowledge
1756
+ # Base evaluation job. These resources can be Knowledge Bases in Amazon
1757
+ # Bedrock or RAG sources outside of Amazon Bedrock that you use to
1758
+ # generate your own inference response data.
1759
+ #
1760
+ # @!attribute [rw] bedrock_knowledge_base_identifiers
1761
+ # The Amazon Resource Names (ARNs) of the Knowledge Base resources
1762
+ # used for a Knowledge Base evaluation job where Amazon Bedrock
1763
+ # invokes the Knowledge Base for you.
1764
+ # @return [Array<String>]
1765
+ #
1766
+ # @!attribute [rw] precomputed_rag_source_identifiers
1767
+ # A label that identifies the RAG sources used for a Knowledge Base
1768
+ # evaluation job where you provide your own inference response data.
1769
+ # @return [Array<String>]
1770
+ #
1771
+ # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/EvaluationRagConfigSummary AWS API Documentation
1772
+ #
1773
+ class EvaluationRagConfigSummary < Struct.new(
1774
+ :bedrock_knowledge_base_identifiers,
1775
+ :precomputed_rag_source_identifiers)
1776
+ SENSITIVE = []
1777
+ include Aws::Structure
1778
+ end
1779
+
1613
1780
  # Summary information of an evaluation job.
1614
1781
  #
1615
1782
  # @!attribute [rw] job_arn
@@ -1651,6 +1818,11 @@ module Aws::Bedrock
1651
1818
  # metrics for a knowledge base evaluation job.
1652
1819
  # @return [Array<String>]
1653
1820
  #
1821
+ # @!attribute [rw] inference_config_summary
1822
+ # Identifies the models, Knowledge Bases, or other RAG sources
1823
+ # evaluated in a model or Knowledge Base evaluation job.
1824
+ # @return [Types::EvaluationInferenceConfigSummary]
1825
+ #
1654
1826
  # @!attribute [rw] application_type
1655
1827
  # Specifies whether the evaluation job is for evaluating a model or
1656
1828
  # evaluating a knowledge base (retrieval and response generation).
@@ -1668,6 +1840,7 @@ module Aws::Bedrock
1668
1840
  :model_identifiers,
1669
1841
  :rag_identifiers,
1670
1842
  :evaluator_model_identifiers,
1843
+ :inference_config_summary,
1671
1844
  :application_type)
1672
1845
  SENSITIVE = []
1673
1846
  include Aws::Structure
@@ -6315,16 +6488,23 @@ module Aws::Bedrock
6315
6488
  # response generation.
6316
6489
  # @return [Types::KnowledgeBaseConfig]
6317
6490
  #
6491
+ # @!attribute [rw] precomputed_rag_source_config
6492
+ # Contains configuration details about the RAG source used to generate
6493
+ # inference response data for a Knowledge Base evaluation job.
6494
+ # @return [Types::EvaluationPrecomputedRagSourceConfig]
6495
+ #
6318
6496
  # @see http://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/RAGConfig AWS API Documentation
6319
6497
  #
6320
6498
  class RAGConfig < Struct.new(
6321
6499
  :knowledge_base_config,
6500
+ :precomputed_rag_source_config,
6322
6501
  :unknown)
6323
6502
  SENSITIVE = []
6324
6503
  include Aws::Structure
6325
6504
  include Aws::Structure::Union
6326
6505
 
6327
6506
  class KnowledgeBaseConfig < RAGConfig; end
6507
+ class PrecomputedRagSourceConfig < RAGConfig; end
6328
6508
  class Unknown < RAGConfig; end
6329
6509
  end
6330
6510
 
@@ -55,7 +55,7 @@ module Aws::Bedrock
55
55
  autoload :EndpointProvider, 'aws-sdk-bedrock/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-bedrock/endpoints'
57
57
 
58
- GEM_VERSION = '1.38.0'
58
+ GEM_VERSION = '1.39.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -163,6 +163,9 @@ module Aws
163
163
  performance_config: {
164
164
  latency: ("standard" | "optimized")?
165
165
  }?
166
+ }?,
167
+ precomputed_inference_source: {
168
+ inference_source_identifier: ::String
166
169
  }?
167
170
  },
168
171
  ]?,
@@ -376,6 +379,14 @@ module Aws
376
379
  }?
377
380
  }?
378
381
  }?
382
+ }?,
383
+ precomputed_rag_source_config: {
384
+ retrieve_source_config: {
385
+ rag_source_identifier: ::String
386
+ }?,
387
+ retrieve_and_generate_source_config: {
388
+ rag_source_identifier: ::String
389
+ }?
379
390
  }?
380
391
  },
381
392
  ]?
data/sig/types.rbs CHANGED
@@ -426,22 +426,72 @@ module Aws::Bedrock
426
426
  end
427
427
  end
428
428
 
429
+ class EvaluationInferenceConfigSummary
430
+ attr_accessor model_config_summary: Types::EvaluationModelConfigSummary
431
+ attr_accessor rag_config_summary: Types::EvaluationRagConfigSummary
432
+ SENSITIVE: []
433
+ end
434
+
429
435
  class EvaluationModelConfig
430
436
  attr_accessor bedrock_model: Types::EvaluationBedrockModel
437
+ attr_accessor precomputed_inference_source: Types::EvaluationPrecomputedInferenceSource
431
438
  attr_accessor unknown: untyped
432
439
  SENSITIVE: []
433
440
 
434
441
  class BedrockModel < EvaluationModelConfig
435
442
  end
443
+ class PrecomputedInferenceSource < EvaluationModelConfig
444
+ end
436
445
  class Unknown < EvaluationModelConfig
437
446
  end
438
447
  end
439
448
 
449
+ class EvaluationModelConfigSummary
450
+ attr_accessor bedrock_model_identifiers: ::Array[::String]
451
+ attr_accessor precomputed_inference_source_identifiers: ::Array[::String]
452
+ SENSITIVE: []
453
+ end
454
+
440
455
  class EvaluationOutputDataConfig
441
456
  attr_accessor s3_uri: ::String
442
457
  SENSITIVE: []
443
458
  end
444
459
 
460
+ class EvaluationPrecomputedInferenceSource
461
+ attr_accessor inference_source_identifier: ::String
462
+ SENSITIVE: []
463
+ end
464
+
465
+ class EvaluationPrecomputedRagSourceConfig
466
+ attr_accessor retrieve_source_config: Types::EvaluationPrecomputedRetrieveSourceConfig
467
+ attr_accessor retrieve_and_generate_source_config: Types::EvaluationPrecomputedRetrieveAndGenerateSourceConfig
468
+ attr_accessor unknown: untyped
469
+ SENSITIVE: []
470
+
471
+ class RetrieveSourceConfig < EvaluationPrecomputedRagSourceConfig
472
+ end
473
+ class RetrieveAndGenerateSourceConfig < EvaluationPrecomputedRagSourceConfig
474
+ end
475
+ class Unknown < EvaluationPrecomputedRagSourceConfig
476
+ end
477
+ end
478
+
479
+ class EvaluationPrecomputedRetrieveAndGenerateSourceConfig
480
+ attr_accessor rag_source_identifier: ::String
481
+ SENSITIVE: []
482
+ end
483
+
484
+ class EvaluationPrecomputedRetrieveSourceConfig
485
+ attr_accessor rag_source_identifier: ::String
486
+ SENSITIVE: []
487
+ end
488
+
489
+ class EvaluationRagConfigSummary
490
+ attr_accessor bedrock_knowledge_base_identifiers: ::Array[::String]
491
+ attr_accessor precomputed_rag_source_identifiers: ::Array[::String]
492
+ SENSITIVE: []
493
+ end
494
+
445
495
  class EvaluationSummary
446
496
  attr_accessor job_arn: ::String
447
497
  attr_accessor job_name: ::String
@@ -452,6 +502,7 @@ module Aws::Bedrock
452
502
  attr_accessor model_identifiers: ::Array[::String]
453
503
  attr_accessor rag_identifiers: ::Array[::String]
454
504
  attr_accessor evaluator_model_identifiers: ::Array[::String]
505
+ attr_accessor inference_config_summary: Types::EvaluationInferenceConfigSummary
455
506
  attr_accessor application_type: ("ModelEvaluation" | "RagEvaluation")
456
507
  SENSITIVE: []
457
508
  end
@@ -1534,11 +1585,14 @@ module Aws::Bedrock
1534
1585
 
1535
1586
  class RAGConfig
1536
1587
  attr_accessor knowledge_base_config: Types::KnowledgeBaseConfig
1588
+ attr_accessor precomputed_rag_source_config: Types::EvaluationPrecomputedRagSourceConfig
1537
1589
  attr_accessor unknown: untyped
1538
1590
  SENSITIVE: []
1539
1591
 
1540
1592
  class KnowledgeBaseConfig < RAGConfig
1541
1593
  end
1594
+ class PrecomputedRagSourceConfig < RAGConfig
1595
+ end
1542
1596
  class Unknown < RAGConfig
1543
1597
  end
1544
1598
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bedrock
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.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: 2025-03-19 00:00:00.000000000 Z
11
+ date: 2025-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core