@aws-sdk/client-bedrock-agent 3.758.0 → 3.764.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
@@ -55,6 +55,7 @@ __export(src_exports, {
55
55
  ContentBlock: () => ContentBlock,
56
56
  ContentBlockFilterSensitiveLog: () => ContentBlockFilterSensitiveLog,
57
57
  ContentDataSourceType: () => ContentDataSourceType,
58
+ ContextEnrichmentType: () => ContextEnrichmentType,
58
59
  ConversationRole: () => ConversationRole,
59
60
  CrawlFilterConfigurationFilterSensitiveLog: () => CrawlFilterConfigurationFilterSensitiveLog,
60
61
  CrawlFilterConfigurationType: () => CrawlFilterConfigurationType,
@@ -109,6 +110,7 @@ __export(src_exports, {
109
110
  DocumentStatus: () => DocumentStatus,
110
111
  DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog: () => DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
111
112
  EmbeddingDataType: () => EmbeddingDataType,
113
+ EnrichmentStrategyMethod: () => EnrichmentStrategyMethod,
112
114
  FlowConditionFilterSensitiveLog: () => FlowConditionFilterSensitiveLog,
113
115
  FlowConnectionConfiguration: () => FlowConnectionConfiguration,
114
116
  FlowConnectionType: () => FlowConnectionType,
@@ -188,6 +190,7 @@ __export(src_exports, {
188
190
  MetadataAttributeValueFilterSensitiveLog: () => MetadataAttributeValueFilterSensitiveLog,
189
191
  MetadataSourceType: () => MetadataSourceType,
190
192
  MetadataValueType: () => MetadataValueType,
193
+ NeptuneAnalyticsConfigurationFilterSensitiveLog: () => NeptuneAnalyticsConfigurationFilterSensitiveLog,
191
194
  OrchestrationExecutor: () => OrchestrationExecutor,
192
195
  OrchestrationType: () => OrchestrationType,
193
196
  ParsingModality: () => ParsingModality,
@@ -239,6 +242,7 @@ __export(src_exports, {
239
242
  StartIngestionJobCommand: () => StartIngestionJobCommand,
240
243
  StepType: () => StepType,
241
244
  StopIngestionJobCommand: () => StopIngestionJobCommand,
245
+ StorageConfigurationFilterSensitiveLog: () => StorageConfigurationFilterSensitiveLog,
242
246
  StorageFlowNodeServiceConfiguration: () => StorageFlowNodeServiceConfiguration,
243
247
  SupplementalDataStorageLocationType: () => SupplementalDataStorageLocationType,
244
248
  SystemContentBlock: () => SystemContentBlock,
@@ -758,6 +762,12 @@ var ChunkingStrategy = {
758
762
  NONE: "NONE",
759
763
  SEMANTIC: "SEMANTIC"
760
764
  };
765
+ var EnrichmentStrategyMethod = {
766
+ CHUNK_ENTITY_EXTRACTION: "CHUNK_ENTITY_EXTRACTION"
767
+ };
768
+ var ContextEnrichmentType = {
769
+ BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL"
770
+ };
761
771
  var StepType = {
762
772
  POST_CHUNKING: "POST_CHUNKING"
763
773
  };
@@ -1064,24 +1074,6 @@ var SortOrder = {
1064
1074
  ASCENDING: "ASCENDING",
1065
1075
  DESCENDING: "DESCENDING"
1066
1076
  };
1067
- var ContentDataSourceType = {
1068
- CUSTOM: "CUSTOM",
1069
- S3: "S3"
1070
- };
1071
- var DocumentStatus = {
1072
- DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
1073
- DELETING: "DELETING",
1074
- FAILED: "FAILED",
1075
- IGNORED: "IGNORED",
1076
- INDEXED: "INDEXED",
1077
- IN_PROGRESS: "IN_PROGRESS",
1078
- METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
1079
- METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
1080
- NOT_FOUND: "NOT_FOUND",
1081
- PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
1082
- PENDING: "PENDING",
1083
- STARTING: "STARTING"
1084
- };
1085
1077
  var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1086
1078
  if (obj.s3 !== void 0)
1087
1079
  return { s3: obj.s3 };
@@ -4940,6 +4932,24 @@ var CreateFlowVersionCommand = class extends import_smithy_client.Command.classB
4940
4932
 
4941
4933
  // src/models/models_1.ts
4942
4934
 
4935
+ var ContentDataSourceType = {
4936
+ CUSTOM: "CUSTOM",
4937
+ S3: "S3"
4938
+ };
4939
+ var DocumentStatus = {
4940
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
4941
+ DELETING: "DELETING",
4942
+ FAILED: "FAILED",
4943
+ IGNORED: "IGNORED",
4944
+ INDEXED: "INDEXED",
4945
+ IN_PROGRESS: "IN_PROGRESS",
4946
+ METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
4947
+ METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
4948
+ NOT_FOUND: "NOT_FOUND",
4949
+ PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
4950
+ PENDING: "PENDING",
4951
+ STARTING: "STARTING"
4952
+ };
4943
4953
  var InlineContentType = {
4944
4954
  BYTE: "BYTE",
4945
4955
  TEXT: "TEXT"
@@ -4996,6 +5006,7 @@ var SupplementalDataStorageLocationType = {
4996
5006
  };
4997
5007
  var KnowledgeBaseStorageType = {
4998
5008
  MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
5009
+ NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS",
4999
5010
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
5000
5011
  PINECONE: "PINECONE",
5001
5012
  RDS: "RDS",
@@ -5089,16 +5100,32 @@ var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj)
5089
5100
  sqlKnowledgeBaseConfiguration: SqlKnowledgeBaseConfigurationFilterSensitiveLog(obj.sqlKnowledgeBaseConfiguration)
5090
5101
  }
5091
5102
  }), "KnowledgeBaseConfigurationFilterSensitiveLog");
5103
+ var NeptuneAnalyticsConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5104
+ ...obj,
5105
+ ...obj.graphArn && { graphArn: import_smithy_client.SENSITIVE_STRING }
5106
+ }), "NeptuneAnalyticsConfigurationFilterSensitiveLog");
5107
+ var StorageConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5108
+ ...obj,
5109
+ ...obj.neptuneAnalyticsConfiguration && {
5110
+ neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration)
5111
+ }
5112
+ }), "StorageConfigurationFilterSensitiveLog");
5092
5113
  var CreateKnowledgeBaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5093
5114
  ...obj,
5094
5115
  ...obj.knowledgeBaseConfiguration && {
5095
5116
  knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
5117
+ },
5118
+ ...obj.storageConfiguration && {
5119
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
5096
5120
  }
5097
5121
  }), "CreateKnowledgeBaseRequestFilterSensitiveLog");
5098
5122
  var KnowledgeBaseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
5099
5123
  ...obj,
5100
5124
  ...obj.knowledgeBaseConfiguration && {
5101
5125
  knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
5126
+ },
5127
+ ...obj.storageConfiguration && {
5128
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
5102
5129
  }
5103
5130
  }), "KnowledgeBaseFilterSensitiveLog");
5104
5131
  var CreateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -5113,6 +5140,9 @@ var UpdateKnowledgeBaseRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj)
5113
5140
  ...obj,
5114
5141
  ...obj.knowledgeBaseConfiguration && {
5115
5142
  knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration)
5143
+ },
5144
+ ...obj.storageConfiguration && {
5145
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration)
5116
5146
  }
5117
5147
  }), "UpdateKnowledgeBaseRequestFilterSensitiveLog");
5118
5148
  var UpdateKnowledgeBaseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -6388,6 +6418,8 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6388
6418
  DataSourceType,
6389
6419
  WebScopeType,
6390
6420
  ChunkingStrategy,
6421
+ EnrichmentStrategyMethod,
6422
+ ContextEnrichmentType,
6391
6423
  StepType,
6392
6424
  ParsingModality,
6393
6425
  ParsingStrategy,
@@ -6419,8 +6451,6 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6419
6451
  IngestionJobFilterOperator,
6420
6452
  IngestionJobSortByAttribute,
6421
6453
  SortOrder,
6422
- ContentDataSourceType,
6423
- DocumentStatus,
6424
6454
  APISchemaFilterSensitiveLog,
6425
6455
  CreateAgentActionGroupRequestFilterSensitiveLog,
6426
6456
  AgentActionGroupFilterSensitiveLog,
@@ -6491,6 +6521,8 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6491
6521
  GetFlowResponseFilterSensitiveLog,
6492
6522
  UpdateFlowRequestFilterSensitiveLog,
6493
6523
  UpdateFlowResponseFilterSensitiveLog,
6524
+ ContentDataSourceType,
6525
+ DocumentStatus,
6494
6526
  InlineContentType,
6495
6527
  CustomSourceType,
6496
6528
  MetadataValueType,
@@ -6522,6 +6554,8 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
6522
6554
  RedshiftConfigurationFilterSensitiveLog,
6523
6555
  SqlKnowledgeBaseConfigurationFilterSensitiveLog,
6524
6556
  KnowledgeBaseConfigurationFilterSensitiveLog,
6557
+ NeptuneAnalyticsConfigurationFilterSensitiveLog,
6558
+ StorageConfigurationFilterSensitiveLog,
6525
6559
  CreateKnowledgeBaseRequestFilterSensitiveLog,
6526
6560
  KnowledgeBaseFilterSensitiveLog,
6527
6561
  CreateKnowledgeBaseResponseFilterSensitiveLog,
@@ -240,6 +240,12 @@ export const ChunkingStrategy = {
240
240
  NONE: "NONE",
241
241
  SEMANTIC: "SEMANTIC",
242
242
  };
243
+ export const EnrichmentStrategyMethod = {
244
+ CHUNK_ENTITY_EXTRACTION: "CHUNK_ENTITY_EXTRACTION",
245
+ };
246
+ export const ContextEnrichmentType = {
247
+ BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL",
248
+ };
243
249
  export const StepType = {
244
250
  POST_CHUNKING: "POST_CHUNKING",
245
251
  };
@@ -546,24 +552,6 @@ export const SortOrder = {
546
552
  ASCENDING: "ASCENDING",
547
553
  DESCENDING: "DESCENDING",
548
554
  };
549
- export const ContentDataSourceType = {
550
- CUSTOM: "CUSTOM",
551
- S3: "S3",
552
- };
553
- export const DocumentStatus = {
554
- DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
555
- DELETING: "DELETING",
556
- FAILED: "FAILED",
557
- IGNORED: "IGNORED",
558
- INDEXED: "INDEXED",
559
- IN_PROGRESS: "IN_PROGRESS",
560
- METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
561
- METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
562
- NOT_FOUND: "NOT_FOUND",
563
- PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
564
- PENDING: "PENDING",
565
- STARTING: "STARTING",
566
- };
567
555
  export const APISchemaFilterSensitiveLog = (obj) => {
568
556
  if (obj.s3 !== undefined)
569
557
  return { s3: obj.s3 };
@@ -1,5 +1,23 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { AgentVersionFilterSensitiveLog, FlowValidationFilterSensitiveLog, PromptTemplateConfigurationFilterSensitiveLog, } from "./models_0";
3
+ export const ContentDataSourceType = {
4
+ CUSTOM: "CUSTOM",
5
+ S3: "S3",
6
+ };
7
+ export const DocumentStatus = {
8
+ DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
9
+ DELETING: "DELETING",
10
+ FAILED: "FAILED",
11
+ IGNORED: "IGNORED",
12
+ INDEXED: "INDEXED",
13
+ IN_PROGRESS: "IN_PROGRESS",
14
+ METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED",
15
+ METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED",
16
+ NOT_FOUND: "NOT_FOUND",
17
+ PARTIALLY_INDEXED: "PARTIALLY_INDEXED",
18
+ PENDING: "PENDING",
19
+ STARTING: "STARTING",
20
+ };
3
21
  export const InlineContentType = {
4
22
  BYTE: "BYTE",
5
23
  TEXT: "TEXT",
@@ -56,6 +74,7 @@ export const SupplementalDataStorageLocationType = {
56
74
  };
57
75
  export const KnowledgeBaseStorageType = {
58
76
  MONGO_DB_ATLAS: "MONGO_DB_ATLAS",
77
+ NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS",
59
78
  OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS",
60
79
  PINECONE: "PINECONE",
61
80
  RDS: "RDS",
@@ -149,17 +168,33 @@ export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
149
168
  sqlKnowledgeBaseConfiguration: SqlKnowledgeBaseConfigurationFilterSensitiveLog(obj.sqlKnowledgeBaseConfiguration),
150
169
  }),
151
170
  });
171
+ export const NeptuneAnalyticsConfigurationFilterSensitiveLog = (obj) => ({
172
+ ...obj,
173
+ ...(obj.graphArn && { graphArn: SENSITIVE_STRING }),
174
+ });
175
+ export const StorageConfigurationFilterSensitiveLog = (obj) => ({
176
+ ...obj,
177
+ ...(obj.neptuneAnalyticsConfiguration && {
178
+ neptuneAnalyticsConfiguration: NeptuneAnalyticsConfigurationFilterSensitiveLog(obj.neptuneAnalyticsConfiguration),
179
+ }),
180
+ });
152
181
  export const CreateKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
153
182
  ...obj,
154
183
  ...(obj.knowledgeBaseConfiguration && {
155
184
  knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
156
185
  }),
186
+ ...(obj.storageConfiguration && {
187
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration),
188
+ }),
157
189
  });
158
190
  export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
159
191
  ...obj,
160
192
  ...(obj.knowledgeBaseConfiguration && {
161
193
  knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
162
194
  }),
195
+ ...(obj.storageConfiguration && {
196
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration),
197
+ }),
163
198
  });
164
199
  export const CreateKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
165
200
  ...obj,
@@ -174,6 +209,9 @@ export const UpdateKnowledgeBaseRequestFilterSensitiveLog = (obj) => ({
174
209
  ...(obj.knowledgeBaseConfiguration && {
175
210
  knowledgeBaseConfiguration: KnowledgeBaseConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
176
211
  }),
212
+ ...(obj.storageConfiguration && {
213
+ storageConfiguration: StorageConfigurationFilterSensitiveLog(obj.storageConfiguration),
214
+ }),
177
215
  });
178
216
  export const UpdateKnowledgeBaseResponseFilterSensitiveLog = (obj) => ({
179
217
  ...obj,
@@ -208,6 +208,15 @@ declare const CreateDataSourceCommand_base: {
208
208
  * parsingModality: "MULTIMODAL",
209
209
  * },
210
210
  * },
211
+ * contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
212
+ * type: "BEDROCK_FOUNDATION_MODEL", // required
213
+ * bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
214
+ * enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
215
+ * method: "CHUNK_ENTITY_EXTRACTION", // required
216
+ * },
217
+ * modelArn: "STRING_VALUE", // required
218
+ * },
219
+ * },
211
220
  * },
212
221
  * };
213
222
  * const command = new CreateDataSourceCommand(input);
@@ -384,6 +393,15 @@ declare const CreateDataSourceCommand_base: {
384
393
  * // parsingModality: "MULTIMODAL",
385
394
  * // },
386
395
  * // },
396
+ * // contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
397
+ * // type: "BEDROCK_FOUNDATION_MODEL", // required
398
+ * // bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
399
+ * // enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
400
+ * // method: "CHUNK_ENTITY_EXTRACTION", // required
401
+ * // },
402
+ * // modelArn: "STRING_VALUE", // required
403
+ * // },
404
+ * // },
387
405
  * // },
388
406
  * // dataDeletionPolicy: "RETAIN" || "DELETE",
389
407
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -157,7 +157,7 @@ declare const CreateKnowledgeBaseCommand_base: {
157
157
  * },
158
158
  * },
159
159
  * storageConfiguration: { // StorageConfiguration
160
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
160
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
161
161
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
162
162
  * collectionArn: "STRING_VALUE", // required
163
163
  * vectorIndexName: "STRING_VALUE", // required
@@ -211,6 +211,13 @@ declare const CreateKnowledgeBaseCommand_base: {
211
211
  * },
212
212
  * endpointServiceName: "STRING_VALUE",
213
213
  * },
214
+ * neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
215
+ * graphArn: "STRING_VALUE", // required
216
+ * fieldMapping: { // NeptuneAnalyticsFieldMapping
217
+ * textField: "STRING_VALUE", // required
218
+ * metadataField: "STRING_VALUE", // required
219
+ * },
220
+ * },
214
221
  * },
215
222
  * tags: { // TagsMap
216
223
  * "<keys>": "STRING_VALUE",
@@ -312,7 +319,7 @@ declare const CreateKnowledgeBaseCommand_base: {
312
319
  * // },
313
320
  * // },
314
321
  * // storageConfiguration: { // StorageConfiguration
315
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
322
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
316
323
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
317
324
  * // collectionArn: "STRING_VALUE", // required
318
325
  * // vectorIndexName: "STRING_VALUE", // required
@@ -366,6 +373,13 @@ declare const CreateKnowledgeBaseCommand_base: {
366
373
  * // },
367
374
  * // endpointServiceName: "STRING_VALUE",
368
375
  * // },
376
+ * // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
377
+ * // graphArn: "STRING_VALUE", // required
378
+ * // fieldMapping: { // NeptuneAnalyticsFieldMapping
379
+ * // textField: "STRING_VALUE", // required
380
+ * // metadataField: "STRING_VALUE", // required
381
+ * // },
382
+ * // },
369
383
  * // },
370
384
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
371
385
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -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 { DeleteKnowledgeBaseDocumentsRequest } from "../models/models_0";
5
- import { DeleteKnowledgeBaseDocumentsResponse } from "../models/models_1";
4
+ import { DeleteKnowledgeBaseDocumentsRequest, DeleteKnowledgeBaseDocumentsResponse } from "../models/models_1";
6
5
  /**
7
6
  * @public
8
7
  */
@@ -212,6 +212,15 @@ declare const GetDataSourceCommand_base: {
212
212
  * // parsingModality: "MULTIMODAL",
213
213
  * // },
214
214
  * // },
215
+ * // contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
216
+ * // type: "BEDROCK_FOUNDATION_MODEL", // required
217
+ * // bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
218
+ * // enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
219
+ * // method: "CHUNK_ENTITY_EXTRACTION", // required
220
+ * // },
221
+ * // modelArn: "STRING_VALUE", // required
222
+ * // },
223
+ * // },
215
224
  * // },
216
225
  * // dataDeletionPolicy: "RETAIN" || "DELETE",
217
226
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -133,7 +133,7 @@ declare const GetKnowledgeBaseCommand_base: {
133
133
  * // },
134
134
  * // },
135
135
  * // storageConfiguration: { // StorageConfiguration
136
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
136
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
137
137
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
138
138
  * // collectionArn: "STRING_VALUE", // required
139
139
  * // vectorIndexName: "STRING_VALUE", // required
@@ -187,6 +187,13 @@ declare const GetKnowledgeBaseCommand_base: {
187
187
  * // },
188
188
  * // endpointServiceName: "STRING_VALUE",
189
189
  * // },
190
+ * // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
191
+ * // graphArn: "STRING_VALUE", // required
192
+ * // fieldMapping: { // NeptuneAnalyticsFieldMapping
193
+ * // textField: "STRING_VALUE", // required
194
+ * // metadataField: "STRING_VALUE", // required
195
+ * // },
196
+ * // },
190
197
  * // },
191
198
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
192
199
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -208,6 +208,15 @@ declare const UpdateDataSourceCommand_base: {
208
208
  * parsingModality: "MULTIMODAL",
209
209
  * },
210
210
  * },
211
+ * contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
212
+ * type: "BEDROCK_FOUNDATION_MODEL", // required
213
+ * bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
214
+ * enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
215
+ * method: "CHUNK_ENTITY_EXTRACTION", // required
216
+ * },
217
+ * modelArn: "STRING_VALUE", // required
218
+ * },
219
+ * },
211
220
  * },
212
221
  * };
213
222
  * const command = new UpdateDataSourceCommand(input);
@@ -384,6 +393,15 @@ declare const UpdateDataSourceCommand_base: {
384
393
  * // parsingModality: "MULTIMODAL",
385
394
  * // },
386
395
  * // },
396
+ * // contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
397
+ * // type: "BEDROCK_FOUNDATION_MODEL", // required
398
+ * // bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
399
+ * // enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
400
+ * // method: "CHUNK_ENTITY_EXTRACTION", // required
401
+ * // },
402
+ * // modelArn: "STRING_VALUE", // required
403
+ * // },
404
+ * // },
387
405
  * // },
388
406
  * // dataDeletionPolicy: "RETAIN" || "DELETE",
389
407
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -145,7 +145,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
145
145
  * },
146
146
  * },
147
147
  * storageConfiguration: { // StorageConfiguration
148
- * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
148
+ * type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
149
149
  * opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
150
150
  * collectionArn: "STRING_VALUE", // required
151
151
  * vectorIndexName: "STRING_VALUE", // required
@@ -199,6 +199,13 @@ declare const UpdateKnowledgeBaseCommand_base: {
199
199
  * },
200
200
  * endpointServiceName: "STRING_VALUE",
201
201
  * },
202
+ * neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
203
+ * graphArn: "STRING_VALUE", // required
204
+ * fieldMapping: { // NeptuneAnalyticsFieldMapping
205
+ * textField: "STRING_VALUE", // required
206
+ * metadataField: "STRING_VALUE", // required
207
+ * },
208
+ * },
202
209
  * },
203
210
  * };
204
211
  * const command = new UpdateKnowledgeBaseCommand(input);
@@ -297,7 +304,7 @@ declare const UpdateKnowledgeBaseCommand_base: {
297
304
  * // },
298
305
  * // },
299
306
  * // storageConfiguration: { // StorageConfiguration
300
- * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
307
+ * // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
301
308
  * // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
302
309
  * // collectionArn: "STRING_VALUE", // required
303
310
  * // vectorIndexName: "STRING_VALUE", // required
@@ -351,6 +358,13 @@ declare const UpdateKnowledgeBaseCommand_base: {
351
358
  * // },
352
359
  * // endpointServiceName: "STRING_VALUE",
353
360
  * // },
361
+ * // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
362
+ * // graphArn: "STRING_VALUE", // required
363
+ * // fieldMapping: { // NeptuneAnalyticsFieldMapping
364
+ * // textField: "STRING_VALUE", // required
365
+ * // metadataField: "STRING_VALUE", // required
366
+ * // },
367
+ * // },
354
368
  * // },
355
369
  * // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
356
370
  * // createdAt: new Date("TIMESTAMP"), // required
@@ -3237,6 +3237,73 @@ export interface ChunkingConfiguration {
3237
3237
  */
3238
3238
  semanticChunkingConfiguration?: SemanticChunkingConfiguration | undefined;
3239
3239
  }
3240
+ /**
3241
+ * @public
3242
+ * @enum
3243
+ */
3244
+ export declare const EnrichmentStrategyMethod: {
3245
+ readonly CHUNK_ENTITY_EXTRACTION: "CHUNK_ENTITY_EXTRACTION";
3246
+ };
3247
+ /**
3248
+ * @public
3249
+ */
3250
+ export type EnrichmentStrategyMethod = (typeof EnrichmentStrategyMethod)[keyof typeof EnrichmentStrategyMethod];
3251
+ /**
3252
+ * <p>The strategy used for performing context enrichment.</p>
3253
+ * @public
3254
+ */
3255
+ export interface EnrichmentStrategyConfiguration {
3256
+ /**
3257
+ * <p>The method used for the context enrichment strategy.</p>
3258
+ * @public
3259
+ */
3260
+ method: EnrichmentStrategyMethod | undefined;
3261
+ }
3262
+ /**
3263
+ * <p>Context enrichment configuration is used to provide additional context to the RAG application
3264
+ * using Amazon Bedrock foundation models.</p>
3265
+ * @public
3266
+ */
3267
+ export interface BedrockFoundationModelContextEnrichmentConfiguration {
3268
+ /**
3269
+ * <p>The enrichment stategy used to provide additional context. For example, Neptune GraphRAG uses
3270
+ * Amazon Bedrock foundation models to perform chunk entity extraction.</p>
3271
+ * @public
3272
+ */
3273
+ enrichmentStrategyConfiguration: EnrichmentStrategyConfiguration | undefined;
3274
+ /**
3275
+ * <p>The Amazon Resource Name (ARN) of the foundation model used for context enrichment.</p>
3276
+ * @public
3277
+ */
3278
+ modelArn: string | undefined;
3279
+ }
3280
+ /**
3281
+ * @public
3282
+ * @enum
3283
+ */
3284
+ export declare const ContextEnrichmentType: {
3285
+ readonly BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL";
3286
+ };
3287
+ /**
3288
+ * @public
3289
+ */
3290
+ export type ContextEnrichmentType = (typeof ContextEnrichmentType)[keyof typeof ContextEnrichmentType];
3291
+ /**
3292
+ * <p>Context enrichment configuration is used to provide additional context to the RAG application.</p>
3293
+ * @public
3294
+ */
3295
+ export interface ContextEnrichmentConfiguration {
3296
+ /**
3297
+ * <p>The method used for context enrichment. It must be Amazon Bedrock foundation models.</p>
3298
+ * @public
3299
+ */
3300
+ type: ContextEnrichmentType | undefined;
3301
+ /**
3302
+ * <p>The configuration of the Amazon Bedrock foundation model used for context enrichment.</p>
3303
+ * @public
3304
+ */
3305
+ bedrockFoundationModelConfiguration?: BedrockFoundationModelContextEnrichmentConfiguration | undefined;
3306
+ }
3240
3307
  /**
3241
3308
  * <p>An Amazon S3 location.</p>
3242
3309
  * @public
@@ -3446,6 +3513,12 @@ export interface VectorIngestionConfiguration {
3446
3513
  * @public
3447
3514
  */
3448
3515
  parsingConfiguration?: ParsingConfiguration | undefined;
3516
+ /**
3517
+ * <p>The context enrichment configuration used for ingestion of the data into the vector
3518
+ * store.</p>
3519
+ * @public
3520
+ */
3521
+ contextEnrichmentConfiguration?: ContextEnrichmentConfiguration | undefined;
3449
3522
  }
3450
3523
  /**
3451
3524
  * @public
@@ -7987,161 +8060,6 @@ export interface CustomDocumentIdentifier {
7987
8060
  */
7988
8061
  id: string | undefined;
7989
8062
  }
7990
- /**
7991
- * @public
7992
- * @enum
7993
- */
7994
- export declare const ContentDataSourceType: {
7995
- readonly CUSTOM: "CUSTOM";
7996
- readonly S3: "S3";
7997
- };
7998
- /**
7999
- * @public
8000
- */
8001
- export type ContentDataSourceType = (typeof ContentDataSourceType)[keyof typeof ContentDataSourceType];
8002
- /**
8003
- * <p>Contains information that identifies the document.</p>
8004
- * @public
8005
- */
8006
- export interface DocumentIdentifier {
8007
- /**
8008
- * <p>The type of data source connected to the knowledge base that contains the document.</p>
8009
- * @public
8010
- */
8011
- dataSourceType: ContentDataSourceType | undefined;
8012
- /**
8013
- * <p>Contains information that identifies the document in an S3 data source.</p>
8014
- * @public
8015
- */
8016
- s3?: S3Location | undefined;
8017
- /**
8018
- * <p>Contains information that identifies the document in a custom data source.</p>
8019
- * @public
8020
- */
8021
- custom?: CustomDocumentIdentifier | undefined;
8022
- }
8023
- /**
8024
- * @public
8025
- */
8026
- export interface DeleteKnowledgeBaseDocumentsRequest {
8027
- /**
8028
- * <p>The unique identifier of the knowledge base that is connected to the data source.</p>
8029
- * @public
8030
- */
8031
- knowledgeBaseId: string | undefined;
8032
- /**
8033
- * <p>The unique identifier of the data source that contains the documents.</p>
8034
- * @public
8035
- */
8036
- dataSourceId: string | undefined;
8037
- /**
8038
- * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
8039
- * Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
8040
- * @public
8041
- */
8042
- clientToken?: string | undefined;
8043
- /**
8044
- * <p>A list of objects, each of which contains information to identify a document to delete.</p>
8045
- * @public
8046
- */
8047
- documentIdentifiers: DocumentIdentifier[] | undefined;
8048
- }
8049
- /**
8050
- * @public
8051
- * @enum
8052
- */
8053
- export declare const DocumentStatus: {
8054
- readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
8055
- readonly DELETING: "DELETING";
8056
- readonly FAILED: "FAILED";
8057
- readonly IGNORED: "IGNORED";
8058
- readonly INDEXED: "INDEXED";
8059
- readonly IN_PROGRESS: "IN_PROGRESS";
8060
- readonly METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED";
8061
- readonly METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED";
8062
- readonly NOT_FOUND: "NOT_FOUND";
8063
- readonly PARTIALLY_INDEXED: "PARTIALLY_INDEXED";
8064
- readonly PENDING: "PENDING";
8065
- readonly STARTING: "STARTING";
8066
- };
8067
- /**
8068
- * @public
8069
- */
8070
- export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];
8071
- /**
8072
- * <p>Contains the details for a document that was ingested or deleted.</p>
8073
- * @public
8074
- */
8075
- export interface KnowledgeBaseDocumentDetail {
8076
- /**
8077
- * <p>The identifier of the knowledge base that the document was ingested into or deleted from.</p>
8078
- * @public
8079
- */
8080
- knowledgeBaseId: string | undefined;
8081
- /**
8082
- * <p>The identifier of the data source connected to the knowledge base that the document was ingested into or deleted from.</p>
8083
- * @public
8084
- */
8085
- dataSourceId: string | undefined;
8086
- /**
8087
- * <p>The ingestion status of the document. The following statuses are possible:</p>
8088
- * <ul>
8089
- * <li>
8090
- * <p>STARTED – You submitted the ingestion job containing the document.</p>
8091
- * </li>
8092
- * <li>
8093
- * <p>PENDING – The document is waiting to be ingested.</p>
8094
- * </li>
8095
- * <li>
8096
- * <p>IN_PROGRESS – The document is being ingested.</p>
8097
- * </li>
8098
- * <li>
8099
- * <p>INDEXED – The document was successfully indexed.</p>
8100
- * </li>
8101
- * <li>
8102
- * <p>PARTIALLY_INDEXED – The document was partially indexed.</p>
8103
- * </li>
8104
- * <li>
8105
- * <p>METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.</p>
8106
- * </li>
8107
- * <li>
8108
- * <p>METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.</p>
8109
- * </li>
8110
- * <li>
8111
- * <p>FAILED – The document failed to be ingested.</p>
8112
- * </li>
8113
- * <li>
8114
- * <p>NOT_FOUND – The document wasn't found.</p>
8115
- * </li>
8116
- * <li>
8117
- * <p>IGNORED – The document was ignored during ingestion.</p>
8118
- * </li>
8119
- * <li>
8120
- * <p>DELETING – You submitted the delete job containing the document.</p>
8121
- * </li>
8122
- * <li>
8123
- * <p>DELETE_IN_PROGRESS – The document is being deleted.</p>
8124
- * </li>
8125
- * </ul>
8126
- * @public
8127
- */
8128
- status: DocumentStatus | undefined;
8129
- /**
8130
- * <p>Contains information that identifies the document.</p>
8131
- * @public
8132
- */
8133
- identifier: DocumentIdentifier | undefined;
8134
- /**
8135
- * <p>The reason for the status. Appears alongside the status <code>IGNORED</code>.</p>
8136
- * @public
8137
- */
8138
- statusReason?: string | undefined;
8139
- /**
8140
- * <p>The date and time at which the document was last updated.</p>
8141
- * @public
8142
- */
8143
- updatedAt?: Date | undefined;
8144
- }
8145
8063
  /**
8146
8064
  * @internal
8147
8065
  */
@@ -1,5 +1,160 @@
1
1
  import { DocumentType as __DocumentType } from "@smithy/types";
2
- import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, ContentDataSourceType, CustomDocumentIdentifier, DocumentIdentifier, FlowDefinition, FlowValidation, KnowledgeBaseDocumentDetail, KnowledgeBaseState, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType, S3Location } from "./models_0";
2
+ import { AgentKnowledgeBase, AgentKnowledgeBaseSummary, AgentStatus, AgentVersion, AgentVersionSummary, CustomDocumentIdentifier, FlowDefinition, FlowValidation, KnowledgeBaseState, PromptInferenceConfiguration, PromptTemplateConfiguration, PromptTemplateType, S3Location } from "./models_0";
3
+ /**
4
+ * @public
5
+ * @enum
6
+ */
7
+ export declare const ContentDataSourceType: {
8
+ readonly CUSTOM: "CUSTOM";
9
+ readonly S3: "S3";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type ContentDataSourceType = (typeof ContentDataSourceType)[keyof typeof ContentDataSourceType];
15
+ /**
16
+ * <p>Contains information that identifies the document.</p>
17
+ * @public
18
+ */
19
+ export interface DocumentIdentifier {
20
+ /**
21
+ * <p>The type of data source connected to the knowledge base that contains the document.</p>
22
+ * @public
23
+ */
24
+ dataSourceType: ContentDataSourceType | undefined;
25
+ /**
26
+ * <p>Contains information that identifies the document in an S3 data source.</p>
27
+ * @public
28
+ */
29
+ s3?: S3Location | undefined;
30
+ /**
31
+ * <p>Contains information that identifies the document in a custom data source.</p>
32
+ * @public
33
+ */
34
+ custom?: CustomDocumentIdentifier | undefined;
35
+ }
36
+ /**
37
+ * @public
38
+ */
39
+ export interface DeleteKnowledgeBaseDocumentsRequest {
40
+ /**
41
+ * <p>The unique identifier of the knowledge base that is connected to the data source.</p>
42
+ * @public
43
+ */
44
+ knowledgeBaseId: string | undefined;
45
+ /**
46
+ * <p>The unique identifier of the data source that contains the documents.</p>
47
+ * @public
48
+ */
49
+ dataSourceId: string | undefined;
50
+ /**
51
+ * <p>A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request,
52
+ * Amazon Bedrock ignores the request, but does not return an error. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a>.</p>
53
+ * @public
54
+ */
55
+ clientToken?: string | undefined;
56
+ /**
57
+ * <p>A list of objects, each of which contains information to identify a document to delete.</p>
58
+ * @public
59
+ */
60
+ documentIdentifiers: DocumentIdentifier[] | undefined;
61
+ }
62
+ /**
63
+ * @public
64
+ * @enum
65
+ */
66
+ export declare const DocumentStatus: {
67
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
68
+ readonly DELETING: "DELETING";
69
+ readonly FAILED: "FAILED";
70
+ readonly IGNORED: "IGNORED";
71
+ readonly INDEXED: "INDEXED";
72
+ readonly IN_PROGRESS: "IN_PROGRESS";
73
+ readonly METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED";
74
+ readonly METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED";
75
+ readonly NOT_FOUND: "NOT_FOUND";
76
+ readonly PARTIALLY_INDEXED: "PARTIALLY_INDEXED";
77
+ readonly PENDING: "PENDING";
78
+ readonly STARTING: "STARTING";
79
+ };
80
+ /**
81
+ * @public
82
+ */
83
+ export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus];
84
+ /**
85
+ * <p>Contains the details for a document that was ingested or deleted.</p>
86
+ * @public
87
+ */
88
+ export interface KnowledgeBaseDocumentDetail {
89
+ /**
90
+ * <p>The identifier of the knowledge base that the document was ingested into or deleted from.</p>
91
+ * @public
92
+ */
93
+ knowledgeBaseId: string | undefined;
94
+ /**
95
+ * <p>The identifier of the data source connected to the knowledge base that the document was ingested into or deleted from.</p>
96
+ * @public
97
+ */
98
+ dataSourceId: string | undefined;
99
+ /**
100
+ * <p>The ingestion status of the document. The following statuses are possible:</p>
101
+ * <ul>
102
+ * <li>
103
+ * <p>STARTED – You submitted the ingestion job containing the document.</p>
104
+ * </li>
105
+ * <li>
106
+ * <p>PENDING – The document is waiting to be ingested.</p>
107
+ * </li>
108
+ * <li>
109
+ * <p>IN_PROGRESS – The document is being ingested.</p>
110
+ * </li>
111
+ * <li>
112
+ * <p>INDEXED – The document was successfully indexed.</p>
113
+ * </li>
114
+ * <li>
115
+ * <p>PARTIALLY_INDEXED – The document was partially indexed.</p>
116
+ * </li>
117
+ * <li>
118
+ * <p>METADATA_PARTIALLY_INDEXED – You submitted metadata for an existing document and it was partially indexed.</p>
119
+ * </li>
120
+ * <li>
121
+ * <p>METADATA_UPDATE_FAILED – You submitted a metadata update for an existing document but it failed.</p>
122
+ * </li>
123
+ * <li>
124
+ * <p>FAILED – The document failed to be ingested.</p>
125
+ * </li>
126
+ * <li>
127
+ * <p>NOT_FOUND – The document wasn't found.</p>
128
+ * </li>
129
+ * <li>
130
+ * <p>IGNORED – The document was ignored during ingestion.</p>
131
+ * </li>
132
+ * <li>
133
+ * <p>DELETING – You submitted the delete job containing the document.</p>
134
+ * </li>
135
+ * <li>
136
+ * <p>DELETE_IN_PROGRESS – The document is being deleted.</p>
137
+ * </li>
138
+ * </ul>
139
+ * @public
140
+ */
141
+ status: DocumentStatus | undefined;
142
+ /**
143
+ * <p>Contains information that identifies the document.</p>
144
+ * @public
145
+ */
146
+ identifier: DocumentIdentifier | undefined;
147
+ /**
148
+ * <p>The reason for the status. Appears alongside the status <code>IGNORED</code>.</p>
149
+ * @public
150
+ */
151
+ statusReason?: string | undefined;
152
+ /**
153
+ * <p>The date and time at which the document was last updated.</p>
154
+ * @public
155
+ */
156
+ updatedAt?: Date | undefined;
157
+ }
3
158
  /**
4
159
  * @public
5
160
  */
@@ -1025,6 +1180,41 @@ export interface MongoDbAtlasConfiguration {
1025
1180
  */
1026
1181
  endpointServiceName?: string | undefined;
1027
1182
  }
1183
+ /**
1184
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
1185
+ * @public
1186
+ */
1187
+ export interface NeptuneAnalyticsFieldMapping {
1188
+ /**
1189
+ * <p>The name of the field in which Amazon Bedrock stores the raw text from your data. The text
1190
+ * is split according to the chunking strategy you choose.</p>
1191
+ * @public
1192
+ */
1193
+ textField: string | undefined;
1194
+ /**
1195
+ * <p>The name of the field in which Amazon Bedrock stores metadata about the vector store.</p>
1196
+ * @public
1197
+ */
1198
+ metadataField: string | undefined;
1199
+ }
1200
+ /**
1201
+ * <p>Contains details about the storage configuration of the knowledge base in
1202
+ * Amazon Neptune Analytics. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html">Create a vector index
1203
+ * in Amazon Neptune Analytics</a>.</p>
1204
+ * @public
1205
+ */
1206
+ export interface NeptuneAnalyticsConfiguration {
1207
+ /**
1208
+ * <p>The Amazon Resource Name (ARN) of the Neptune Analytics vector store.</p>
1209
+ * @public
1210
+ */
1211
+ graphArn: string | undefined;
1212
+ /**
1213
+ * <p>Contains the names of the fields to which to map information about the vector store.</p>
1214
+ * @public
1215
+ */
1216
+ fieldMapping: NeptuneAnalyticsFieldMapping | undefined;
1217
+ }
1028
1218
  /**
1029
1219
  * <p>Contains the names of the fields to which to map information about the vector store.</p>
1030
1220
  * @public
@@ -1219,6 +1409,7 @@ export interface RedisEnterpriseCloudConfiguration {
1219
1409
  */
1220
1410
  export declare const KnowledgeBaseStorageType: {
1221
1411
  readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
1412
+ readonly NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS";
1222
1413
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
1223
1414
  readonly PINECONE: "PINECONE";
1224
1415
  readonly RDS: "RDS";
@@ -1263,6 +1454,13 @@ export interface StorageConfiguration {
1263
1454
  * @public
1264
1455
  */
1265
1456
  mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | undefined;
1457
+ /**
1458
+ * <p>Contains details about the Neptune Analytics configuration of the knowledge base in Amazon Neptune. For more information,
1459
+ * see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-setup-neptune.html">Create a
1460
+ * vector index in Amazon Neptune Analytics.</a>.</p>
1461
+ * @public
1462
+ */
1463
+ neptuneAnalyticsConfiguration?: NeptuneAnalyticsConfiguration | undefined;
1266
1464
  }
1267
1465
  /**
1268
1466
  * @public
@@ -2489,6 +2687,14 @@ export declare const SqlKnowledgeBaseConfigurationFilterSensitiveLog: (obj: SqlK
2489
2687
  * @internal
2490
2688
  */
2491
2689
  export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (obj: KnowledgeBaseConfiguration) => any;
2690
+ /**
2691
+ * @internal
2692
+ */
2693
+ export declare const NeptuneAnalyticsConfigurationFilterSensitiveLog: (obj: NeptuneAnalyticsConfiguration) => any;
2694
+ /**
2695
+ * @internal
2696
+ */
2697
+ export declare const StorageConfigurationFilterSensitiveLog: (obj: StorageConfiguration) => any;
2492
2698
  /**
2493
2699
  * @internal
2494
2700
  */
@@ -5,8 +5,10 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockAgentClient";
8
- import { DeleteKnowledgeBaseDocumentsRequest } from "../models/models_0";
9
- import { DeleteKnowledgeBaseDocumentsResponse } from "../models/models_1";
8
+ import {
9
+ DeleteKnowledgeBaseDocumentsRequest,
10
+ DeleteKnowledgeBaseDocumentsResponse,
11
+ } from "../models/models_1";
10
12
  export { __MetadataBearer };
11
13
  export { $Command };
12
14
  export interface DeleteKnowledgeBaseDocumentsCommandInput
@@ -853,6 +853,29 @@ export interface ChunkingConfiguration {
853
853
  | undefined;
854
854
  semanticChunkingConfiguration?: SemanticChunkingConfiguration | undefined;
855
855
  }
856
+ export declare const EnrichmentStrategyMethod: {
857
+ readonly CHUNK_ENTITY_EXTRACTION: "CHUNK_ENTITY_EXTRACTION";
858
+ };
859
+ export type EnrichmentStrategyMethod =
860
+ (typeof EnrichmentStrategyMethod)[keyof typeof EnrichmentStrategyMethod];
861
+ export interface EnrichmentStrategyConfiguration {
862
+ method: EnrichmentStrategyMethod | undefined;
863
+ }
864
+ export interface BedrockFoundationModelContextEnrichmentConfiguration {
865
+ enrichmentStrategyConfiguration: EnrichmentStrategyConfiguration | undefined;
866
+ modelArn: string | undefined;
867
+ }
868
+ export declare const ContextEnrichmentType: {
869
+ readonly BEDROCK_FOUNDATION_MODEL: "BEDROCK_FOUNDATION_MODEL";
870
+ };
871
+ export type ContextEnrichmentType =
872
+ (typeof ContextEnrichmentType)[keyof typeof ContextEnrichmentType];
873
+ export interface ContextEnrichmentConfiguration {
874
+ type: ContextEnrichmentType | undefined;
875
+ bedrockFoundationModelConfiguration?:
876
+ | BedrockFoundationModelContextEnrichmentConfiguration
877
+ | undefined;
878
+ }
856
879
  export interface S3Location {
857
880
  uri: string | undefined;
858
881
  }
@@ -916,6 +939,7 @@ export interface VectorIngestionConfiguration {
916
939
  | CustomTransformationConfiguration
917
940
  | undefined;
918
941
  parsingConfiguration?: ParsingConfiguration | undefined;
942
+ contextEnrichmentConfiguration?: ContextEnrichmentConfiguration | undefined;
919
943
  }
920
944
  export interface CreateDataSourceRequest {
921
945
  knowledgeBaseId: string | undefined;
@@ -3111,47 +3135,6 @@ export interface StopIngestionJobResponse {
3111
3135
  export interface CustomDocumentIdentifier {
3112
3136
  id: string | undefined;
3113
3137
  }
3114
- export declare const ContentDataSourceType: {
3115
- readonly CUSTOM: "CUSTOM";
3116
- readonly S3: "S3";
3117
- };
3118
- export type ContentDataSourceType =
3119
- (typeof ContentDataSourceType)[keyof typeof ContentDataSourceType];
3120
- export interface DocumentIdentifier {
3121
- dataSourceType: ContentDataSourceType | undefined;
3122
- s3?: S3Location | undefined;
3123
- custom?: CustomDocumentIdentifier | undefined;
3124
- }
3125
- export interface DeleteKnowledgeBaseDocumentsRequest {
3126
- knowledgeBaseId: string | undefined;
3127
- dataSourceId: string | undefined;
3128
- clientToken?: string | undefined;
3129
- documentIdentifiers: DocumentIdentifier[] | undefined;
3130
- }
3131
- export declare const DocumentStatus: {
3132
- readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
3133
- readonly DELETING: "DELETING";
3134
- readonly FAILED: "FAILED";
3135
- readonly IGNORED: "IGNORED";
3136
- readonly INDEXED: "INDEXED";
3137
- readonly IN_PROGRESS: "IN_PROGRESS";
3138
- readonly METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED";
3139
- readonly METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED";
3140
- readonly NOT_FOUND: "NOT_FOUND";
3141
- readonly PARTIALLY_INDEXED: "PARTIALLY_INDEXED";
3142
- readonly PENDING: "PENDING";
3143
- readonly STARTING: "STARTING";
3144
- };
3145
- export type DocumentStatus =
3146
- (typeof DocumentStatus)[keyof typeof DocumentStatus];
3147
- export interface KnowledgeBaseDocumentDetail {
3148
- knowledgeBaseId: string | undefined;
3149
- dataSourceId: string | undefined;
3150
- status: DocumentStatus | undefined;
3151
- identifier: DocumentIdentifier | undefined;
3152
- statusReason?: string | undefined;
3153
- updatedAt?: Date | undefined;
3154
- }
3155
3138
  export declare const APISchemaFilterSensitiveLog: (obj: APISchema) => any;
3156
3139
  export declare const CreateAgentActionGroupRequestFilterSensitiveLog: (
3157
3140
  obj: CreateAgentActionGroupRequest
@@ -5,18 +5,56 @@ import {
5
5
  AgentStatus,
6
6
  AgentVersion,
7
7
  AgentVersionSummary,
8
- ContentDataSourceType,
9
8
  CustomDocumentIdentifier,
10
- DocumentIdentifier,
11
9
  FlowDefinition,
12
10
  FlowValidation,
13
- KnowledgeBaseDocumentDetail,
14
11
  KnowledgeBaseState,
15
12
  PromptInferenceConfiguration,
16
13
  PromptTemplateConfiguration,
17
14
  PromptTemplateType,
18
15
  S3Location,
19
16
  } from "./models_0";
17
+ export declare const ContentDataSourceType: {
18
+ readonly CUSTOM: "CUSTOM";
19
+ readonly S3: "S3";
20
+ };
21
+ export type ContentDataSourceType =
22
+ (typeof ContentDataSourceType)[keyof typeof ContentDataSourceType];
23
+ export interface DocumentIdentifier {
24
+ dataSourceType: ContentDataSourceType | undefined;
25
+ s3?: S3Location | undefined;
26
+ custom?: CustomDocumentIdentifier | undefined;
27
+ }
28
+ export interface DeleteKnowledgeBaseDocumentsRequest {
29
+ knowledgeBaseId: string | undefined;
30
+ dataSourceId: string | undefined;
31
+ clientToken?: string | undefined;
32
+ documentIdentifiers: DocumentIdentifier[] | undefined;
33
+ }
34
+ export declare const DocumentStatus: {
35
+ readonly DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS";
36
+ readonly DELETING: "DELETING";
37
+ readonly FAILED: "FAILED";
38
+ readonly IGNORED: "IGNORED";
39
+ readonly INDEXED: "INDEXED";
40
+ readonly IN_PROGRESS: "IN_PROGRESS";
41
+ readonly METADATA_PARTIALLY_INDEXED: "METADATA_PARTIALLY_INDEXED";
42
+ readonly METADATA_UPDATE_FAILED: "METADATA_UPDATE_FAILED";
43
+ readonly NOT_FOUND: "NOT_FOUND";
44
+ readonly PARTIALLY_INDEXED: "PARTIALLY_INDEXED";
45
+ readonly PENDING: "PENDING";
46
+ readonly STARTING: "STARTING";
47
+ };
48
+ export type DocumentStatus =
49
+ (typeof DocumentStatus)[keyof typeof DocumentStatus];
50
+ export interface KnowledgeBaseDocumentDetail {
51
+ knowledgeBaseId: string | undefined;
52
+ dataSourceId: string | undefined;
53
+ status: DocumentStatus | undefined;
54
+ identifier: DocumentIdentifier | undefined;
55
+ statusReason?: string | undefined;
56
+ updatedAt?: Date | undefined;
57
+ }
20
58
  export interface DeleteKnowledgeBaseDocumentsResponse {
21
59
  documentDetails?: KnowledgeBaseDocumentDetail[] | undefined;
22
60
  }
@@ -306,6 +344,14 @@ export interface MongoDbAtlasConfiguration {
306
344
  fieldMapping: MongoDbAtlasFieldMapping | undefined;
307
345
  endpointServiceName?: string | undefined;
308
346
  }
347
+ export interface NeptuneAnalyticsFieldMapping {
348
+ textField: string | undefined;
349
+ metadataField: string | undefined;
350
+ }
351
+ export interface NeptuneAnalyticsConfiguration {
352
+ graphArn: string | undefined;
353
+ fieldMapping: NeptuneAnalyticsFieldMapping | undefined;
354
+ }
309
355
  export interface OpenSearchServerlessFieldMapping {
310
356
  vectorField: string | undefined;
311
357
  textField: string | undefined;
@@ -352,6 +398,7 @@ export interface RedisEnterpriseCloudConfiguration {
352
398
  }
353
399
  export declare const KnowledgeBaseStorageType: {
354
400
  readonly MONGO_DB_ATLAS: "MONGO_DB_ATLAS";
401
+ readonly NEPTUNE_ANALYTICS: "NEPTUNE_ANALYTICS";
355
402
  readonly OPENSEARCH_SERVERLESS: "OPENSEARCH_SERVERLESS";
356
403
  readonly PINECONE: "PINECONE";
357
404
  readonly RDS: "RDS";
@@ -370,6 +417,7 @@ export interface StorageConfiguration {
370
417
  | undefined;
371
418
  rdsConfiguration?: RdsConfiguration | undefined;
372
419
  mongoDbAtlasConfiguration?: MongoDbAtlasConfiguration | undefined;
420
+ neptuneAnalyticsConfiguration?: NeptuneAnalyticsConfiguration | undefined;
373
421
  }
374
422
  export interface CreateKnowledgeBaseRequest {
375
423
  clientToken?: string | undefined;
@@ -708,6 +756,12 @@ export declare const SqlKnowledgeBaseConfigurationFilterSensitiveLog: (
708
756
  export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
709
757
  obj: KnowledgeBaseConfiguration
710
758
  ) => any;
759
+ export declare const NeptuneAnalyticsConfigurationFilterSensitiveLog: (
760
+ obj: NeptuneAnalyticsConfiguration
761
+ ) => any;
762
+ export declare const StorageConfigurationFilterSensitiveLog: (
763
+ obj: StorageConfiguration
764
+ ) => any;
711
765
  export declare const CreateKnowledgeBaseRequestFilterSensitiveLog: (
712
766
  obj: CreateKnowledgeBaseRequest
713
767
  ) => any;
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.758.0",
4
+ "version": "3.764.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",