diff --git a/packages/core/src/storage/vectorStore/ChromaVectorStore.ts b/packages/core/src/storage/vectorStore/ChromaVectorStore.ts index d6d8d52de11f880b2754fefd74cbfbb8ee6d5ee1..8ad38e720338aaf0b5d8091a69de7ef6e476e2c4 100644 --- a/packages/core/src/storage/vectorStore/ChromaVectorStore.ts +++ b/packages/core/src/storage/vectorStore/ChromaVectorStore.ts @@ -52,7 +52,7 @@ export class ChromaVectorStore implements VectorStore { async getCollection(): Promise<Collection> { if (!this.collection) { - const coll = await this.chromaClient.createCollection({ + const coll = await this.chromaClient.getOrCreateCollection({ name: this.collectionName, }); this.collection = coll;