From 66af34400fa2ba7450170db4283e4ca342495e22 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Wed, 24 Apr 2024 15:33:20 +0800 Subject: [PATCH] fix: pass offset parameter for hybrid search to server (#2052) issue: https://github.com/milvus-io/pymilvus/issues/2050 pr: https://github.com/milvus-io/pymilvus/pull/2051 Signed-off-by: zhenshan.cao --- pymilvus/client/prepare.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymilvus/client/prepare.py b/pymilvus/client/prepare.py index 5ec58718a..b0f3ea19f 100644 --- a/pymilvus/client/prepare.py +++ b/pymilvus/client/prepare.py @@ -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,