You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/js-client-grpc/proto/collections.proto
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,7 @@ enum PayloadSchemaType {
129
129
Text=5;
130
130
Bool=6;
131
131
Datetime=7;
132
+
Uuid=8;
132
133
}
133
134
134
135
enumQuantizationType {
@@ -386,14 +387,20 @@ enum TokenizerType {
386
387
}
387
388
388
389
messageKeywordIndexParams {
390
+
optionalboolis_tenant=1; // If true - used for tenant optimization.
391
+
optionalboolon_disk=2; // If true - store index on disk.
389
392
}
390
393
391
394
messageIntegerIndexParams {
392
395
boollookup=1; // If true - support direct lookups.
393
396
boolrange=2; // If true - support ranges filters.
397
+
optionalboolis_principal=3; // If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.
398
+
optionalboolon_disk=4; // If true - store index on disk.
394
399
}
395
400
396
401
messageFloatIndexParams {
402
+
optionalboolon_disk=1; // If true - store index on disk.
403
+
optionalboolis_principal=2; // If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.
397
404
}
398
405
399
406
messageGeoIndexParams {
@@ -410,6 +417,13 @@ message BoolIndexParams {
410
417
}
411
418
412
419
messageDatetimeIndexParams {
420
+
optionalboolon_disk=1; // If true - store index on disk.
421
+
optionalboolis_principal=2; // If true - use this key to organize storage of the collection data. This option assumes that this key will be used in majority of filtered requests.
422
+
}
423
+
424
+
messageUuidIndexParams {
425
+
optionalboolis_tenant=1; // If true - used for tenant optimization.
426
+
optionalboolon_disk=2; // If true - store index on disk.
413
427
}
414
428
415
429
messagePayloadIndexParams {
@@ -421,6 +435,7 @@ message PayloadIndexParams {
421
435
TextIndexParamstext_index_params=1; // Parameters for text index
422
436
BoolIndexParamsbool_index_params=6; // Parameters for bool index
423
437
DatetimeIndexParamsdatetime_index_params=7; // Parameters for datetime index
438
+
UuidIndexParamsuuid_index_params=8; // Parameters for uuid index
// leaving extensibility for possibly adding multi-target
439
442
}
440
443
}
@@ -481,6 +484,7 @@ message CountPoints {
481
484
optionalboolexact=3; // If `true` - return exact count, if `false` - return approximate count
482
485
optionalReadConsistencyread_consistency=4; // Options for specifying read consistency guarantees
483
486
optionalShardKeySelectorshard_key_selector=5; // Specify in which shards to look for the points, if not specified - look in all shards
487
+
optionaluint64timeout=6; // If set, overrides global timeout setting for this request. Unit is seconds.
484
488
}
485
489
486
490
messageRecommendInput {
@@ -505,6 +509,16 @@ message ContextInput {
505
509
506
510
enumFusion {
507
511
RRF=0; // Reciprocal Rank Fusion
512
+
DBSF=1; // Distribution-Based Score Fusion
513
+
}
514
+
515
+
// Sample points from the collection
516
+
//
517
+
// Available sampling methods:
518
+
//
519
+
// * `random` - Random sampling
520
+
enumSample {
521
+
Random=0;
508
522
}
509
523
510
524
messageQuery {
@@ -515,6 +529,7 @@ message Query {
515
529
ContextInputcontext=4; // Return points that live in positive areas.
516
530
OrderByorder_by=5; // Order the points by a payload field.
517
531
Fusionfusion=6; // Fuse the results of multiple prefetches.
532
+
Samplesample=7; // Sample points from the collection.
518
533
}
519
534
}
520
535
@@ -554,6 +569,37 @@ message QueryBatchPoints {
554
569
optionaluint64timeout=4; // If set, overrides global timeout setting for this request. Unit is seconds.
555
570
}
556
571
572
+
messageQueryPointGroups {
573
+
stringcollection_name=1; // Name of the collection
574
+
repeatedPrefetchQueryprefetch=2; // Sub-requests to perform first. If present, the query will be performed on the results of the prefetches.
575
+
optionalQueryquery=3; // Query to perform. If missing, returns points ordered by their IDs.
576
+
optionalstringusing=4; // Define which vector to use for querying. If missing, the default vector is used.
577
+
optionalFilterfilter=5; // Filter conditions - return only those points that satisfy the specified conditions.
578
+
optionalSearchParamsparams=6; // Search params for when there is no prefetch.
579
+
optionalfloatscore_threshold=7; // Return points with scores better than this threshold.
580
+
WithPayloadSelectorwith_payload=8; // Options for specifying which payload to include or not
581
+
optionalWithVectorsSelectorwith_vectors=9; // Options for specifying which vectors to include into response
582
+
optionalLookupLocationlookup_from=10; // The location to use for IDs lookup, if not specified - use the current collection and the 'using' vector
583
+
optionaluint64limit=11; // Max number of points. Default is 3.
584
+
optionaluint64group_size=12; // Maximum amount of points to return per group. Default to 10.
585
+
stringgroup_by=13; // Payload field to group by, must be a string or number field. If there are multiple values for the field, all of them will be used. One point can be in multiple groups.
586
+
optionalReadConsistencyread_consistency=14; // Options for specifying read consistency guarantees
587
+
optionalWithLookupwith_lookup=15; // Options for specifying how to use the group id to lookup points in another collection
588
+
optionaluint64timeout=16; // If set, overrides global timeout setting for this request. Unit is seconds.
589
+
optionalShardKeySelectorshard_key_selector=17; // Specify in which shards to look for the points, if not specified - look in all shards
590
+
}
591
+
592
+
messageFacetValue {
593
+
oneofvariant {
594
+
stringstring_value=1; // String value from the facet
595
+
}
596
+
}
597
+
598
+
messageFacetValueHit {
599
+
FacetValuevalue=1; // Value from the facet
600
+
uint64count=2; // Number of points with this value
601
+
}
602
+
557
603
messagePointsUpdateOperation {
558
604
messagePointStructList {
559
605
repeatedPointStructpoints=1;
@@ -667,7 +713,7 @@ message GroupId {
667
713
668
714
messagePointGroup {
669
715
GroupIdid=1; // Group id
670
-
repeatedScoredPointhits=2; // Points in the group
716
+
repeatedScoredPointhits=2; // Points in the group
671
717
RetrievedPointlookup=3; // Point(s) from the lookup collection that matches the group id
672
718
}
673
719
@@ -690,6 +736,11 @@ message QueryBatchResponse {
690
736
doubletime=2; // Time spent to process
691
737
}
692
738
739
+
messageQueryGroupsResponse {
740
+
GroupsResultresult=1;
741
+
doubletime=2; // Time spent to process
742
+
}
743
+
693
744
messageBatchResult {
694
745
repeatedScoredPointresult=1;
695
746
}
@@ -771,12 +822,12 @@ message Filter {
771
822
repeatedConditionshould=1; // At least one of those conditions should match
772
823
repeatedConditionmust=2; // All conditions must match
773
824
repeatedConditionmust_not=3; // All conditions must NOT match
774
-
optionalMinShouldmin_should=4; // At least minimum amount of given conditions should match
825
+
optionalMinShouldmin_should=4; // At least minimum amount of given conditions should match
Copy file name to clipboardExpand all lines: packages/js-client-grpc/proto/points_service.proto
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -117,4 +117,8 @@ service Points {
117
117
Universally query points in a batch fashion. This endpoint covers all capabilities of search, recommend, discover, filters. But also enables hybrid and multi-stage queries.
Universally query points in a group fashion. This endpoint covers all capabilities of search, recommend, discover, filters. But also enables hybrid and multi-stage queries.
0 commit comments