Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
*/
@SuperBuilder
public class RRFRanker extends CreateCollectionReq.Function {
// This constructor is to compatible with the old client code like:
// new RRFRanker(10)
// Now it is deprecated, user should create a RRFRanker by builder style:
// RRFRanker.builder().k(10).build()
@Deprecated
public RRFRanker(int k) {
super(CreateCollectionReq.Function.builder());
this.k = k;
}

@Builder.Default
private int k = 60;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
*/
@SuperBuilder
public class WeightedRanker extends CreateCollectionReq.Function {
// This constructor is to compatible with the old client code like:
// new WeightedRanker(weights)
// Now it is deprecated, user should create a WeightedRanker by builder style:
// WeightedRanker.builder().weights(weights).build()
@Deprecated
public WeightedRanker(List<Float> weights) {
super(CreateCollectionReq.Function.builder());
this.weights = weights;
}

@Builder.Default
private List<Float> weights = new ArrayList<>();

Expand Down
Loading