@aws-sdk/client-bedrock-agent 3.701.0 → 3.702.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 CHANGED
@@ -90,6 +90,7 @@ __export(src_exports, {
90
90
  DeletePromptCommand: () => DeletePromptCommand,
91
91
  DisassociateAgentKnowledgeBaseCommand: () => DisassociateAgentKnowledgeBaseCommand,
92
92
  DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog: () => DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
93
+ EmbeddingDataType: () => EmbeddingDataType,
93
94
  FlowConditionFilterSensitiveLog: () => FlowConditionFilterSensitiveLog,
94
95
  FlowConnectionConfiguration: () => FlowConnectionConfiguration,
95
96
  FlowConnectionType: () => FlowConnectionType,
@@ -962,6 +963,10 @@ var SortOrder = {
962
963
  var KnowledgeBaseType = {
963
964
  VECTOR: "VECTOR"
964
965
  };
966
+ var EmbeddingDataType = {
967
+ BINARY: "BINARY",
968
+ FLOAT32: "FLOAT32"
969
+ };
965
970
  var KnowledgeBaseStorageType = {
966
971
  MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
967
972
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
@@ -5457,6 +5462,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
5457
5462
  IngestionJobSortByAttribute,
5458
5463
  SortOrder,
5459
5464
  KnowledgeBaseType,
5465
+ EmbeddingDataType,
5460
5466
  KnowledgeBaseStorageType,
5461
5467
  KnowledgeBaseStatus,
5462
5468
  APISchemaFilterSensitiveLog,
@@ -515,6 +515,10 @@ export const SortOrder = {
515
515
  export const KnowledgeBaseType = {
516
516
  VECTOR: "VECTOR",
517
517
  };
518
+ export const EmbeddingDataType = {
519
+ BINARY: "BINARY",
520
+ FLOAT32: "FLOAT32",
521
+ };
518
522
  export const KnowledgeBaseStorageType = {
519
523
  MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
520
524
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
@@ -77,6 +77,7 @@ declare const CreateKnowledgeBaseCommand_base: {
77
77
  * embeddingModelConfiguration: { // EmbeddingModelConfiguration
78
78
  * bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
79
79
  * dimensions: Number("int"),
80
+ * embeddingDataType: "FLOAT32" || "BINARY",
80
81
  * },
81
82
  * },
82
83
  * },
@@ -157,6 +158,7 @@ declare const CreateKnowledgeBaseCommand_base: {
157
158
  * // embeddingModelConfiguration: { // EmbeddingModelConfiguration
158
159
  * // bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
159
160
  * // dimensions: Number("int"),
161
+ * // embeddingDataType: "FLOAT32" || "BINARY",
160
162
  * // },
161
163
  * // },
162
164
  * // },
@@ -1,8 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
4
- import { GetAgentKnowledgeBaseRequest } from "../models/models_0";
5
- import { GetAgentKnowledgeBaseResponse } from "../models/models_1";
4
+ import { GetAgentKnowledgeBaseRequest, GetAgentKnowledgeBaseResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -53,6 +53,7 @@ declare const GetKnowledgeBaseCommand_base: {
53
53
  * // embeddingModelConfiguration: { // EmbeddingModelConfiguration
54
54
  * // bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
55
55
  * // dimensions: Number("int"),
56
+ * // embeddingDataType: "FLOAT32" || "BINARY",
56
57
  * // },
57
58
  * // },
58
59
  * // },
@@ -65,6 +65,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
65
65
  * embeddingModelConfiguration: { // EmbeddingModelConfiguration
66
66
  * bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
67
67
  * dimensions: Number("int"),
68
+ * embeddingDataType: "FLOAT32" || "BINARY",
68
69
  * },
69
70
  * },
70
71
  * },
@@ -142,6 +143,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
142
143
  * // embeddingModelConfiguration: { // EmbeddingModelConfiguration
143
144
  * // bedrockEmbeddingModelConfiguration: { // BedrockEmbeddingModelConfiguration
144
145
  * // dimensions: Number("int"),
146
+ * // embeddingDataType: "FLOAT32" || "BINARY",
145
147
  * // },
146
148
  * // },
147
149
  * // },
@@ -7370,6 +7370,18 @@ export declare const KnowledgeBaseType: {
7370
7370
  * @public
7371
7371
  */
7372
7372
  export type KnowledgeBaseType = (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
7373
+ /**
7374
+ * @public
7375
+ * @enum
7376
+ */
7377
+ export declare const EmbeddingDataType: {
7378
+ readonly BINARY: "BINARY";
7379
+ readonly FLOAT32: "FLOAT32";
7380
+ };
7381
+ /**
7382
+ * @public
7383
+ */
7384
+ export type EmbeddingDataType = (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
7373
7385
  /**
7374
7386
  * <p>The vector configuration details for the Bedrock embeddings model.</p>
7375
7387
  * @public
@@ -7380,6 +7392,15 @@ export interface BedrockEmbeddingModelConfiguration {
7380
7392
  * @public
7381
7393
  */
7382
7394
  dimensions?: number | undefined;
7395
+ /**
7396
+ * <p>The data type for the vectors when using a model to convert text into vector
7397
+ * embeddings. The model must support the specified data type for vector embeddings.
7398
+ * Floating-point (float32) is the default data type, and is supported by most models
7399
+ * for vector embeddings. See <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-supported.html">Supported embeddings
7400
+ * models</a> for information on the available models and their vector data types.</p>
7401
+ * @public
7402
+ */
7403
+ embeddingDataType?: EmbeddingDataType | undefined;
7383
7404
  }
7384
7405
  /**
7385
7406
  * <p>The configuration details for the embeddings model.</p>
@@ -7920,26 +7941,6 @@ export interface DisassociateAgentKnowledgeBaseRequest {
7920
7941
  */
7921
7942
  export interface DisassociateAgentKnowledgeBaseResponse {
7922
7943
  }
7923
- /**
7924
- * @public
7925
- */
7926
- export interface GetAgentKnowledgeBaseRequest {
7927
- /**
7928
- * <p>The unique identifier of the agent with which the knowledge base is associated.</p>
7929
- * @public
7930
- */
7931
- agentId: string | undefined;
7932
- /**
7933
- * <p>The version of the agent with which the knowledge base is associated.</p>
7934
- * @public
7935
- */
7936
- agentVersion: string | undefined;
7937
- /**
7938
- * <p>The unique identifier of the knowledge base associated with the agent.</p>
7939
- * @public
7940
- */
7941
- knowledgeBaseId: string | undefined;
7942
- }
7943
7944
  /**
7944
7945
  * @internal
7945
7946
  */
@@ -1,5 +1,25 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
2
  import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, FlowDefinition, FlowValidation, KnowledgeBase, KnowledgeBaseConfiguration, KnowledgeBaseState, KnowledgeBaseStatus, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType, StorageConfiguration } from "./models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export interface GetAgentKnowledgeBaseRequest {
7
+ /**
8
+ * <p>The unique identifier of the agent with which the knowledge base is associated.</p>
9
+ * @public
10
+ */
11
+ agentId: string | undefined;
12
+ /**
13
+ * <p>The version of the agent with which the knowledge base is associated.</p>
14
+ * @public
15
+ */
16
+ agentVersion: string | undefined;
17
+ /**
18
+ * <p>The unique identifier of the knowledge base associated with the agent.</p>
19
+ * @public
20
+ */
21
+ knowledgeBaseId: string | undefined;
22
+ }
3
23
  /**
4
24
  * @public
5
25
  */
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockAgentClient";
8
- import { GetAgentKnowledgeBaseRequest } from "../models/models_0";
9
- import { GetAgentKnowledgeBaseResponse } from "../models/models_1";
8
+ import {
9
+ GetAgentKnowledgeBaseRequest,
10
+ GetAgentKnowledgeBaseResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface GetAgentKnowledgeBaseCommandInput
@@ -2841,8 +2841,15 @@ export declare const KnowledgeBaseType: {
2841
2841
  };
2842
2842
  export type KnowledgeBaseType =
2843
2843
  (typeof KnowledgeBaseType)[keyof typeof KnowledgeBaseType];
2844
+ export declare const EmbeddingDataType: {
2845
+ readonly BINARY: "BINARY";
2846
+ readonly FLOAT32: "FLOAT32";
2847
+ };
2848
+ export type EmbeddingDataType =
2849
+ (typeof EmbeddingDataType)[keyof typeof EmbeddingDataType];
2844
2850
  export interface BedrockEmbeddingModelConfiguration {
2845
2851
  dimensions?: number | undefined;
2852
+ embeddingDataType?: EmbeddingDataType | undefined;
2846
2853
  }
2847
2854
  export interface EmbeddingModelConfiguration {
2848
2855
  bedrockEmbeddingModelConfiguration?:
@@ -2986,11 +2993,6 @@ export interface DisassociateAgentKnowledgeBaseRequest {
2986
2993
  knowledgeBaseId: string | undefined;
2987
2994
  }
2988
2995
  export interface DisassociateAgentKnowledgeBaseResponse {}
2989
- export interface GetAgentKnowledgeBaseRequest {
2990
- agentId: string | undefined;
2991
- agentVersion: string | undefined;
2992
- knowledgeBaseId: string | undefined;
2993
- }
2994
2996
  export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
2995
2997
  export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
2996
2998
  obj: CreateAgentActionGroupRequest
@@ -16,6 +16,11 @@ import {
16
16
  PromptTemplateType,
17
17
  StorageConfiguration,
18
18
  } from "./models_0";
19
+ export interface GetAgentKnowledgeBaseRequest {
20
+ agentId: string | undefined;
21
+ agentVersion: string | undefined;
22
+ knowledgeBaseId: string | undefined;
23
+ }
19
24
  export interface GetAgentKnowledgeBaseResponse {
20
25
  agentKnowledgeBase: AgentKnowledgeBase | undefined;
21
26
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Client for Node.js, Browser and React Native",
4
- "version": "3.701.0",
4
+ "version": "3.702.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent",