fix: gradlew format

This commit is contained in:
SuperSonicVox 2024-06-12 09:40:20 -07:00
parent c018e50733
commit 9579816509
1 changed files with 10 additions and 8 deletions

View File

@ -355,16 +355,18 @@ public class TopDocs {
} }
} }
/** Reciprocal Rank Fusion method. /**
* <p> * Reciprocal Rank Fusion method.
* This method combines different search results into a single ranked list.
* @param topN the top N results to be returned
* @param k a constant determines how much influence documents in individual rankings have on the final
* result. A higher value gives lower rank documents more influence. k should be greater than or equal to 1.
* @param hits a list of TopDocs to apply RRF on
* *
* <p>This method combines different search results into a single ranked list.
*
* @param topN the top N results to be returned
* @param k a constant determines how much influence documents in individual rankings have on the
* final result. A higher value gives lower rank documents more influence. k should be greater
* than or equal to 1.
* @param hits a list of TopDocs to apply RRF on
* @return a TopDocs contains the top N ranked results. * @return a TopDocs contains the top N ranked results.
* */ */
public static TopDocs rrf(int topN, int k, TopDocs[] hits) { public static TopDocs rrf(int topN, int k, TopDocs[] hits) {
Map<Integer, Float> rrfScore = new HashMap<>(); Map<Integer, Float> rrfScore = new HashMap<>();
long minHits = Long.MAX_VALUE; long minHits = Long.MAX_VALUE;