Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/cpp_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ estimation into your own <span class="nowrap">C++</span> search engine.</p>
</div>

```bash
python -m pip install "rabitqlib>=0.8.4"
python -m pip install "rabitqlib>=0.8.5"
```

[Installation and supported platforms](installation.md) ·
Expand Down Expand Up @@ -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.
8 changes: 4 additions & 4 deletions docs/docs/installation.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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).
Expand All @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions docs/docs/quick_start.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
36 changes: 28 additions & 8 deletions docs/docs/releases/0.8.5.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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.
Expand All @@ -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

Expand All @@ -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).
2 changes: 1 addition & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion sample/python/README.md
Original file line number Diff line number Diff line change
@@ -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`.
Expand Down
Loading