Skip to content

Commit

Permalink
fix: Rectify Weighted Rerank params (#683)
Browse files Browse the repository at this point in the history
Use correct rerankType in WeightedRerank params

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia committed Mar 20, 2024
1 parent 00e74ab commit ffd629b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/reranker.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (r *weightedReranker) GetParams() []*commonpb.KeyValuePair {
bs, _ := json.Marshal(r)

return []*commonpb.KeyValuePair{
{Key: rerankType, Value: rrfRerankType},
{Key: rerankType, Value: weightedRerankType},
{Key: rerankParams, Value: string(bs)},
}
}
Expand Down

0 comments on commit ffd629b

Please sign in to comment.