Skip to content

Commit

Permalink
Comment out WCD reranker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Jul 10, 2024
1 parent 2c992c5 commit df1806d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions src/collections/query/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
});
});

// const maybe = process.env.OPENAI_APIKEY ? describe : describe.skip;
// const maybe = process.env.COHERE_APIKEY ? describe : describe.skip;

// maybe('Testing of collection.query using rerank functionality', () => {
// let client: WeaviateClient;
Expand All @@ -1094,13 +1094,15 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
// });

// beforeAll(async () => {
// client = await weaviate.connectToLocal({
// port: 8079,
// grpcPort: 50050,
// headers: {
// 'X-OpenAI-Api-Key': process.env.OPENAI_APIKEY as string,
// },
// });
// client = await weaviate.connectToWeaviateCloud(
// 'https://piblpmmdsiknacjnm1ltla.c1.europe-west3.gcp.weaviate.cloud',
// {
// authCredentials: 'NOg5AliYnrN6z7dZDuGv7SLVKhTabAaSTKS7',
// headers: {
// 'X-Cohere-Api-Key': process.env.COHERE_APIKEY as string,
// },
// }
// );
// collection = client.collections.get(collectionName);
// [id1, id2] = await client.collections
// .create({
Expand All @@ -1111,8 +1113,8 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
// dataType: 'text',
// },
// ],
// reranker: weaviate.configure.reranker.transformers(),
// vectorizers: weaviate.configure.vectorizer.text2VecOpenAI(),
// reranker: weaviate.configure.reranker.cohere(),
// vectorizers: weaviate.configure.vectorizer.text2VecCohere(),
// })
// .then(() =>
// Promise.all([
Expand Down Expand Up @@ -1160,7 +1162,7 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
// expect(objects[1].properties.text).toEqual('This is a test');
// });

// it.skip('should rerank the results in a nearObject query', async () => {
// it('should rerank the results in a nearObject query', async () => {
// const ret = await collection.query.nearObject(id1, {
// rerank: {
// property: 'text',
Expand Down Expand Up @@ -1190,7 +1192,7 @@ describe('Testing of the collection.query methods with a multi-tenancy collectio
// expect(objects[1].properties.text).toEqual('This is a test');
// });

// it.skip('should rerank the results in a nearObject query', async () => {
// it('should rerank the results in a nearObject query', async () => {
// const obj = await collection.query.fetchObjectById(id1, { includeVector: true });
// const ret = await collection.query.nearVector(obj?.vectors.default!, {
// rerank: {
Expand Down

0 comments on commit df1806d

Please sign in to comment.