@modusensus/dsh-mneme 0.4.7 → 0.5.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.
@@ -25,9 +25,13 @@ const reranker = {
25
25
 
26
26
  // Real store + service, wired with the mock embedder and a vector index over
27
27
  // the same store (the service's vector path prefers vectorIndex when set).
28
- function setup({ withEmbedder = true } = {}) {
28
+ // The v0.5.0 recall fusion extras (BM25 third path, search-time semantic
29
+ // dedup) are disabled per-test when the assertion targets the legacy blend
30
+ // mechanics — the toy embedder pins every vector hit to the same [1,0,0],
31
+ // which semantic dedup would legitimately collapse.
32
+ function setup({ withEmbedder = true, config = {} } = {}) {
29
33
  const store = createStore(":memory:");
30
- const service = createService({ store, mirror: null, config: {} });
34
+ const service = createService({ store, mirror: null, config });
31
35
  const vectorIndex = createVectorIndex({ store });
32
36
  if (withEmbedder) {
33
37
  service.setEmbedder(embedder);