Skip to content

Commit aff104c

Browse files
committed
v1.18
1 parent 4f3ec69 commit aff104c

22 files changed

Lines changed: 1057 additions & 266 deletions

examples/node-js-basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"author": "Qdrant Team",
1616
"license": "Apache-2.0",
1717
"dependencies": {
18-
"@qdrant/qdrant-js": "^1.17.0"
18+
"@qdrant/qdrant-js": "^1.18.0"
1919
}
2020
}

packages/js-client-grpc/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @qdrant/js-client-grpc
22

3+
## 1.18.0
4+
5+
### Minor Changes
6+
7+
- Qdrant v1.18.0 API
8+
39
## 1.17.0
410

511
### Minor Changes

packages/js-client-grpc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@qdrant/js-client-grpc",
3-
"version": "1.17.0",
3+
"version": "1.18.0",
44
"engines": {
55
"node": ">=18.0.0",
66
"pnpm": ">=8"

packages/js-client-grpc/proto/collections.proto

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
syntax = "proto3";
22
package qdrant;
33

4-
option csharp_namespace = "Qdrant.Client.Grpc";
5-
64
import "json_with_int.proto";
75
import "qdrant_common.proto";
86

7+
option csharp_namespace = "Qdrant.Client.Grpc";
8+
99
enum Datatype {
1010
Default = 0;
1111
Float32 = 1;
@@ -361,11 +361,25 @@ message BinaryQuantization {
361361
optional BinaryQuantizationQueryEncoding query_encoding = 3;
362362
}
363363

364+
message TurboQuantization{
365+
optional bool always_ram = 1;
366+
optional TurboQuantBitSize bits = 2;
367+
optional bool data_fit = 3;
368+
}
369+
370+
enum TurboQuantBitSize{
371+
Bits1 = 0;
372+
Bits1_5 = 1;
373+
Bits2 = 2;
374+
Bits4 = 3;
375+
}
376+
364377
message QuantizationConfig {
365378
oneof quantization {
366379
ScalarQuantization scalar = 1;
367380
ProductQuantization product = 2;
368381
BinaryQuantization binary = 3;
382+
TurboQuantization turboquant = 4;
369383
}
370384
}
371385

@@ -377,6 +391,7 @@ message QuantizationConfigDiff {
377391
ProductQuantization product = 2;
378392
Disabled disabled = 3;
379393
BinaryQuantization binary = 4;
394+
TurboQuantization turboquant = 5;
380395
}
381396
}
382397

@@ -406,6 +421,8 @@ message StrictModeConfig {
406421
optional float search_max_oversampling = 8;
407422
// Max batchsize when upserting
408423
optional uint64 upsert_max_batchsize = 9;
424+
// Max batchsize when searching
425+
optional uint64 search_max_batchsize = 20;
409426
// Max size of a collections vector storage in bytes, ignoring replicas.
410427
optional uint64 max_collection_vector_size_bytes = 10;
411428
// Max number of read operations per minute per replica
@@ -426,6 +443,9 @@ message StrictModeConfig {
426443
optional uint64 max_points_count = 18;
427444
// Max number of payload indexes in a collection
428445
optional uint64 max_payload_index_count = 19;
446+
// Reject memory-consuming update operations when process resident memory exceeds this percentage of total RAM (cgroup-aware, 1-100).
447+
// Delete-style operations are still allowed so memory can be freed.
448+
optional uint32 max_resident_memory_percent = 21;
429449
}
430450

431451
message StrictModeSparseConfig {
@@ -749,8 +769,11 @@ message PayloadSchemaInfo {
749769
}
750770

751771
message UpdateQueueInfo {
752-
// Number of elements in the queue
753-
uint64 length = 1;
772+
// Number of elements in the queue
773+
uint64 length = 1;
774+
775+
// Number of points that are deferred (i.e hidden from search as they're not yet optimized).
776+
optional uint64 deferred_points = 2;
754777
}
755778

756779
message CollectionInfo {

packages/js-client-grpc/proto/points.proto

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,58 @@ message DeleteFieldIndexCollection {
352352
optional uint64 timeout = 5;
353353
}
354354

355+
// Dense vector creation parameters.
356+
// Only includes immutable properties that define the vector space.
357+
// Storage type, index, and quantization are configured separately.
358+
message DenseVectorCreationConfig {
359+
// Size/dimensionality of the vectors
360+
uint64 size = 1;
361+
// Distance function used for comparing vectors
362+
Distance distance = 2;
363+
// Configuration for multi-vector search (e.g., ColBERT)
364+
optional MultiVectorConfig multivector_config = 3;
365+
// Data type of the vectors (Float32, Float16, Uint8)
366+
optional Datatype datatype = 4;
367+
}
368+
369+
// Sparse vector creation parameters.
370+
// Only includes immutable properties that define the vector space.
371+
message SparseVectorCreationConfig {
372+
// If set - apply modifier to the vector values (e.g., IDF)
373+
optional Modifier modifier = 1;
374+
// Data type used to store weights in the index
375+
optional Datatype datatype = 2;
376+
}
377+
378+
message CreateVectorNameRequest {
379+
// Name of the collection
380+
string collection_name = 1;
381+
// Wait until the changes have been applied?
382+
optional bool wait = 2;
383+
// Name of the new vector
384+
string vector_name = 3;
385+
// Configuration for the new vector - either dense or sparse
386+
oneof vector_config {
387+
// Dense vector parameters
388+
DenseVectorCreationConfig dense_config = 4;
389+
// Sparse vector parameters
390+
SparseVectorCreationConfig sparse_config = 5;
391+
}
392+
// If set, overrides global timeout setting for this request. Unit is seconds.
393+
optional uint64 timeout = 6;
394+
}
395+
396+
message DeleteVectorNameRequest {
397+
// Name of the collection
398+
string collection_name = 1;
399+
// Wait until the changes have been applied?
400+
optional bool wait = 2;
401+
// Name of the vector to delete
402+
string vector_name = 3;
403+
// If set, overrides global timeout setting for this request. Unit is seconds.
404+
optional uint64 timeout = 4;
405+
}
406+
355407
message PayloadIncludeSelector {
356408
// List of payload keys to include into result
357409
repeated string fields = 1;
@@ -417,11 +469,11 @@ message QuantizationSearchParams {
417469

418470
// Oversampling factor for quantization.
419471
//
420-
// Defines how many extra vectors should be pre-selected using quantized index,
472+
// Defines how many extra vectors should be preselected using quantized index,
421473
// and then re-scored using original vectors.
422474
//
423475
// For example, if `oversampling` is 2.4 and `limit` is 100,
424-
// then 240 vectors will be pre-selected using quantized index,
476+
// then 240 vectors will be preselected using quantized index,
425477
// and then top-100 will be returned after re-scoring.
426478
optional double oversampling = 3;
427479
}

packages/js-client-grpc/proto/points_service.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ service Points {
3131
// Delete field index for collection
3232
rpc DeleteFieldIndex(DeleteFieldIndexCollection)
3333
returns (PointsOperationResponse) {}
34+
// Create a new named vector on the collection
35+
rpc CreateVectorName(CreateVectorNameRequest) returns (PointsOperationResponse) {}
36+
// Delete a named vector from the collection
37+
rpc DeleteVectorName(DeleteVectorNameRequest) returns (PointsOperationResponse) {}
3438
// Retrieve closest points based on vector similarity and given filtering
3539
// conditions
3640
rpc Search(SearchPoints) returns (SearchResponse) {}

packages/js-client-grpc/scripts/generate-grpc-sources.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ rm $CLIENT_DIR/qdrant_internal_service.proto
2727
rm $CLIENT_DIR/health_check.proto
2828
rm $CLIENT_DIR/shard_snapshots_service.proto
2929
rm $CLIENT_DIR/telemetry_internal.proto
30+
rm $CLIENT_DIR/storage_read_service.proto
3031
cat $CLIENT_DIR/qdrant.proto \
3132
| grep -v 'collections_internal_service.proto' \
3233
| grep -v 'points_internal_service.proto' \
@@ -35,6 +36,7 @@ cat $CLIENT_DIR/qdrant.proto \
3536
| grep -v 'health_check.proto' \
3637
| grep -v 'shard_snapshots_service.proto' \
3738
| grep -v 'telemetry_internal.proto' \
39+
| grep -v 'storage_read_service.proto' \
3840
> $CLIENT_DIR/qdrant_tmp.proto
3941
mv $CLIENT_DIR/qdrant_tmp.proto $CLIENT_DIR/qdrant.proto
4042

packages/js-client-grpc/src/client-version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const PACKAGE_VERSION = '1.17.0';
1+
export const PACKAGE_VERSION = '1.18.0';
22

33
interface Version {
44
major: number;

packages/js-client-grpc/src/proto/collections_pb.ts

Lines changed: 161 additions & 69 deletions
Large diffs are not rendered by default.

packages/js-client-grpc/src/proto/points_pb.ts

Lines changed: 285 additions & 109 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)