Skip to content

Commit 7a5625d

Browse files
author
awstools
committed
feat(client-bedrock-agent): Added optional "customMetadataField" for Amazon Aurora knowledge bases, allowing single-column metadata. Also added optional "textIndexName" for MongoDB Atlas knowledge bases, enabling hybrid search support.
1 parent 080b5b4 commit 7a5625d

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

clients/client-bedrock-agent/src/commands/CreateKnowledgeBaseCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
212212
* vectorField: "STRING_VALUE", // required
213213
* textField: "STRING_VALUE", // required
214214
* metadataField: "STRING_VALUE", // required
215+
* customMetadataField: "STRING_VALUE",
215216
* },
216217
* },
217218
* mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
@@ -226,6 +227,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
226227
* metadataField: "STRING_VALUE", // required
227228
* },
228229
* endpointServiceName: "STRING_VALUE",
230+
* textIndexName: "STRING_VALUE",
229231
* },
230232
* neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
231233
* graphArn: "STRING_VALUE", // required
@@ -384,6 +386,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
384386
* // vectorField: "STRING_VALUE", // required
385387
* // textField: "STRING_VALUE", // required
386388
* // metadataField: "STRING_VALUE", // required
389+
* // customMetadataField: "STRING_VALUE",
387390
* // },
388391
* // },
389392
* // mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
@@ -398,6 +401,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
398401
* // metadataField: "STRING_VALUE", // required
399402
* // },
400403
* // endpointServiceName: "STRING_VALUE",
404+
* // textIndexName: "STRING_VALUE",
401405
* // },
402406
* // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
403407
* // graphArn: "STRING_VALUE", // required

clients/client-bedrock-agent/src/commands/GetKnowledgeBaseCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
187187
* // vectorField: "STRING_VALUE", // required
188188
* // textField: "STRING_VALUE", // required
189189
* // metadataField: "STRING_VALUE", // required
190+
* // customMetadataField: "STRING_VALUE",
190191
* // },
191192
* // },
192193
* // mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
@@ -201,6 +202,7 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
201202
* // metadataField: "STRING_VALUE", // required
202203
* // },
203204
* // endpointServiceName: "STRING_VALUE",
205+
* // textIndexName: "STRING_VALUE",
204206
* // },
205207
* // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
206208
* // graphArn: "STRING_VALUE", // required

clients/client-bedrock-agent/src/commands/UpdateKnowledgeBaseCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
200200
* vectorField: "STRING_VALUE", // required
201201
* textField: "STRING_VALUE", // required
202202
* metadataField: "STRING_VALUE", // required
203+
* customMetadataField: "STRING_VALUE",
203204
* },
204205
* },
205206
* mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
@@ -214,6 +215,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
214215
* metadataField: "STRING_VALUE", // required
215216
* },
216217
* endpointServiceName: "STRING_VALUE",
218+
* textIndexName: "STRING_VALUE",
217219
* },
218220
* neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
219221
* graphArn: "STRING_VALUE", // required
@@ -369,6 +371,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
369371
* // vectorField: "STRING_VALUE", // required
370372
* // textField: "STRING_VALUE", // required
371373
* // metadataField: "STRING_VALUE", // required
374+
* // customMetadataField: "STRING_VALUE",
372375
* // },
373376
* // },
374377
* // mongoDbAtlasConfiguration: { // MongoDbAtlasConfiguration
@@ -383,6 +386,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
383386
* // metadataField: "STRING_VALUE", // required
384387
* // },
385388
* // endpointServiceName: "STRING_VALUE",
389+
* // textIndexName: "STRING_VALUE",
386390
* // },
387391
* // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
388392
* // graphArn: "STRING_VALUE", // required

clients/client-bedrock-agent/src/models/models_1.ts

+14
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,13 @@ export interface MongoDbAtlasConfiguration {
13551355
* @public
13561356
*/
13571357
endpointServiceName?: string | undefined;
1358+
1359+
/**
1360+
* <p>The name of the text search index in the MongoDB collection. This is required for using the hybrid search
1361+
* feature.</p>
1362+
* @public
1363+
*/
1364+
textIndexName?: string | undefined;
13581365
}
13591366

13601367
/**
@@ -1576,6 +1583,13 @@ export interface RdsFieldMapping {
15761583
* @public
15771584
*/
15781585
metadataField: string | undefined;
1586+
1587+
/**
1588+
* <p>Provide a name for the universal metadata field where Amazon Bedrock will store any custom metadata from
1589+
* your data source.</p>
1590+
* @public
1591+
*/
1592+
customMetadataField?: string | undefined;
15791593
}
15801594

15811595
/**

0 commit comments

Comments
 (0)