[codex] Add optional Rust retrieval backend and release path#19
Draft
brodieacc wants to merge 4 commits into
Draft
[codex] Add optional Rust retrieval backend and release path#19brodieacc wants to merge 4 commits into
brodieacc wants to merge 4 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
search_backend="rust"support forItemStoreandAssocStoreon the retrieval modes that benchmarked well_nativepath at runtimesetup.py/MANIFEST.incibuildwheel, including a real manylinux buildWhy
The prototype showed a clear win for discrete and sparse retrieval kernels. This PR turns that into a shippable, opt-in backend with an actual distribution path, while keeping NumPy as the default and fallback behavior.
Validation
uv run --extra dev pytest --no-covuv run --extra dev mypy holovecuv run --extra dev ruff check holovec tests benchmarks setup.py scriptsCIBW_PLATFORM=linux uvx cibuildwheel --output-dir wheelhouseuvx twine check wheelhouse/*HOLOVEC_BUILD_RUST=1 uv build --wheelHOLOVEC_SKIP_RUST_BUILD=1 uv build --sdistpython scripts/release_smoke_rust_backend.pyStack
This PR is stacked on
codex/rust-retrieval-prototype.