Skip to content

Remove unused test-only retrieval helpers#15

Open
vaishnavidesai09 wants to merge 1 commit into
urrme:mainfrom
vaishnavidesai09:remove-test-only-retrieval-helpers
Open

Remove unused test-only retrieval helpers#15
vaishnavidesai09 wants to merge 1 commit into
urrme:mainfrom
vaishnavidesai09:remove-test-only-retrieval-helpers

Conversation

@vaishnavidesai09

Copy link
Copy Markdown

Summary

Removes DenseRetriever.retrieve_dense_only() and HybridRetriever.retrieve_with_threshold() along with their unit tests. Both were only exercised by unit tests and never called from production code. Per maintainer decision in #12, removing rather than promoting to documented public API.

Testing

  • make lint
  • make type-check
  • make test
  • make eval-sample (retrieval scoring/ranking logic unchanged — only unused, untested-by-production methods removed)

Ran locally: lint clean, mypy clean (48 files), full test suite 307 passed. Confirmed via grep that no other code references the removed methods.

Checklist

  • Code follows the existing style (typed, concise)
  • Tests added or updated for the change (removed the two now-obsolete test cases)
  • Benchmark numbers / paper tables regenerated if results changed — N/A, no retrieval behavior changed
  • Docs updated if behavior or interfaces changed — N/A, methods weren't documented anywhere

Removes DenseRetriever.retrieve_dense_only() and retrieve_with_threshold(),
which were only exercised by unit tests and never used in production code.
Per maintainer decision in urrme#12, removing rather than documenting as public API.
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.

1 participant