@@ -84,15 +84,15 @@ export class EpsAssistMeStack extends Stack {
8484 const endpoint = openSearchResources . collection . endpoint
8585
8686 // Create VectorKnowledgeBase construct with Bedrock execution role
87- // const vectorKB = new VectorKnowledgeBaseResources(this, "VectorKB", {
88- // stackName: props.stackName,
89- // docsBucket: storage.kbDocsBucket.bucket,
90- // bedrockExecutionRole: bedrockExecutionRole.role,
91- // collectionArn: openSearchResources.collection.collectionArn,
92- // vectorIndexName: VECTOR_INDEX_NAME,
93- // region,
94- // account
95- // })
87+ const vectorKB = new VectorKnowledgeBaseResources ( this , "VectorKB" , {
88+ stackName : props . stackName ,
89+ docsBucket : storage . kbDocsBucket . bucket ,
90+ bedrockExecutionRole : bedrockExecutionRole . role ,
91+ collectionArn : openSearchResources . collection . collectionArn ,
92+ vectorIndexName : VECTOR_INDEX_NAME ,
93+ region,
94+ account
95+ } )
9696
9797 // Create runtime policies with resource dependencies
9898 // const runtimePolicies = new RuntimePolicies(this, "RuntimePolicies", {
@@ -141,7 +141,7 @@ export class EpsAssistMeStack extends Stack {
141141 } )
142142
143143 // Ensure knowledge base waits for vector index
144- // vectorKB.knowledgeBase.node.addDependency(vectorIndex.cfnIndex)
144+ vectorKB . knowledgeBase . node . addDependency ( vectorIndex . cfnIndex )
145145
146146 // Add S3 notification to trigger sync Lambda function
147147 // new S3LambdaNotification(this, "S3LambdaNotification", {
0 commit comments