Skip to content
Snippets Groups Projects
Unverified Commit 7c4e37c5 authored by Emanuel Ferreira's avatar Emanuel Ferreira Committed by GitHub
Browse files

fix(getCollection): getOrCreateCollection (#413)

parent 2d8845b0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment