From a3a0ce67a12f68e2aea5453643083081ecd82bab Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Thu, 9 Jan 2025 09:40:48 +0000 Subject: [PATCH 1/2] Ensure collection is deleted from WCD --- src/collections/journey.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/collections/journey.test.ts b/src/collections/journey.test.ts index 2faad7b3..d1a53573 100644 --- a/src/collections/journey.test.ts +++ b/src/collections/journey.test.ts @@ -12,6 +12,8 @@ describe('Journey testing of the client using a WCD cluster', () => { dateOfBirth: Date; }; + afterAll(() => client.collections.delete(collectionName)); + beforeAll(async () => { client = await weaviate.connectToWeaviateCloud( 'https://piblpmmdsiknacjnm1ltla.c1.europe-west3.gcp.weaviate.cloud', From 3748dfe7d446de2c1244385755846e4d4d85fb9a Mon Sep 17 00:00:00 2001 From: Tommy Smith Date: Thu, 9 Jan 2025 10:00:43 +0000 Subject: [PATCH 2/2] Remove redundant delete of collection --- src/collections/journey.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/collections/journey.test.ts b/src/collections/journey.test.ts index d1a53573..85da3a8f 100644 --- a/src/collections/journey.test.ts +++ b/src/collections/journey.test.ts @@ -21,7 +21,6 @@ describe('Journey testing of the client using a WCD cluster', () => { authCredentials: 'NOg5AliYnrN6z7dZDuGv7SLVKhTabAaSTKS7', } ); - return client.collections.delete(collectionName); }); it('should create the correct config for a collection with vectorizer, generative, and reranker modules', () => { @@ -169,6 +168,9 @@ describe('Journey testing of the client using a WCD cluster', () => { vectorizer: { name: 'text2vec-cohere', config: { + baseUrl: 'https://api.cohere.ai', + model: 'embed-multilingual-v3.0', + truncate: 'END', vectorizeCollectionName: true, }, },