@opengeni/jev 0.2.0-canary.36844267522001 → 0.2.0

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,6 +2039,8 @@ 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);
2042
2044
  for (const x of diverseOrder(
2043
2045
  byRel.filter((y) => irel(y) >= o.T2 && !out.includes(y)),
2044
2046
  eff,
@@ -2046,8 +2048,6 @@ function priorityOrder(passages, o) {
2046
2048
  new Map(taken)
2047
2049
  ))
2048
2050
  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);