@@ -1077,7 +1077,7 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
10771077 } ) ;
10781078} ) ;
10791079
1080- // const maybe = process.env.OPENAI_APIKEY ? describe : describe.skip;
1080+ // const maybe = process.env.COHERE_APIKEY ? describe : describe.skip;
10811081
10821082// maybe('Testing of collection.query using rerank functionality', () => {
10831083// let client: WeaviateClient;
@@ -1094,13 +1094,15 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
10941094// });
10951095
10961096// beforeAll(async () => {
1097- // client = await weaviate.connectToLocal({
1098- // port: 8079,
1099- // grpcPort: 50050,
1100- // headers: {
1101- // 'X-OpenAI-Api-Key': process.env.OPENAI_APIKEY as string,
1102- // },
1103- // });
1097+ // client = await weaviate.connectToWeaviateCloud(
1098+ // 'https://piblpmmdsiknacjnm1ltla.c1.europe-west3.gcp.weaviate.cloud',
1099+ // {
1100+ // authCredentials: 'NOg5AliYnrN6z7dZDuGv7SLVKhTabAaSTKS7',
1101+ // headers: {
1102+ // 'X-Cohere-Api-Key': process.env.COHERE_APIKEY as string,
1103+ // },
1104+ // }
1105+ // );
11041106// collection = client.collections.get(collectionName);
11051107// [id1, id2] = await client.collections
11061108// .create({
@@ -1111,8 +1113,8 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
11111113// dataType: 'text',
11121114// },
11131115// ],
1114- // reranker: weaviate.configure.reranker.transformers (),
1115- // vectorizers: weaviate.configure.vectorizer.text2VecOpenAI (),
1116+ // reranker: weaviate.configure.reranker.cohere (),
1117+ // vectorizers: weaviate.configure.vectorizer.text2VecCohere (),
11161118// })
11171119// .then(() =>
11181120// Promise.all([
@@ -1160,7 +1162,7 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
11601162// expect(objects[1].properties.text).toEqual('This is a test');
11611163// });
11621164
1163- // it.skip ('should rerank the results in a nearObject query', async () => {
1165+ // it('should rerank the results in a nearObject query', async () => {
11641166// const ret = await collection.query.nearObject(id1, {
11651167// rerank: {
11661168// property: 'text',
@@ -1190,7 +1192,7 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
11901192// expect(objects[1].properties.text).toEqual('This is a test');
11911193// });
11921194
1193- // it.skip ('should rerank the results in a nearObject query', async () => {
1195+ // it('should rerank the results in a nearObject query', async () => {
11941196// const obj = await collection.query.fetchObjectById(id1, { includeVector: true });
11951197// const ret = await collection.query.nearVector(obj?.vectors.default!, {
11961198// rerank: {
0 commit comments