Skip to content

Commit b3c0278

Browse files
authored
v1.18 (#133)
* v1.18 * undici from 6.23.0 to 6.24.0 * test CI using v1.17 * grpc update * grpc update * QDRANT_LATEST version up
1 parent 5241d5d commit b3c0278

22 files changed

Lines changed: 1073 additions & 270 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: 26 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,24 @@ 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+
}
368+
369+
enum TurboQuantBitSize{
370+
Bits1 = 0;
371+
Bits1_5 = 1;
372+
Bits2 = 2;
373+
Bits4 = 3;
374+
}
375+
364376
message QuantizationConfig {
365377
oneof quantization {
366378
ScalarQuantization scalar = 1;
367379
ProductQuantization product = 2;
368380
BinaryQuantization binary = 3;
381+
TurboQuantization turboquant = 4;
369382
}
370383
}
371384

@@ -377,6 +390,7 @@ message QuantizationConfigDiff {
377390
ProductQuantization product = 2;
378391
Disabled disabled = 3;
379392
BinaryQuantization binary = 4;
393+
TurboQuantization turboquant = 5;
380394
}
381395
}
382396

@@ -406,6 +420,8 @@ message StrictModeConfig {
406420
optional float search_max_oversampling = 8;
407421
// Max batchsize when upserting
408422
optional uint64 upsert_max_batchsize = 9;
423+
// Max batchsize when searching
424+
optional uint64 search_max_batchsize = 20;
409425
// Max size of a collections vector storage in bytes, ignoring replicas.
410426
optional uint64 max_collection_vector_size_bytes = 10;
411427
// Max number of read operations per minute per replica
@@ -426,6 +442,9 @@ message StrictModeConfig {
426442
optional uint64 max_points_count = 18;
427443
// Max number of payload indexes in a collection
428444
optional uint64 max_payload_index_count = 19;
445+
// Reject memory-consuming update operations when process resident memory exceeds this percentage of total RAM (cgroup-aware, 1-100).
446+
// Delete-style operations are still allowed so memory can be freed.
447+
optional uint32 max_resident_memory_percent = 21;
429448
}
430449

431450
message StrictModeSparseConfig {
@@ -749,8 +768,11 @@ message PayloadSchemaInfo {
749768
}
750769

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

756778
message CollectionInfo {

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

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,62 @@ 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+
// Write ordering guarantees
395+
optional WriteOrdering ordering = 7;
396+
}
397+
398+
message DeleteVectorNameRequest {
399+
// Name of the collection
400+
string collection_name = 1;
401+
// Wait until the changes have been applied?
402+
optional bool wait = 2;
403+
// Name of the vector to delete
404+
string vector_name = 3;
405+
// If set, overrides global timeout setting for this request. Unit is seconds.
406+
optional uint64 timeout = 4;
407+
// Write ordering guarantees
408+
optional WriteOrdering ordering = 5;
409+
}
410+
355411
message PayloadIncludeSelector {
356412
// List of payload keys to include into result
357413
repeated string fields = 1;
@@ -417,11 +473,11 @@ message QuantizationSearchParams {
417473

418474
// Oversampling factor for quantization.
419475
//
420-
// Defines how many extra vectors should be pre-selected using quantized index,
476+
// Defines how many extra vectors should be preselected using quantized index,
421477
// and then re-scored using original vectors.
422478
//
423479
// For example, if `oversampling` is 2.4 and `limit` is 100,
424-
// then 240 vectors will be pre-selected using quantized index,
480+
// then 240 vectors will be preselected using quantized index,
425481
// and then top-100 will be returned after re-scoring.
426482
optional double oversampling = 3;
427483
}

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: 156 additions & 69 deletions
Large diffs are not rendered by default.

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

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

0 commit comments

Comments
 (0)