Skip to content

Commit

Permalink
v1.2.0 API (#18)
Browse files Browse the repository at this point in the history
* update api

* comments and default values

* version up + add lint-staged

* revert lint-staged

* update openapi
  • Loading branch information
IvanPleshkov authored May 23, 2023
1 parent 5ca1cc2 commit 5413e88
Show file tree
Hide file tree
Showing 6 changed files with 640 additions and 43 deletions.
2 changes: 1 addition & 1 deletion packages/js-client-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@qdrant/js-client-rest",
"version": "1.1.6",
"version": "1.2.0",
"engines": {
"node": ">=18.0.0",
"pnpm": ">=8"
Expand Down
32 changes: 32 additions & 0 deletions packages/js-client-rest/src/api/points-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ export function createPointsApi(client: Client) {
.method('post')
.create({wait: true, ordering: true}),

/**
* Update vectors
*/
updateVectors: client
.path('/collections/{collection_name}/points/vectors')
.method('put')
.create({wait: true, ordering: true}),

/**
* Delete vectors
*/
deleteVectors: client
.path('/collections/{collection_name}/points/vectors/delete')
.method('post')
.create({wait: true, ordering: true}),

/**
* Retrieve full information of single point by id
*/
Expand Down Expand Up @@ -65,6 +81,14 @@ export function createPointsApi(client: Client) {
.method('post')
.create({consistency: true}),

/**
* Search point groups
*/
searchPointGroups: client
.path('/collections/{collection_name}/points/search/groups')
.method('post')
.create({consistency: true}),

/**
* Scroll request - paginate over all points which matches given filtering condition
*/
Expand Down Expand Up @@ -104,5 +128,13 @@ export function createPointsApi(client: Client) {
.path('/collections/{collection_name}/points')
.method('put')
.create({wait: true, ordering: true}),

/**
* Recommend point groups
*/
recommendPointGroups: client
.path('/collections/{collection_name}/points/recommend/groups')
.method('post')
.create({consistency: true}),
} as const;
}
Loading

0 comments on commit 5413e88

Please sign in to comment.