Skip to content

Commit

Permalink
feat(client-bedrock-agent): Introduces support for Neptune Analytics …
Browse files Browse the repository at this point in the history
…as a vector data store and adds Context Enrichment Configurations, enabling use cases such as GraphRAG.
  • Loading branch information
awstools committed Mar 7, 2025
1 parent f460bc1 commit e77d1e3
Show file tree
Hide file tree
Showing 11 changed files with 597 additions and 184 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* parsingModality: "MULTIMODAL",
* },
* },
* contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
* type: "BEDROCK_FOUNDATION_MODEL", // required
* bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
* enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
* method: "CHUNK_ENTITY_EXTRACTION", // required
* },
* modelArn: "STRING_VALUE", // required
* },
* },
* },
* };
* const command = new CreateDataSourceCommand(input);
Expand Down Expand Up @@ -390,6 +399,15 @@ export interface CreateDataSourceCommandOutput extends CreateDataSourceResponse,
* // parsingModality: "MULTIMODAL",
* // },
* // },
* // contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
* // type: "BEDROCK_FOUNDATION_MODEL", // required
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
* // enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
* // method: "CHUNK_ENTITY_EXTRACTION", // required
* // },
* // modelArn: "STRING_VALUE", // required
* // },
* // },
* // },
* // dataDeletionPolicy: "RETAIN" || "DELETE",
* // createdAt: new Date("TIMESTAMP"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
* },
* },
* storageConfiguration: { // StorageConfiguration
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
* opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
* collectionArn: "STRING_VALUE", // required
* vectorIndexName: "STRING_VALUE", // required
Expand Down Expand Up @@ -217,6 +217,13 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
* },
* endpointServiceName: "STRING_VALUE",
* },
* neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
* graphArn: "STRING_VALUE", // required
* fieldMapping: { // NeptuneAnalyticsFieldMapping
* textField: "STRING_VALUE", // required
* metadataField: "STRING_VALUE", // required
* },
* },
* },
* tags: { // TagsMap
* "<keys>": "STRING_VALUE",
Expand Down Expand Up @@ -318,7 +325,7 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
* // },
* // },
* // storageConfiguration: { // StorageConfiguration
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
* // collectionArn: "STRING_VALUE", // required
* // vectorIndexName: "STRING_VALUE", // required
Expand Down Expand Up @@ -372,6 +379,13 @@ export interface CreateKnowledgeBaseCommandOutput extends CreateKnowledgeBaseRes
* // },
* // endpointServiceName: "STRING_VALUE",
* // },
* // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
* // graphArn: "STRING_VALUE", // required
* // fieldMapping: { // NeptuneAnalyticsFieldMapping
* // textField: "STRING_VALUE", // required
* // metadataField: "STRING_VALUE", // required
* // },
* // },
* // },
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
* // createdAt: new Date("TIMESTAMP"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import { MetadataBearer as __MetadataBearer } from "@smithy/types";

import { BedrockAgentClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentClient";
import { commonParams } from "../endpoint/EndpointParameters";
import { DeleteKnowledgeBaseDocumentsRequest } from "../models/models_0";
import { DeleteKnowledgeBaseDocumentsResponse } from "../models/models_1";
import { DeleteKnowledgeBaseDocumentsRequest, DeleteKnowledgeBaseDocumentsResponse } from "../models/models_1";
import {
de_DeleteKnowledgeBaseDocumentsCommand,
se_DeleteKnowledgeBaseDocumentsCommand,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,15 @@ export interface GetDataSourceCommandOutput extends GetDataSourceResponse, __Met
* // parsingModality: "MULTIMODAL",
* // },
* // },
* // contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
* // type: "BEDROCK_FOUNDATION_MODEL", // required
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
* // enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
* // method: "CHUNK_ENTITY_EXTRACTION", // required
* // },
* // modelArn: "STRING_VALUE", // required
* // },
* // },
* // },
* // dataDeletionPolicy: "RETAIN" || "DELETE",
* // createdAt: new Date("TIMESTAMP"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
* // },
* // },
* // storageConfiguration: { // StorageConfiguration
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
* // collectionArn: "STRING_VALUE", // required
* // vectorIndexName: "STRING_VALUE", // required
Expand Down Expand Up @@ -192,6 +192,13 @@ export interface GetKnowledgeBaseCommandOutput extends GetKnowledgeBaseResponse,
* // },
* // endpointServiceName: "STRING_VALUE",
* // },
* // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
* // graphArn: "STRING_VALUE", // required
* // fieldMapping: { // NeptuneAnalyticsFieldMapping
* // textField: "STRING_VALUE", // required
* // metadataField: "STRING_VALUE", // required
* // },
* // },
* // },
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
* // createdAt: new Date("TIMESTAMP"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,15 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
* parsingModality: "MULTIMODAL",
* },
* },
* contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
* type: "BEDROCK_FOUNDATION_MODEL", // required
* bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
* enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
* method: "CHUNK_ENTITY_EXTRACTION", // required
* },
* modelArn: "STRING_VALUE", // required
* },
* },
* },
* };
* const command = new UpdateDataSourceCommand(input);
Expand Down Expand Up @@ -390,6 +399,15 @@ export interface UpdateDataSourceCommandOutput extends UpdateDataSourceResponse,
* // parsingModality: "MULTIMODAL",
* // },
* // },
* // contextEnrichmentConfiguration: { // ContextEnrichmentConfiguration
* // type: "BEDROCK_FOUNDATION_MODEL", // required
* // bedrockFoundationModelConfiguration: { // BedrockFoundationModelContextEnrichmentConfiguration
* // enrichmentStrategyConfiguration: { // EnrichmentStrategyConfiguration
* // method: "CHUNK_ENTITY_EXTRACTION", // required
* // },
* // modelArn: "STRING_VALUE", // required
* // },
* // },
* // },
* // dataDeletionPolicy: "RETAIN" || "DELETE",
* // createdAt: new Date("TIMESTAMP"), // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
* },
* },
* storageConfiguration: { // StorageConfiguration
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
* type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
* opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
* collectionArn: "STRING_VALUE", // required
* vectorIndexName: "STRING_VALUE", // required
Expand Down Expand Up @@ -205,6 +205,13 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
* },
* endpointServiceName: "STRING_VALUE",
* },
* neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
* graphArn: "STRING_VALUE", // required
* fieldMapping: { // NeptuneAnalyticsFieldMapping
* textField: "STRING_VALUE", // required
* metadataField: "STRING_VALUE", // required
* },
* },
* },
* };
* const command = new UpdateKnowledgeBaseCommand(input);
Expand Down Expand Up @@ -303,7 +310,7 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
* // },
* // },
* // storageConfiguration: { // StorageConfiguration
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS", // required
* // type: "OPENSEARCH_SERVERLESS" || "PINECONE" || "REDIS_ENTERPRISE_CLOUD" || "RDS" || "MONGO_DB_ATLAS" || "NEPTUNE_ANALYTICS", // required
* // opensearchServerlessConfiguration: { // OpenSearchServerlessConfiguration
* // collectionArn: "STRING_VALUE", // required
* // vectorIndexName: "STRING_VALUE", // required
Expand Down Expand Up @@ -357,6 +364,13 @@ export interface UpdateKnowledgeBaseCommandOutput extends UpdateKnowledgeBaseRes
* // },
* // endpointServiceName: "STRING_VALUE",
* // },
* // neptuneAnalyticsConfiguration: { // NeptuneAnalyticsConfiguration
* // graphArn: "STRING_VALUE", // required
* // fieldMapping: { // NeptuneAnalyticsFieldMapping
* // textField: "STRING_VALUE", // required
* // metadataField: "STRING_VALUE", // required
* // },
* // },
* // },
* // status: "CREATING" || "ACTIVE" || "DELETING" || "UPDATING" || "FAILED" || "DELETE_UNSUCCESSFUL", // required
* // createdAt: new Date("TIMESTAMP"), // required
Expand Down
Loading

0 comments on commit e77d1e3

Please sign in to comment.