File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -126,16 +126,15 @@ export class EpsAssistMeStack extends Stack {
126126 } )
127127
128128 // Create vector index after Functions are created
129- // const vectorIndex = new VectorIndex(this, "VectorIndex", {
130- new VectorIndex ( this , "VectorIndex" , {
129+ const vectorIndex = new VectorIndex ( this , "VectorIndex" , {
131130 indexName : VECTOR_INDEX_NAME ,
132131 collection : openSearchResources . collection . collection ,
133132 createIndexFunction : functions . functions . createIndex ,
134133 endpoint
135134 } )
136135
137136 // Ensure knowledge base waits for vector index
138- // vectorKB.knowledgeBase.node.addDependency(vectorIndex.vectorIndex)
137+ vectorKB . knowledgeBase . node . addDependency ( vectorIndex . vectorIndex )
139138
140139 // Add S3 notification to trigger sync Lambda function
141140 new S3LambdaNotification ( this , "S3LambdaNotification" , {
You can’t perform that action at this time.
0 commit comments