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/core/src/main/java/org/elasticsearch/xpack/core/inference/results/SparseEmbeddingResults.java
+2
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,8 @@ public String toString() {
175
175
176
176
@Override
177
177
publicEmbeddingmerge(Embeddingembedding) {
178
+
// This code assumes that the tokens are sorted by weight in descending order.
179
+
// If that's not the case, the resulting merged embedding will be incorrect.
0 commit comments