@opengeni/jev 0.2.0 → 0.2.1-canary.36927100590001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2039,8 +2039,6 @@ function priorityOrder(passages, o) {
2039
2039
  for (const x of byCov.filter((y) => (y.cov[j] ?? 0) >= p.subFloor).slice(0, p.subFallback))
2040
2040
  add(x);
2041
2041
  });
2042
- for (const x of [...passages].filter((y) => (y.ct ?? 0) >= o.cfg.change.threshold).sort((a, b) => (b.ct ?? 0) - (a.ct ?? 0)).slice(0, o.cfg.change.maxChosen))
2043
- add(x);
2044
2042
  for (const x of diverseOrder(
2045
2043
  byRel.filter((y) => irel(y) >= o.T2 && !out.includes(y)),
2046
2044
  eff,
@@ -2048,6 +2046,8 @@ function priorityOrder(passages, o) {
2048
2046
  new Map(taken)
2049
2047
  ))
2050
2048
  add(x);
2049
+ for (const x of [...passages].filter((y) => (y.ct ?? 0) >= o.cfg.change.threshold).sort((a, b) => (b.ct ?? 0) - (a.ct ?? 0)).slice(0, o.cfg.change.maxChosen))
2050
+ add(x);
2051
2051
  for (const x of byRel) {
2052
2052
  if (out.length >= p.minPassages) break;
2053
2053
  if (irel(x) >= p.minRelevance) add(x);