Skip to content
Open
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 @@ -4,7 +4,6 @@

import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

/**
* Default no-op Cross-Encoder reranker that preserves prior order by score.
Expand All @@ -16,6 +15,6 @@ public List<Long> rerank(String query, List<Candidate> candidates) {
return candidates.stream()
.sorted(Comparator.comparingDouble(Candidate::priorScore).reversed())
.map(Candidate::id)
.collect(Collectors.toList());
.toList();
}
}
Loading