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
MockEmbedder was a 64-dim keyword-bag helper exposed in the public
API since the prototype era. It was never a real embedder — its
presence muddled the public surface (consumers could accidentally
pick it as a CLI default, fixture configs could opaquely use it
for production), and the 'no mocks unless absolutely necessary'
rule never applied to it cleanly because it lived in src/.
Lifted to tests/common/test_embedder.rs as BagOfWordsEmbedder.
Visible only to integration tests; never to consumers, never to
the CLI, never to the published crate.
BREAKING CHANGES (pre-publication cleanup):
- pub MockEmbedder removed from src/embedding.rs
- CLI --embedder mock flag removed; default is now --embedder fastembed
- EvalSuite no longer accepts embedding_model = "mock" in router.toml
- RouterConfig::default_config now uses "fastembed/AllMiniLML6V2"
Added: EvalSuite::from_dir_with_embedder(path, embedder) for tests
that want to inject a fast deterministic embedder explicitly.
scoring.rs unit test uses a local InlineKwEmbed (not reachable from
tests/common/ in src unit tests) with identical routing semantics.
0 commit comments