rapidbm25 0.1.0__tar.gz

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.
Files changed (41) hide show
  1. rapidbm25-0.1.0/.github/workflows/wheels.yml +181 -0
  2. rapidbm25-0.1.0/.gitignore +15 -0
  3. rapidbm25-0.1.0/CHANGELOG.md +26 -0
  4. rapidbm25-0.1.0/CONTRIBUTING.md +22 -0
  5. rapidbm25-0.1.0/Cargo.lock +229 -0
  6. rapidbm25-0.1.0/Cargo.toml +26 -0
  7. rapidbm25-0.1.0/LICENSE +202 -0
  8. rapidbm25-0.1.0/NOTICE +20 -0
  9. rapidbm25-0.1.0/PKG-INFO +165 -0
  10. rapidbm25-0.1.0/README.md +137 -0
  11. rapidbm25-0.1.0/SECURITY.md +21 -0
  12. rapidbm25-0.1.0/bench/bench_interleaved.py +77 -0
  13. rapidbm25-0.1.0/bench/bench_once.py +96 -0
  14. rapidbm25-0.1.0/bench/gen_workload.py +98 -0
  15. rapidbm25-0.1.0/contract/adapter.py +80 -0
  16. rapidbm25-0.1.0/contract/bm25-47aa3dd.contract.json +19793 -0
  17. rapidbm25-0.1.0/contract/bm25.contract.json +19785 -0
  18. rapidbm25-0.1.0/llms.txt +27 -0
  19. rapidbm25-0.1.0/mcp/README.md +24 -0
  20. rapidbm25-0.1.0/mcpb/.mcpbignore +5 -0
  21. rapidbm25-0.1.0/mcpb/README.md +14 -0
  22. rapidbm25-0.1.0/mcpb/manifest.json +44 -0
  23. rapidbm25-0.1.0/mcpb/pyproject.toml +6 -0
  24. rapidbm25-0.1.0/mcpb/src/server.py +5 -0
  25. rapidbm25-0.1.0/pyproject.toml +68 -0
  26. rapidbm25-0.1.0/python/rapidbm25/__init__.py +116 -0
  27. rapidbm25-0.1.0/python/rapidbm25/mcp_server.py +134 -0
  28. rapidbm25-0.1.0/python/rapidbm25/textindex.py +98 -0
  29. rapidbm25-0.1.0/scripts/build_auditable.sh +26 -0
  30. rapidbm25-0.1.0/scripts/check_auditable.py +15 -0
  31. rapidbm25-0.1.0/server.json +33 -0
  32. rapidbm25-0.1.0/skill/rapidbm25-search/SKILL.md +28 -0
  33. rapidbm25-0.1.0/skill/rapidbm25-search/scripts/bm25_search.py +39 -0
  34. rapidbm25-0.1.0/src/lib.rs +477 -0
  35. rapidbm25-0.1.0/tests/ci_check.py +59 -0
  36. rapidbm25-0.1.0/tests/control_ulp_off.py +7 -0
  37. rapidbm25-0.1.0/tests/fuzz_equivalence.py +187 -0
  38. rapidbm25-0.1.0/tests/replay_contract.py +69 -0
  39. rapidbm25-0.1.0/tests/test_compat.py +63 -0
  40. rapidbm25-0.1.0/tests/test_docs.py +65 -0
  41. rapidbm25-0.1.0/tests/test_mcp_stdio.py +38 -0
@@ -0,0 +1,181 @@
1
+ name: wheels
2
+
3
+ # Builds and tests rapidbm25 wheels and the sdist on every platform; uploads them
4
+ # as workflow artifacts. Nothing is published on push or pull_request.
5
+ #
6
+ # Release (manual): Actions > wheels > Run workflow on main with publish=true.
7
+ # That uploads to PyPI with trusted publishing (OIDC, no API token) through the
8
+ # `pypi` environment, then, if mcp_registry=true, publishes server.json to the
9
+ # official MCP Registry with GitHub OIDC (also no token).
10
+
11
+ on:
12
+ push:
13
+ branches: [main]
14
+ pull_request:
15
+ workflow_dispatch:
16
+ inputs:
17
+ publish:
18
+ description: "Upload this build to PyPI (trusted publishing)"
19
+ type: boolean
20
+ default: false
21
+ mcp_registry:
22
+ description: "After the PyPI upload, publish server.json to the MCP Registry"
23
+ type: boolean
24
+ default: false
25
+
26
+ permissions:
27
+ contents: read
28
+
29
+ concurrency:
30
+ group: wheels-${{ github.ref }}
31
+ cancel-in-progress: ${{ github.event_name != 'workflow_dispatch' }}
32
+
33
+ env:
34
+ # cargo-auditable reads this when it runs as the rustc wrapper under maturin
35
+ CARGO_AUDITABLE_ORIG_ARGS: '{"offline":false,"locked":false,"frozen":false,"config":[]}'
36
+
37
+ jobs:
38
+ wheels:
39
+ name: ${{ matrix.name }}
40
+ runs-on: ${{ matrix.os }}
41
+ timeout-minutes: 90
42
+ strategy:
43
+ fail-fast: false
44
+ matrix:
45
+ include:
46
+ - { name: linux-x86_64-manylinux, os: ubuntu-24.04, skip: "*t-* *-musllinux_*" }
47
+ - { name: linux-x86_64-musllinux, os: ubuntu-24.04, skip: "*t-* *-manylinux_*" }
48
+ - { name: linux-aarch64-manylinux, os: ubuntu-24.04-arm, skip: "*t-* *-musllinux_*" }
49
+ - { name: linux-aarch64-musllinux, os: ubuntu-24.04-arm, skip: "*t-* *-manylinux_*" }
50
+ - { name: macos-x86_64, os: macos-15-intel, skip: "*t-*" }
51
+ - { name: macos-arm64, os: macos-15, skip: "*t-*" }
52
+ - { name: windows-amd64, os: windows-2025, skip: "*t-*" }
53
+ steps:
54
+ - uses: actions/checkout@v7.0.1
55
+
56
+ - name: Rust (macOS / Windows hosts)
57
+ if: runner.os != 'Linux'
58
+ uses: dtolnay/rust-toolchain@stable
59
+ - name: Install cargo-auditable and point rustc at it
60
+ if: runner.os != 'Linux'
61
+ shell: bash
62
+ run: |
63
+ cargo install cargo-auditable --locked
64
+ echo "RUSTC_WORKSPACE_WRAPPER=$(python3 -c 'import shutil;print(shutil.which("cargo-auditable"))' 2>/dev/null || python -c 'import shutil;print(shutil.which("cargo-auditable"))')" >> "$GITHUB_ENV"
65
+
66
+ - name: Build and test wheels
67
+ uses: pypa/cibuildwheel@v4.3.5
68
+ with:
69
+ output-dir: wheelhouse
70
+ env:
71
+ CIBW_SKIP: ${{ matrix.skip }}
72
+ CIBW_ARCHS: native
73
+ CIBW_ARCHS_WINDOWS: AMD64
74
+
75
+ - name: Check cargo-auditable section in every wheel
76
+ shell: bash
77
+ run: python3 scripts/check_auditable.py wheelhouse/*.whl || python scripts/check_auditable.py wheelhouse/*.whl
78
+
79
+ - uses: actions/upload-artifact@v7.0.2
80
+ with:
81
+ name: wheels-${{ matrix.name }}
82
+ path: wheelhouse/*.whl
83
+ if-no-files-found: error
84
+
85
+ sdist:
86
+ name: sdist (build + install from source + test)
87
+ runs-on: ubuntu-24.04
88
+ timeout-minutes: 30
89
+ steps:
90
+ - uses: actions/checkout@v7.0.1
91
+ - uses: actions/setup-python@v7.1.0
92
+ with: { python-version: "3.13" }
93
+ - uses: dtolnay/rust-toolchain@stable
94
+ - name: Build sdist
95
+ run: |
96
+ python -m pip install -q "maturin>=1.7,<2"
97
+ maturin sdist -o dist
98
+ - name: Install from sdist and test
99
+ run: |
100
+ python -m venv /tmp/sd && . /tmp/sd/bin/activate
101
+ pip install -q dist/rapidbm25-*.tar.gz pytest rank-bm25==0.2.2
102
+ cd /tmp && python -m pytest -q -p no:cacheprovider "$GITHUB_WORKSPACE/tests"
103
+ python "$GITHUB_WORKSPACE/tests/ci_check.py" --cases 300
104
+ - uses: actions/upload-artifact@v7.0.2
105
+ with:
106
+ name: sdist
107
+ path: dist/*.tar.gz
108
+ if-no-files-found: error
109
+
110
+ metadata:
111
+ name: metadata (server.json, MCPB manifest)
112
+ runs-on: ubuntu-24.04
113
+ timeout-minutes: 10
114
+ steps:
115
+ - uses: actions/checkout@v7.0.1
116
+ - name: Validate server.json with mcp-publisher
117
+ run: |
118
+ curl -sSfL "https://github.com/modelcontextprotocol/registry/releases/download/v1.8.9/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
119
+ ./mcp-publisher validate server.json
120
+ - uses: actions/setup-node@v7.1.0
121
+ with: { node-version: "22" }
122
+ - name: Validate MCPB manifest
123
+ run: npx -y @anthropic-ai/mcpb validate mcpb/manifest.json
124
+
125
+ summary:
126
+ needs: [wheels, sdist, metadata]
127
+ runs-on: ubuntu-24.04
128
+ steps:
129
+ - uses: actions/download-artifact@v8.0.2
130
+ with: { path: dist, merge-multiple: true }
131
+ - uses: actions/setup-python@v7.1.0
132
+ with: { python-version: "3.13" }
133
+ - name: twine check and list artifacts
134
+ run: |
135
+ python -m pip install -q twine
136
+ twine check --strict dist/*
137
+ { echo "### rapidbm25 artifacts"; echo; echo '| file | bytes |'; echo '|---|---|'
138
+ for f in dist/*; do echo "| $(basename "$f") | $(stat -c %s "$f") |"; done; } >> "$GITHUB_STEP_SUMMARY"
139
+ ls -l dist; echo "count: $(ls dist | wc -l)"
140
+
141
+ publish:
142
+ # Never runs on push or pull_request: manual dispatch on main with publish=true only.
143
+ if: github.event_name == 'workflow_dispatch' && inputs.publish == true && github.ref == 'refs/heads/main'
144
+ needs: [summary]
145
+ runs-on: ubuntu-24.04
146
+ environment:
147
+ name: pypi
148
+ url: https://pypi.org/project/rapidbm25/
149
+ permissions:
150
+ id-token: write # PyPI trusted publishing (OIDC); no API token anywhere
151
+ steps:
152
+ - uses: actions/download-artifact@v8.0.2
153
+ with: { path: dist, merge-multiple: true }
154
+ - uses: pypa/gh-action-pypi-publish@v1.14.3
155
+
156
+ mcp-registry:
157
+ # Runs only after a successful PyPI upload in the same manual dispatch.
158
+ if: github.event_name == 'workflow_dispatch' && inputs.publish == true && inputs.mcp_registry == true && github.ref == 'refs/heads/main'
159
+ needs: [publish]
160
+ runs-on: ubuntu-24.04
161
+ environment:
162
+ name: pypi
163
+ permissions:
164
+ id-token: write # MCP Registry login via GitHub OIDC; no token
165
+ contents: read
166
+ steps:
167
+ - uses: actions/checkout@v7.0.1
168
+ - name: Wait for the PyPI release to be visible
169
+ run: |
170
+ v=$(python3 -c "import json;print(json.load(open('server.json'))['version'])")
171
+ for i in $(seq 1 30); do
172
+ curl -sSf "https://pypi.org/pypi/rapidbm25/$v/json" >/dev/null && exit 0
173
+ sleep 10
174
+ done
175
+ echo "rapidbm25 $v not visible on PyPI" >&2; exit 1
176
+ - name: Publish server.json
177
+ run: |
178
+ curl -sSfL "https://github.com/modelcontextprotocol/registry/releases/download/v1.8.9/mcp-publisher_linux_amd64.tar.gz" | tar xz mcp-publisher
179
+ ./mcp-publisher validate server.json
180
+ ./mcp-publisher login github-oidc
181
+ ./mcp-publisher publish server.json
@@ -0,0 +1,15 @@
1
+ target/
2
+ dist/
3
+ build/
4
+ *.egg-info/
5
+ __pycache__/
6
+ *.py[cod]
7
+ .pytest_cache/
8
+ .venv/
9
+ venv/
10
+ *.so
11
+ *.pyd
12
+ *.dylib
13
+ *.whl
14
+ *.mcpb
15
+ wheelhouse/
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. Versions follow [SemVer](https://semver.org/).
4
+
5
+ ## 0.1.0
6
+
7
+ First release.
8
+
9
+ - `BM25Okapi`, `BM25L`, `BM25Plus` with rank_bm25's constructors, attributes and methods
10
+ (`get_scores`, `get_batch_scores`, `get_top_n`), scoring bit for bit identical to rank_bm25.
11
+ - `compat=` keyword on `BM25L` / `BM25Plus`: `"0.2.2"` (default, the PyPI release) or
12
+ `"47aa3dd"` (rank_bm25 git main), whose BM25L / BM25Plus formulas differ.
13
+ - `top_n(query, n)` and `top_k_of(scores, k)`: Rust partial select, deterministic tie order
14
+ (score descending, then lower doc id).
15
+ - Index built in Rust (about 3.6× faster than rank_bm25); `get_scores` about 1,470× faster on a
16
+ 16,000-chunk code/docs corpus.
17
+ - `rapidbm25-mcp`: stdio MCP server with `bm25_index_texts`, `bm25_index_path`, `bm25_search`,
18
+ `bm25_list_indexes`, `bm25_drop_index`; path indexing limited to `RAPIDBM25_ROOTS`.
19
+ - Agent skill `skill/rapidbm25-search`.
20
+ - Behavior contracts (407 observed vectors per rank_bm25 version) with exact replay.
21
+ - Wheels for CPython 3.9–3.15 on Linux (glibc and musl, x86_64 and aarch64), macOS (x86_64,
22
+ arm64) and Windows (x86_64), built with cargo-auditable.
23
+
24
+ Known differences from rank_bm25: `get_top_n` tie order is deterministic; tokens must be `str`;
25
+ editing `.idf` / `.doc_freqs` after construction has no effect; `tokenizer=` runs in-process;
26
+ objects are not picklable yet.
@@ -0,0 +1,22 @@
1
+ # Contributing
2
+
3
+ Issues and pull requests are welcome.
4
+
5
+ ```bash
6
+ python -m venv .venv && . .venv/bin/activate
7
+ pip install maturin pytest numpy rank-bm25==0.2.2
8
+ maturin develop --release
9
+ pytest -q tests
10
+ python tests/ci_check.py --cases 300 # fuzz vs rank_bm25 0.2.2 + both contract replays
11
+ ```
12
+
13
+ Rules for changes:
14
+
15
+ - Scores must stay bit for bit identical to rank_bm25 (0.2.2 by default, 47aa3dd with
16
+ `compat="47aa3dd"`). Keep IEEE operation order; do not introduce FMA or reassociation.
17
+ - `tests/replay_contract.py` must pass on both `contract/*.contract.json` files. Do not edit the
18
+ recorded vectors to make a change pass; they were observed by running rank_bm25.
19
+ - Do not copy rank_bm25 source into this repository. It is used only as a test oracle.
20
+ - Performance claims need a run of `bench/bench_interleaved.py` with machine details.
21
+
22
+ By contributing you agree that your contributions are licensed under Apache-2.0.
@@ -0,0 +1,229 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
10
+
11
+ [[package]]
12
+ name = "heck"
13
+ version = "0.5.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
16
+
17
+ [[package]]
18
+ name = "libc"
19
+ version = "0.2.191"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
22
+
23
+ [[package]]
24
+ name = "matrixmultiply"
25
+ version = "0.3.11"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
28
+ dependencies = [
29
+ "autocfg",
30
+ "rawpointer",
31
+ ]
32
+
33
+ [[package]]
34
+ name = "ndarray"
35
+ version = "0.17.2"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
38
+ dependencies = [
39
+ "matrixmultiply",
40
+ "num-complex",
41
+ "num-integer",
42
+ "num-traits",
43
+ "portable-atomic",
44
+ "portable-atomic-util",
45
+ "rawpointer",
46
+ ]
47
+
48
+ [[package]]
49
+ name = "num-complex"
50
+ version = "0.4.6"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
53
+ dependencies = [
54
+ "num-traits",
55
+ ]
56
+
57
+ [[package]]
58
+ name = "num-integer"
59
+ version = "0.1.47"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
62
+ dependencies = [
63
+ "num-traits",
64
+ ]
65
+
66
+ [[package]]
67
+ name = "num-traits"
68
+ version = "0.2.19"
69
+ source = "registry+https://github.com/rust-lang/crates.io-index"
70
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
71
+ dependencies = [
72
+ "autocfg",
73
+ ]
74
+
75
+ [[package]]
76
+ name = "numpy"
77
+ version = "0.30.0"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "aa0b9111761885449e894981fa8051dcf69e0bd114aecbd4bcdd830b6be4ed92"
80
+ dependencies = [
81
+ "libc",
82
+ "ndarray",
83
+ "num-complex",
84
+ "num-integer",
85
+ "num-traits",
86
+ "pyo3",
87
+ "pyo3-build-config",
88
+ "rustc-hash",
89
+ ]
90
+
91
+ [[package]]
92
+ name = "once_cell"
93
+ version = "1.21.4"
94
+ source = "registry+https://github.com/rust-lang/crates.io-index"
95
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
96
+
97
+ [[package]]
98
+ name = "portable-atomic"
99
+ version = "1.15.0"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
102
+
103
+ [[package]]
104
+ name = "portable-atomic-util"
105
+ version = "0.2.8"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
108
+ dependencies = [
109
+ "portable-atomic",
110
+ ]
111
+
112
+ [[package]]
113
+ name = "proc-macro2"
114
+ version = "1.0.107"
115
+ source = "registry+https://github.com/rust-lang/crates.io-index"
116
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
117
+ dependencies = [
118
+ "unicode-ident",
119
+ ]
120
+
121
+ [[package]]
122
+ name = "pyo3"
123
+ version = "0.30.1"
124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
125
+ checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
126
+ dependencies = [
127
+ "libc",
128
+ "once_cell",
129
+ "portable-atomic",
130
+ "pyo3-build-config",
131
+ "pyo3-ffi",
132
+ "pyo3-macros",
133
+ ]
134
+
135
+ [[package]]
136
+ name = "pyo3-build-config"
137
+ version = "0.30.1"
138
+ source = "registry+https://github.com/rust-lang/crates.io-index"
139
+ checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
140
+ dependencies = [
141
+ "target-lexicon",
142
+ ]
143
+
144
+ [[package]]
145
+ name = "pyo3-ffi"
146
+ version = "0.30.1"
147
+ source = "registry+https://github.com/rust-lang/crates.io-index"
148
+ checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
149
+ dependencies = [
150
+ "libc",
151
+ "pyo3-build-config",
152
+ ]
153
+
154
+ [[package]]
155
+ name = "pyo3-macros"
156
+ version = "0.30.1"
157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
158
+ checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
159
+ dependencies = [
160
+ "proc-macro2",
161
+ "pyo3-macros-backend",
162
+ "quote",
163
+ "syn",
164
+ ]
165
+
166
+ [[package]]
167
+ name = "pyo3-macros-backend"
168
+ version = "0.30.1"
169
+ source = "registry+https://github.com/rust-lang/crates.io-index"
170
+ checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
171
+ dependencies = [
172
+ "heck",
173
+ "proc-macro2",
174
+ "quote",
175
+ "syn",
176
+ ]
177
+
178
+ [[package]]
179
+ name = "quote"
180
+ version = "1.0.47"
181
+ source = "registry+https://github.com/rust-lang/crates.io-index"
182
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
183
+ dependencies = [
184
+ "proc-macro2",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "rapidbm25"
189
+ version = "0.1.0"
190
+ dependencies = [
191
+ "numpy",
192
+ "pyo3",
193
+ "rustc-hash",
194
+ ]
195
+
196
+ [[package]]
197
+ name = "rawpointer"
198
+ version = "0.2.1"
199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
200
+ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
201
+
202
+ [[package]]
203
+ name = "rustc-hash"
204
+ version = "2.1.3"
205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
206
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
207
+
208
+ [[package]]
209
+ name = "syn"
210
+ version = "3.0.10"
211
+ source = "registry+https://github.com/rust-lang/crates.io-index"
212
+ checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
213
+ dependencies = [
214
+ "proc-macro2",
215
+ "quote",
216
+ "unicode-ident",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "target-lexicon"
221
+ version = "0.13.5"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
224
+
225
+ [[package]]
226
+ name = "unicode-ident"
227
+ version = "1.0.27"
228
+ source = "registry+https://github.com/rust-lang/crates.io-index"
229
+ checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
@@ -0,0 +1,26 @@
1
+ [package]
2
+ name = "rapidbm25"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ rust-version = "1.85"
6
+ description = "Rust-native BM25 (Okapi, L, Plus) with a rank_bm25-compatible Python API"
7
+ license = "Apache-2.0"
8
+ readme = "README.md"
9
+ repository = "https://github.com/Maverick0351a/rapidbm25"
10
+ keywords = ["bm25", "search", "retrieval", "ranking", "rag"]
11
+ categories = ["text-processing", "algorithms"]
12
+ # Ships as a Python package only (PyPI); not published to crates.io.
13
+ publish = false
14
+
15
+ [lib]
16
+ name = "_native"
17
+ crate-type = ["cdylib"]
18
+
19
+ [dependencies]
20
+ pyo3 = { version = "0.30", features = ["extension-module"] }
21
+ numpy = "0.30"
22
+ rustc-hash = "2"
23
+
24
+ [profile.release]
25
+ lto = "fat"
26
+ codegen-units = 1