Skip to content

Commit

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

Signed-off-by: zhenshan.cao <[email protected]>
  • Loading branch information
czs007 authored Apr 24, 2024
1 parent 1a741d1 commit 751f482
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 @@ -713,6 +713,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 751f482

Please sign in to comment.