@aws-sdk/client-bedrock 3.699.0 → 3.703.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.
- package/dist-cjs/index.js +667 -33
- package/dist-es/models/models_0.js +214 -24
- package/dist-es/protocols/Aws_restJson1.js +407 -3
- package/dist-types/commands/BatchDeleteEvaluationJobCommand.d.ts +3 -1
- package/dist-types/commands/CreateEvaluationJobCommand.d.ts +156 -2
- package/dist-types/commands/GetEvaluationJobCommand.d.ts +156 -3
- package/dist-types/commands/ListEvaluationJobsCommand.d.ts +10 -2
- package/dist-types/commands/StopEvaluationJobCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +1171 -146
- package/dist-types/ts3.4/models/models_0.d.ts +549 -52
- package/package.json +1 -1
|
@@ -80,6 +80,10 @@ export class ValidationException extends __BaseException {
|
|
|
80
80
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
export const ApplicationType = {
|
|
84
|
+
MODEL_EVALUATION: "ModelEvaluation",
|
|
85
|
+
RAG_EVALUATION: "RagEvaluation",
|
|
86
|
+
};
|
|
83
87
|
export var EvaluationDatasetLocation;
|
|
84
88
|
(function (EvaluationDatasetLocation) {
|
|
85
89
|
EvaluationDatasetLocation.visit = (value, visitor) => {
|
|
@@ -95,6 +99,14 @@ export const EvaluationTaskType = {
|
|
|
95
99
|
QUESTION_AND_ANSWER: "QuestionAndAnswer",
|
|
96
100
|
SUMMARIZATION: "Summarization",
|
|
97
101
|
};
|
|
102
|
+
export var EvaluatorModelConfig;
|
|
103
|
+
(function (EvaluatorModelConfig) {
|
|
104
|
+
EvaluatorModelConfig.visit = (value, visitor) => {
|
|
105
|
+
if (value.bedrockEvaluatorModels !== undefined)
|
|
106
|
+
return visitor.bedrockEvaluatorModels(value.bedrockEvaluatorModels);
|
|
107
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
108
|
+
};
|
|
109
|
+
})(EvaluatorModelConfig || (EvaluatorModelConfig = {}));
|
|
98
110
|
export var EvaluationConfig;
|
|
99
111
|
(function (EvaluationConfig) {
|
|
100
112
|
EvaluationConfig.visit = (value, visitor) => {
|
|
@@ -113,14 +125,21 @@ export var EvaluationModelConfig;
|
|
|
113
125
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
114
126
|
};
|
|
115
127
|
})(EvaluationModelConfig || (EvaluationModelConfig = {}));
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
128
|
+
export const ExternalSourceType = {
|
|
129
|
+
BYTE_CONTENT: "BYTE_CONTENT",
|
|
130
|
+
S3: "S3",
|
|
131
|
+
};
|
|
132
|
+
export const QueryTransformationType = {
|
|
133
|
+
QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION",
|
|
134
|
+
};
|
|
135
|
+
export const SearchType = {
|
|
136
|
+
HYBRID: "HYBRID",
|
|
137
|
+
SEMANTIC: "SEMANTIC",
|
|
138
|
+
};
|
|
139
|
+
export const RetrieveAndGenerateType = {
|
|
140
|
+
EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
|
|
141
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
142
|
+
};
|
|
124
143
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
125
144
|
constructor(opts) {
|
|
126
145
|
super({
|
|
@@ -341,6 +360,66 @@ export const FineTuningJobStatus = {
|
|
|
341
360
|
STOPPED: "Stopped",
|
|
342
361
|
STOPPING: "Stopping",
|
|
343
362
|
};
|
|
363
|
+
export var RetrievalFilter;
|
|
364
|
+
(function (RetrievalFilter) {
|
|
365
|
+
RetrievalFilter.visit = (value, visitor) => {
|
|
366
|
+
if (value.equals !== undefined)
|
|
367
|
+
return visitor.equals(value.equals);
|
|
368
|
+
if (value.notEquals !== undefined)
|
|
369
|
+
return visitor.notEquals(value.notEquals);
|
|
370
|
+
if (value.greaterThan !== undefined)
|
|
371
|
+
return visitor.greaterThan(value.greaterThan);
|
|
372
|
+
if (value.greaterThanOrEquals !== undefined)
|
|
373
|
+
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
374
|
+
if (value.lessThan !== undefined)
|
|
375
|
+
return visitor.lessThan(value.lessThan);
|
|
376
|
+
if (value.lessThanOrEquals !== undefined)
|
|
377
|
+
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
378
|
+
if (value.in !== undefined)
|
|
379
|
+
return visitor.in(value.in);
|
|
380
|
+
if (value.notIn !== undefined)
|
|
381
|
+
return visitor.notIn(value.notIn);
|
|
382
|
+
if (value.startsWith !== undefined)
|
|
383
|
+
return visitor.startsWith(value.startsWith);
|
|
384
|
+
if (value.listContains !== undefined)
|
|
385
|
+
return visitor.listContains(value.listContains);
|
|
386
|
+
if (value.stringContains !== undefined)
|
|
387
|
+
return visitor.stringContains(value.stringContains);
|
|
388
|
+
if (value.andAll !== undefined)
|
|
389
|
+
return visitor.andAll(value.andAll);
|
|
390
|
+
if (value.orAll !== undefined)
|
|
391
|
+
return visitor.orAll(value.orAll);
|
|
392
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
393
|
+
};
|
|
394
|
+
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
395
|
+
export var KnowledgeBaseConfig;
|
|
396
|
+
(function (KnowledgeBaseConfig) {
|
|
397
|
+
KnowledgeBaseConfig.visit = (value, visitor) => {
|
|
398
|
+
if (value.retrieveConfig !== undefined)
|
|
399
|
+
return visitor.retrieveConfig(value.retrieveConfig);
|
|
400
|
+
if (value.retrieveAndGenerateConfig !== undefined)
|
|
401
|
+
return visitor.retrieveAndGenerateConfig(value.retrieveAndGenerateConfig);
|
|
402
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
403
|
+
};
|
|
404
|
+
})(KnowledgeBaseConfig || (KnowledgeBaseConfig = {}));
|
|
405
|
+
export var RAGConfig;
|
|
406
|
+
(function (RAGConfig) {
|
|
407
|
+
RAGConfig.visit = (value, visitor) => {
|
|
408
|
+
if (value.knowledgeBaseConfig !== undefined)
|
|
409
|
+
return visitor.knowledgeBaseConfig(value.knowledgeBaseConfig);
|
|
410
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
411
|
+
};
|
|
412
|
+
})(RAGConfig || (RAGConfig = {}));
|
|
413
|
+
export var EvaluationInferenceConfig;
|
|
414
|
+
(function (EvaluationInferenceConfig) {
|
|
415
|
+
EvaluationInferenceConfig.visit = (value, visitor) => {
|
|
416
|
+
if (value.models !== undefined)
|
|
417
|
+
return visitor.models(value.models);
|
|
418
|
+
if (value.ragConfigs !== undefined)
|
|
419
|
+
return visitor.ragConfigs(value.ragConfigs);
|
|
420
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
421
|
+
};
|
|
422
|
+
})(EvaluationInferenceConfig || (EvaluationInferenceConfig = {}));
|
|
344
423
|
export const BatchDeleteEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
345
424
|
...obj,
|
|
346
425
|
...(obj.jobIdentifiers && { jobIdentifiers: SENSITIVE_STRING }),
|
|
@@ -375,6 +454,7 @@ export const AutomatedEvaluationConfigFilterSensitiveLog = (obj) => ({
|
|
|
375
454
|
...(obj.datasetMetricConfigs && {
|
|
376
455
|
datasetMetricConfigs: obj.datasetMetricConfigs.map((item) => EvaluationDatasetMetricConfigFilterSensitiveLog(item)),
|
|
377
456
|
}),
|
|
457
|
+
...(obj.evaluatorModelConfig && { evaluatorModelConfig: obj.evaluatorModelConfig }),
|
|
378
458
|
});
|
|
379
459
|
export const HumanEvaluationCustomMetricFilterSensitiveLog = (obj) => ({
|
|
380
460
|
...obj,
|
|
@@ -415,27 +495,37 @@ export const EvaluationModelConfigFilterSensitiveLog = (obj) => {
|
|
|
415
495
|
if (obj.$unknown !== undefined)
|
|
416
496
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
417
497
|
};
|
|
418
|
-
export const
|
|
419
|
-
if (obj.models !== undefined)
|
|
420
|
-
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
421
|
-
if (obj.$unknown !== undefined)
|
|
422
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
423
|
-
};
|
|
424
|
-
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
498
|
+
export const PromptTemplateFilterSensitiveLog = (obj) => ({
|
|
425
499
|
...obj,
|
|
426
|
-
...(obj.
|
|
427
|
-
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
428
|
-
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
500
|
+
...(obj.textPromptTemplate && { textPromptTemplate: SENSITIVE_STRING }),
|
|
429
501
|
});
|
|
430
|
-
export const
|
|
502
|
+
export const ExternalSourcesGenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
431
503
|
...obj,
|
|
432
|
-
...(obj.
|
|
504
|
+
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
433
505
|
});
|
|
434
|
-
export const
|
|
506
|
+
export const ByteContentDocFilterSensitiveLog = (obj) => ({
|
|
435
507
|
...obj,
|
|
436
|
-
...(obj.
|
|
437
|
-
...(obj.
|
|
438
|
-
|
|
508
|
+
...(obj.identifier && { identifier: SENSITIVE_STRING }),
|
|
509
|
+
...(obj.data && { data: SENSITIVE_STRING }),
|
|
510
|
+
});
|
|
511
|
+
export const ExternalSourceFilterSensitiveLog = (obj) => ({
|
|
512
|
+
...obj,
|
|
513
|
+
...(obj.byteContent && { byteContent: ByteContentDocFilterSensitiveLog(obj.byteContent) }),
|
|
514
|
+
});
|
|
515
|
+
export const ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
516
|
+
...obj,
|
|
517
|
+
...(obj.sources && { sources: obj.sources.map((item) => ExternalSourceFilterSensitiveLog(item)) }),
|
|
518
|
+
...(obj.generationConfiguration && {
|
|
519
|
+
generationConfiguration: ExternalSourcesGenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
520
|
+
}),
|
|
521
|
+
});
|
|
522
|
+
export const GenerationConfigurationFilterSensitiveLog = (obj) => ({
|
|
523
|
+
...obj,
|
|
524
|
+
...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
|
|
525
|
+
});
|
|
526
|
+
export const GetEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
527
|
+
...obj,
|
|
528
|
+
...(obj.jobIdentifier && { jobIdentifier: SENSITIVE_STRING }),
|
|
439
529
|
});
|
|
440
530
|
export const StopEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
441
531
|
...obj,
|
|
@@ -543,3 +633,103 @@ export const ListModelInvocationJobsResponseFilterSensitiveLog = (obj) => ({
|
|
|
543
633
|
invocationJobSummaries: obj.invocationJobSummaries.map((item) => ModelInvocationJobSummaryFilterSensitiveLog(item)),
|
|
544
634
|
}),
|
|
545
635
|
});
|
|
636
|
+
export const RetrievalFilterFilterSensitiveLog = (obj) => {
|
|
637
|
+
if (obj.equals !== undefined)
|
|
638
|
+
return { equals: obj.equals };
|
|
639
|
+
if (obj.notEquals !== undefined)
|
|
640
|
+
return { notEquals: obj.notEquals };
|
|
641
|
+
if (obj.greaterThan !== undefined)
|
|
642
|
+
return { greaterThan: obj.greaterThan };
|
|
643
|
+
if (obj.greaterThanOrEquals !== undefined)
|
|
644
|
+
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
645
|
+
if (obj.lessThan !== undefined)
|
|
646
|
+
return { lessThan: obj.lessThan };
|
|
647
|
+
if (obj.lessThanOrEquals !== undefined)
|
|
648
|
+
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
649
|
+
if (obj.in !== undefined)
|
|
650
|
+
return { in: obj.in };
|
|
651
|
+
if (obj.notIn !== undefined)
|
|
652
|
+
return { notIn: obj.notIn };
|
|
653
|
+
if (obj.startsWith !== undefined)
|
|
654
|
+
return { startsWith: obj.startsWith };
|
|
655
|
+
if (obj.listContains !== undefined)
|
|
656
|
+
return { listContains: obj.listContains };
|
|
657
|
+
if (obj.stringContains !== undefined)
|
|
658
|
+
return { stringContains: obj.stringContains };
|
|
659
|
+
if (obj.andAll !== undefined)
|
|
660
|
+
return { andAll: SENSITIVE_STRING };
|
|
661
|
+
if (obj.orAll !== undefined)
|
|
662
|
+
return { orAll: SENSITIVE_STRING };
|
|
663
|
+
if (obj.$unknown !== undefined)
|
|
664
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
665
|
+
};
|
|
666
|
+
export const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = (obj) => ({
|
|
667
|
+
...obj,
|
|
668
|
+
...(obj.filter && { filter: SENSITIVE_STRING }),
|
|
669
|
+
});
|
|
670
|
+
export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
671
|
+
...obj,
|
|
672
|
+
...(obj.vectorSearchConfiguration && {
|
|
673
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
674
|
+
}),
|
|
675
|
+
});
|
|
676
|
+
export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
677
|
+
...obj,
|
|
678
|
+
...(obj.retrievalConfiguration && {
|
|
679
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
680
|
+
}),
|
|
681
|
+
...(obj.generationConfiguration && {
|
|
682
|
+
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
683
|
+
}),
|
|
684
|
+
});
|
|
685
|
+
export const RetrieveConfigFilterSensitiveLog = (obj) => ({
|
|
686
|
+
...obj,
|
|
687
|
+
...(obj.knowledgeBaseRetrievalConfiguration && {
|
|
688
|
+
knowledgeBaseRetrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.knowledgeBaseRetrievalConfiguration),
|
|
689
|
+
}),
|
|
690
|
+
});
|
|
691
|
+
export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
692
|
+
...obj,
|
|
693
|
+
...(obj.knowledgeBaseConfiguration && {
|
|
694
|
+
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
695
|
+
}),
|
|
696
|
+
...(obj.externalSourcesConfiguration && {
|
|
697
|
+
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
698
|
+
}),
|
|
699
|
+
});
|
|
700
|
+
export const KnowledgeBaseConfigFilterSensitiveLog = (obj) => {
|
|
701
|
+
if (obj.retrieveConfig !== undefined)
|
|
702
|
+
return { retrieveConfig: RetrieveConfigFilterSensitiveLog(obj.retrieveConfig) };
|
|
703
|
+
if (obj.retrieveAndGenerateConfig !== undefined)
|
|
704
|
+
return {
|
|
705
|
+
retrieveAndGenerateConfig: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfig),
|
|
706
|
+
};
|
|
707
|
+
if (obj.$unknown !== undefined)
|
|
708
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
709
|
+
};
|
|
710
|
+
export const RAGConfigFilterSensitiveLog = (obj) => {
|
|
711
|
+
if (obj.knowledgeBaseConfig !== undefined)
|
|
712
|
+
return { knowledgeBaseConfig: KnowledgeBaseConfigFilterSensitiveLog(obj.knowledgeBaseConfig) };
|
|
713
|
+
if (obj.$unknown !== undefined)
|
|
714
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
715
|
+
};
|
|
716
|
+
export const EvaluationInferenceConfigFilterSensitiveLog = (obj) => {
|
|
717
|
+
if (obj.models !== undefined)
|
|
718
|
+
return { models: obj.models.map((item) => EvaluationModelConfigFilterSensitiveLog(item)) };
|
|
719
|
+
if (obj.ragConfigs !== undefined)
|
|
720
|
+
return { ragConfigs: obj.ragConfigs.map((item) => RAGConfigFilterSensitiveLog(item)) };
|
|
721
|
+
if (obj.$unknown !== undefined)
|
|
722
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
723
|
+
};
|
|
724
|
+
export const CreateEvaluationJobRequestFilterSensitiveLog = (obj) => ({
|
|
725
|
+
...obj,
|
|
726
|
+
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
727
|
+
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
728
|
+
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
729
|
+
});
|
|
730
|
+
export const GetEvaluationJobResponseFilterSensitiveLog = (obj) => ({
|
|
731
|
+
...obj,
|
|
732
|
+
...(obj.jobDescription && { jobDescription: SENSITIVE_STRING }),
|
|
733
|
+
...(obj.evaluationConfig && { evaluationConfig: EvaluationConfigFilterSensitiveLog(obj.evaluationConfig) }),
|
|
734
|
+
...(obj.inferenceConfig && { inferenceConfig: EvaluationInferenceConfigFilterSensitiveLog(obj.inferenceConfig) }),
|
|
735
|
+
});
|