Skip to content

Commit

Permalink
Rename queryPoints into query
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanPleshkov committed Jun 28, 2024
1 parent 1b42707 commit f0f7e10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/js-client-rest/src/qdrant-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1835,7 +1835,7 @@ export class QdrantClient {
* - searches: List of queries
* @returns Operation result
*/
async queryBatchPoints(
async queryBatch(
collection_name: string,
{
consistency,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
},
Expand All @@ -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: {
Expand Down

0 comments on commit f0f7e10

Please sign in to comment.