Skip to content

Commit

Permalink
fix: pass offset parameter for hybrid search to server (#2052)
Browse files Browse the repository at this point in the history
issue: #2050
pr: #2051

Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored Apr 24, 2024
1 parent b1fcb5d commit 66af344
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pymilvus/client/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ def hybrid_search_request_with_ranker(
use_default_consistency = ts_utils.construct_guarantee_ts(collection_name, kwargs)
rerank_param["limit"] = limit
rerank_param["round_decimal"] = round_decimal
rerank_param["offset"] = kwargs.get("offset", 0)

request = milvus_types.HybridSearchRequest(
collection_name=collection_name,
Expand Down

0 comments on commit 66af344

Please sign in to comment.