From 31dde3ccf73612f8a7946fe39a70bd0280c2c930 Mon Sep 17 00:00:00 2001 From: gouyt13clear Date: Sat, 14 Nov 2026 14:30:17 +0800 Subject: [PATCH] chore(release): prepare v0.8.5 Bump the version to 0.8.5 in pyproject.toml and CMakeLists.txt, and update the install pins, clone commands and version text in the README, home page, installation, quick start and C++ integration pages. Turn docs/docs/releases/0.8.5.md into the release page: drop "(unreleased)" from the title and the navigation, add the Upgrading section, and correct three statements (search options become keyword-only in 0.9, not now; set_centroids used every CPU for every routing type before #231; the stubs cannot mark the deprecations that depend on a value or the two old statistics names). The Python samples need 0.8.5 since #235 and #236, so their README asks for it. README news gains v0.8.5 and keeps the three most recent entries. --- CMakeLists.txt | 2 +- README.md | 8 ++++---- docs/docs/cpp_integration.md | 4 ++-- docs/docs/index.md | 4 ++-- docs/docs/installation.md | 8 ++++---- docs/docs/quick_start.md | 4 ++-- docs/docs/releases/0.8.5.md | 36 ++++++++++++++++++++++++++++-------- docs/mkdocs.yml | 2 +- pyproject.toml | 2 +- sample/python/README.md | 2 +- 10 files changed, 46 insertions(+), 26 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 98e864bc..eb24ddd3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.20) -project(RaBitQLib VERSION 0.8.4 LANGUAGES CXX) +project(RaBitQLib VERSION 0.8.5 LANGUAGES CXX) include(CMakePackageConfigHelpers) include(GNUInstallDirs) diff --git a/README.md b/README.md index 4a3c364e..5dffb2e7 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,14 @@ approximate nearest-neighbor search. See the [research papers](https://vectordb- ## News +- **v0.8.5:** accepts the names 0.9 will use (`capacity`, `routing`, `ef_search`, + k-means `nbits`) and deprecates the 0.8 spellings they replace + ([notes](https://vectordb-ntu.github.io/RaBitQ-Library/releases/0.8.5/)). - **v0.8.4:** input validation reads each batch once instead of twice ([notes](https://vectordb-ntu.github.io/RaBitQ-Library/releases/0.8.4/)). - **v0.8.3:** provisional `rabitqlib.quant` module: rotate, quantize, pack and score RaBitQ codes stored outside an index ([notes](https://vectordb-ntu.github.io/RaBitQ-Library/releases/0.8.3/)). -- **v0.8.2:** three lines to an index: the first `add` trains, `nbits` defaults to 7 - and search settings are optional; faster IVF-RaBitQ `add` - ([notes](https://vectordb-ntu.github.io/RaBitQ-Library/releases/0.8.2/)). Earlier versions: [all releases](https://github.com/VectorDB-NTU/RaBitQ-Library/releases). @@ -62,7 +62,7 @@ settings, and limitations. ### Python ```bash -python -m pip install --upgrade "rabitqlib>=0.8.4" +python -m pip install --upgrade "rabitqlib>=0.8.5" ``` Wheels support CPython 3.11–3.14 on Linux x86-64/ARM64, Windows x86-64, diff --git a/docs/docs/cpp_integration.md b/docs/docs/cpp_integration.md index 2961e043..686a490d 100644 --- a/docs/docs/cpp_integration.md +++ b/docs/docs/cpp_integration.md @@ -58,12 +58,12 @@ The core example is built as the `core_example` CMake target. For the GIST bench The [core quantization v1 API](rabitq/core_api.md) has a C++ source-compatibility contract. Other C++ APIs may evolve, and no cross-version C++ binary ABI is promised. -Pin the `v0.8.4` release and include RaBitQ-Library as a Git submodule: +Pin the `v0.8.5` release and include RaBitQ-Library as a Git submodule: ```bash git submodule add https://github.com/VectorDB-NTU/RaBitQ-Library.git third_party/rabitqlib git submodule update --init --recursive -git -C third_party/rabitqlib checkout v0.8.4 +git -C third_party/rabitqlib checkout v0.8.5 git add third_party/rabitqlib ``` diff --git a/docs/docs/index.md b/docs/docs/index.md index 160395c8..71a74a18 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -26,7 +26,7 @@ estimation into your own C++ search engine.

```bash -python -m pip install "rabitqlib>=0.8.4" +python -m pip install "rabitqlib>=0.8.5" ``` [Installation and supported platforms](installation.md) · @@ -112,5 +112,5 @@ on your own dataset when choosing an index. ## Explore further - [Algorithm overview](rabitq/rabitq.md) for the rotation, encoding, and scoring workflow. -- [RaBitQ Library 0.8.4 release notes](releases/0.8.4.md) for the latest changes and upgrade guidance. +- [RaBitQ Library 0.8.5 release notes](releases/0.8.5.md) for the latest changes and upgrade guidance. - [Papers and citations](papers.md) for the original RaBitQ method, its multi-bit extension, and SymphonyQG. diff --git a/docs/docs/installation.md b/docs/docs/installation.md index 5d5c3627..d907f92f 100644 --- a/docs/docs/installation.md +++ b/docs/docs/installation.md @@ -1,6 +1,6 @@ # Installation -Platform requirements and source installation for RaBitQ Library **0.8.4**. +Platform requirements and source installation for RaBitQ Library **0.8.5**. For the first Python example, see [Quick Start](quick_start.md). ## Requirements @@ -40,7 +40,7 @@ build can use scalar kernels without the FastScan CPU baseline. ## Python wheels ```bash -python -m pip install "rabitqlib>=0.8.4" +python -m pip install "rabitqlib>=0.8.5" ``` For changes from 0.6.0, see the [0.7.0 upgrade notes](releases/0.7.0.md). @@ -61,11 +61,11 @@ importing those classes. Array shapes and parameter ranges are still checked at ## Get the source -For Python source builds or C++ use, obtain the 0.8.4 checkout once. With Git +For Python source builds or C++ use, obtain the 0.8.5 checkout once. With Git installed, run: ```bash -git clone --branch v0.8.4 --depth 1 https://github.com/VectorDB-NTU/RaBitQ-Library.git +git clone --branch v0.8.5 --depth 1 https://github.com/VectorDB-NTU/RaBitQ-Library.git cd RaBitQ-Library ``` diff --git a/docs/docs/quick_start.md b/docs/docs/quick_start.md index e7d344db..c4ea730c 100644 --- a/docs/docs/quick_start.md +++ b/docs/docs/quick_start.md @@ -1,14 +1,14 @@ # Quick start Build, search, save and reload a small IVF-RaBitQ index with Python. This guide describes -**0.8.4** and uses synthetic data, so no dataset download is required. Coming from 0.7? +**0.8.5** and uses synthetic data, so no dataset download is required. Coming from 0.7? See the [migration guide](python_migration.md). For C++, go directly to [C++ integration](cpp_integration.md). ## Install ```bash -python -m pip install "rabitqlib>=0.8.4" +python -m pip install "rabitqlib>=0.8.5" ``` Wheels support CPython 3.11–3.14 on Linux x86-64/ARM64, Windows x86-64 and diff --git a/docs/docs/releases/0.8.5.md b/docs/docs/releases/0.8.5.md index fddd31f0..78318d34 100644 --- a/docs/docs/releases/0.8.5.md +++ b/docs/docs/releases/0.8.5.md @@ -1,8 +1,8 @@ -# RaBitQ Library 0.8.5 (unreleased) +# RaBitQ Library 0.8.5 -These notes collect what is on `main` for the next 0.8 release. It adds the names that -0.9 will use and deprecates the 0.8 spellings they replace. Every 0.8 call keeps -working, with the same results; index files are unchanged. +This release prepares for 0.9: it adds the names that 0.9 will use and deprecates +the 0.8 spellings they replace. Every 0.8 call keeps working, with the same results; +index files and C++ are unchanged. ## Python: names that change in 0.9 @@ -17,8 +17,8 @@ site. The [migration guide](../python_migration.md#from-08-to-09) lists each cha - `IvfIndex(routing=...)` and `index.routing` replace `initializer`. - `HnswIndex.search` and `SymqgIndex.search` take `ef_search=` instead of `ef=`. Passing the breadth by position is unaffected. -- The `search` options after the breadth (`high_accuracy`, `num_threads`) are - keyword-only; passing them by position is deprecated. +- Passing the `search` options after the breadth (`high_accuracy`, `num_threads`) by + position is deprecated; 0.9 makes them keyword-only. - `nprobe=0` and `ef_search=0` for the default are deprecated; pass `None` or omit the argument. `num_threads=0` keeps meaning every available CPU. - `HnswIndex` seeds above `2**32 - 1` are deprecated. @@ -35,10 +35,18 @@ The k-means classes take the names of the index parameters (#233): when imported or read from the package. The class now reports its name as `KMeansIterationStats`. +The type stubs mark the renamed 0.8 forms as deprecated, so mypy and Pyright can +report them (mypy with `--enable-error-code deprecated`, Pyright with +`reportDeprecated`). Three forms warn only at run time: `nprobe=0` or `ef_search=0`, +an `HnswIndex` seed above `2**32 - 1`, and the two old names of +`KMeansIterationStats`. + ## Python: other changes -- `IvfIndex.set_centroids` takes `num_threads` (#231). Its default follows - `OMP_NUM_THREADS`; before, building HNSW centroid routing always used every CPU. +- `IvfIndex.set_centroids` takes `num_threads` (#231). Without it, `set_centroids` now + follows `OMP_NUM_THREADS`, as `train` and `add` do; before, it always used every + CPU. Only the HNSW routing graph varies with the thread count: build it with one + thread and a fixed `seed` for a reproducible graph. ## Coming in 0.9 without a warning @@ -49,3 +57,15 @@ The k-means classes take the names of the index parameters (#233): and `initializer=`. - `cp.final_assignment` will read back as `'approximate'` or `'exact'` instead of a `FinalAssignmentMode` member. + +## Upgrading + +From 0.8.4, index file formats, the stable core API v1 and C++ are unchanged, and every +0.8 Python call keeps its result. Code that uses a deprecated spelling now raises a +`DeprecationWarning`; move to the new names with the +[migration guide](../python_migration.md#from-08-to-09) before 0.9 removes the old ones. +Rebuild C++ consumers with matching headers and libraries; no cross-version C++ binary +ABI is promised. + +When upgrading from 0.7, follow the [0.8.0 release notes](0.8.0.md) and the +[migration guide](../python_migration.md). diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 38799f7a..31252c3e 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -15,7 +15,7 @@ nav: # Group by minor version: nested groups stay collapsed except the current page's. - Release notes: - "0.8": - - "0.8.5 (unreleased)": releases/0.8.5.md + - "0.8.5": releases/0.8.5.md - "0.8.4": releases/0.8.4.md - "0.8.3": releases/0.8.3.md - "0.8.2": releases/0.8.2.md diff --git a/pyproject.toml b/pyproject.toml index 5ea7ac0b..795886a0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build" [project] name = "rabitqlib" -version = "0.8.4" +version = "0.8.5" description = "Official RaBitQ library for vector quantization and approximate nearest-neighbor search" readme = "README.md" requires-python = ">=3.11" diff --git a/sample/python/README.md b/sample/python/README.md index 8806618b..20513d56 100644 --- a/sample/python/README.md +++ b/sample/python/README.md @@ -1,7 +1,7 @@ # Python examples Run these commands from the repository root in your project Python environment -with `rabitqlib>=0.8.1` and NumPy installed. When working from source, +with `rabitqlib>=0.8.5` and NumPy installed. When working from source, [install the library from the same checkout](../../.github/CONTRIBUTING.md#python-changes) so the examples and native extension use matching APIs. Clustering and indexing both use RaBitQ Library; FAISS is needed only for `compare_with_faiss.py`.