Skip to content

test: cover reranker basics#1716

Merged
CaralHsi merged 1 commit into
MemTensor:v2.0.16from
snoopuppy582:test/reranker
May 14, 2026
Merged

test: cover reranker basics#1716
CaralHsi merged 1 commit into
MemTensor:v2.0.16from
snoopuppy582:test/reranker

Conversation

@snoopuppy582
Copy link
Copy Markdown

Fixes #1697

Summary

  • Added a dedicated tests/reranker package.
  • Covered reranker base interfaces, factories, noop and cosine-local behavior.
  • Added deterministic strategy tests for dialogue tracking, single-turn reconstruction, out-memory aggregation, background concatenation, and document-source concatenation.

Tests

  • uv run --python 3.12 --extra mem-reader --with pytest pytest tests/reranker -q
  • uv run --python 3.12 --extra mem-reader --with ruff ruff check tests/reranker
  • git diff --check

Notes

  • Kept the tests deterministic and local-only; HTTP reranker calls are not made.
  • The contributing guide mentions a dev base branch, but this repository currently exposes main as the active/default base branch.

@CaralHsi CaralHsi changed the base branch from main to v2.0.16 May 13, 2026 11:33
@CaralHsi
Copy link
Copy Markdown
Collaborator

Nice work! Thanks for your contribution!

@CaralHsi CaralHsi merged commit f30ff7a into MemTensor:v2.0.16 May 14, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for reranker strategies

2 participants