You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRankBuilder.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -52,15 +52,15 @@ public class TextSimilarityRankBuilder extends RankBuilder {
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/rank/textsimilarity/TextSimilarityRerankingRankFeaturePhaseRankShardContext.java
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,10 @@ public class TextSimilarityRerankingRankFeaturePhaseRankShardContext extends Rer
34
34
35
35
privatefinalSnippetRankInputsnippetRankInput;
36
36
37
+
// Rough approximation of token size vs. characters in highlight fragments.
38
+
// TODO highlighter should be able to set fragment size by token not length
0 commit comments