Skip to content

Commit e17b323

Browse files
committed
Use a unique osCollection name per deploy
1 parent 921c3cc commit e17b323

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cdk/stacks/EpsAssistMeStack.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {nagSuppressions} from "../nagSuppressions"
3535
const RAG_MODEL_ID = "anthropic.claude-3-sonnet-20240229-v1:0"
3636
const EMBEDDING_MODEL = "amazon.titan-embed-text-v2:0"
3737
const SLACK_SLASH_COMMAND = "/ask-eps"
38-
// const COLLECTION_NAME = "eps-assist-vector-db"
38+
const COLLECTION_NAME = "eps-assist-vector-db"
3939
const VECTOR_INDEX_NAME = "eps-assist-os-index"
4040
const BEDROCK_KB_NAME = "eps-assist-kb"
4141
const BEDROCK_KB_DATA_SOURCE = "eps-assist-kb-ds"
@@ -213,7 +213,7 @@ export class EpsAssistMeStack extends Stack {
213213

214214
//Define OpenSearchServerless Collection & depends on policies
215215
const osCollection = new ops.CfnCollection(this, "osCollection", {
216-
// name: COLLECTION_NAME,
216+
name: `${COLLECTION_NAME}-${props.version}`,
217217
description: "EPS Assist Vector Store",
218218
type: "VECTORSEARCH"
219219
})

0 commit comments

Comments
 (0)