diff --git a/packages/js-client-rest/src/qdrant-client.ts b/packages/js-client-rest/src/qdrant-client.ts index bb35595..e3f8a31 100644 --- a/packages/js-client-rest/src/qdrant-client.ts +++ b/packages/js-client-rest/src/qdrant-client.ts @@ -1781,7 +1781,7 @@ export class QdrantClient { * - lookup_from: The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector Note: the other collection vectors should have the same vector size as the 'using' vector in the current collection. * @returns Operation result */ - async queryPoints( + async query( collection_name: string, { consistency, @@ -1835,7 +1835,7 @@ export class QdrantClient { * - searches: List of queries * @returns Operation result */ - async queryBatchPoints( + async queryBatch( collection_name: string, { consistency, diff --git a/packages/js-client-rest/tests/integration/qdrant-client.test.ts b/packages/js-client-rest/tests/integration/qdrant-client.test.ts index 18d7ae3..4682031 100644 --- a/packages/js-client-rest/tests/integration/qdrant-client.test.ts +++ b/packages/js-client-rest/tests/integration/qdrant-client.test.ts @@ -180,7 +180,7 @@ describe('QdrantClient', () => { }); test('query nearest points', async () => { - const result = await client.queryPoints(collectionName, { + const result = await client.query(collectionName, { query: { nearest: [0.2, 0.1, 0.9, 0.7], }, @@ -202,7 +202,7 @@ describe('QdrantClient', () => { }); test('batch query nearest points', async () => { - const result = await client.queryBatchPoints(collectionName, { + const result = await client.queryBatch(collectionName, { searches: [ { query: {