File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 10
10
DEFAULT_RESOURCE_GROUP = "__default_resource_group"
11
11
REDUCE_STOP_FOR_BEST = "reduce_stop_for_best"
12
12
GROUP_BY_FIELD = "group_by_field"
13
+ GROUP_SIZE = "group_size"
13
14
ITERATOR_FIELD = "iterator"
14
15
15
16
RANKER_TYPE_RRF = "rrf"
Original file line number Diff line number Diff line change 15
15
from .constants import (
16
16
DEFAULT_CONSISTENCY_LEVEL ,
17
17
GROUP_BY_FIELD ,
18
+ GROUP_SIZE ,
18
19
ITERATOR_FIELD ,
19
20
REDUCE_STOP_FOR_BEST ,
20
21
)
@@ -667,6 +668,10 @@ def search_requests_with_expr(
667
668
if group_by_field is not None :
668
669
search_params [GROUP_BY_FIELD ] = group_by_field
669
670
671
+ group_size = kwargs .get (GROUP_SIZE )
672
+ if group_size is not None :
673
+ search_params [GROUP_SIZE ] = group_size
674
+
670
675
if param .get ("metric_type" ) is not None :
671
676
search_params ["metric_type" ] = param ["metric_type" ]
672
677
You can’t perform that action at this time.
0 commit comments