Skip to main content

TACHIOM

TACHIOM is a fast and scalable data structure for late-interaction multi-vector retrieval, written in Rust with Python bindings. It introduces Token-Aware Clustering (TAC), which distributes the coarse-centroid budget proportionally across token types, and a hierarchical Product Quantization scheme for efficient candidate reranking.

Installation

Python

Quick start (prebuilt wheels)

For most users, this is the easiest option:

pip install tachiom

If a compatible wheel exists for your platform, pip will download and install it directly without compilation. If no compatible wheel exists, pip will automatically compile from source.

This installs the core library with its only required dependency (numpy). If you also need the benchmarking / experiment scripts (scripts/run_experiments.py, analysis notebooks), install the optional extras:

pip install tachiom[scripts]

Building from source (maximum performance)

For maximum performance optimized to your CPU, build from source.

Shared prerequisites — both approaches below require Rust nightly:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup install nightly
rustup default nightly

Approach 1 — compile from PyPI source:

RUSTFLAGS="-C target-cpu=native" pip install --no-binary :all: tachiom

Approach 2 — build from GitHub (development/editable mode):

git clone https://github.com/TusKANNy/tachiom.git
cd tachiom

Create a virtual environment (recommended):

python3 -m venv ./venv
source ./venv/bin/activate  # On Windows: venv\Scripts\activate

Or with conda:

conda create -n tachiom python=3.11
conda activate tachiom

Install maturin and build:

pip install maturin
RUSTFLAGS="-C target-cpu=native" maturin develop --release

Changes to Python code take effect immediately without reinstalling — ideal for development.

Rust

The crate has two feature flags:

Feature What it enables
python PyO3 bindings — used automatically by maturin
cli CLI binaries in src/bin/ (tachiom_build, tachiom_search, bench_tac, …)

Neither feature is active by default, so a plain cargo build --release compiles only the library crate. To build the CLI binaries, enable the cli feature:

RUSTFLAGS="-C target-cpu=native" cargo build --release --features cli

The resulting binaries are placed in target/release/.

Details on how to use Tachiom's Rust CLI can be found in docs/RustUsage.md.

Quick start

import tachiom

# ── Build ─────────────────────────────────────────────────────────────────────
# Inputs (all .npy files):
#   vectors.npy    — [N, dim]   f16  one row per token
#   token_ids.npy  — [N]        i64  vocabulary id of each token
#   doclens.npy    — [n_docs]   i32  number of tokens per document

index = tachiom.Tachiom.build(
    "vectors.npy",
    "token_ids.npy",
    "doclens.npy",
)
index.save("my_index.bin")

# ── Load & search ─────────────────────────────────────────────────────────────
index = tachiom.Tachiom.load("my_index.bin")

# queries: [n_queries, n_tokens, dim] f32 array
scores, doc_ids = index.batch_search(queries, k=10, num_threads=0)
# scores, doc_ids: [n_queries, k]

See docs/PythonUsage.md for the full API, all build and search parameters, and the two-step TAC workflow.

Datasets

Pre-processed datasets and pre-built indexes are available on HuggingFace, ready to use with the experiment configs in experiments/sigir2026/.

Dataset HuggingFace Index
MS MARCO-v1 (ColBERT v2) tuskanny/ms_marco_colbertv2 tachiom_msmarco_4M_normalized
LoTTE Pooled (ColBERT v2) tuskanny/lotte_pooled_colbertv2 tachiom_lotte_2M_normalized

Each dataset contains documents.npy, token_ids.npy, doclens.npy, queries.npy, doc_ids.npy, queries_ids.npy, a qrels .tsv file, and a pre-built Tachiom index. Download with:

pip install huggingface_hub
huggingface-cli download tuskanny/ms_marco_colbertv2 --repo-type dataset --local-dir ./ms_marco
huggingface-cli download tuskanny/lotte_pooled_colbertv2 --repo-type dataset --local-dir ./lotte

Resources

Document Description
Python API Tachiom and Tac classes, all parameters, search guide
Rust CLI bench_tac, tachiom_build, tachiom_search binaries, experiment runner, SIGIR 2026 reproduction
Jupyter notebooks End-to-end demo on TAC and TACHIOM
Experiments TOML configs used for the SIGIR 2026 benchmarks

License

This software is released under the MIT License (see LICENSE).

Citation

If you use this software in your research, please cite our SIGIR 2026 paper:

@inproceedings{10.1145/3805712.3809927,
author = {Martinico, Silvio and Nardini, Franco Maria and Rulli, Cosimo and Venturini, Rossano},
title = {Efficient Multivector Retrieval with Token-Aware Clustering and Hierarchical Indexing},
year = {2026},
isbn = {9798400725999},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/3805712.3809927},
doi = {10.1145/3805712.3809927},
booktitle = {Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval},
pages = {3982–3987},
numpages = {6},
keywords = {multivector retrieval, late interaction, clustering, efficiency},
location = {Australia},
series = {SIGIR '26}
}

Metadata

Release files for tachiom 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tachiom 0.7.0
File Size Uploaded Provenance Actions
tachiom-0.7.0.tar.gz 527.0 kB Without provenance Details for tachiom-0.7.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tachiom 0.7.0
File Actions
tachiom-0.7.0-cp313-cp313-manylinux_2_39_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.39+ x86-64 Details for tachiom-0.7.0-cp313-cp313-manylinux_2_39_x86_64.whl
tachiom-0.7.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for tachiom-0.7.0-cp313-cp313-macosx_11_0_arm64.whl
tachiom-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for tachiom-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl
tachiom-0.7.0-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for tachiom-0.7.0-cp312-cp312-manylinux_2_39_x86_64.whl
tachiom-0.7.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for tachiom-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
tachiom-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for tachiom-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl
tachiom-0.7.0-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for tachiom-0.7.0-cp311-cp311-manylinux_2_39_x86_64.whl
tachiom-0.7.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for tachiom-0.7.0-cp311-cp311-macosx_11_0_arm64.whl
tachiom-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for tachiom-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl
tachiom-0.7.0-cp310-cp310-manylinux_2_39_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.39+ x86-64 Details for tachiom-0.7.0-cp310-cp310-manylinux_2_39_x86_64.whl
tachiom-0.7.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for tachiom-0.7.0-cp310-cp310-macosx_11_0_arm64.whl
tachiom-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.12+ x86-64 Details for tachiom-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl

Total release size: 12.8 MB

Release files / tachiom-0.7.0.tar.gz

Download URL tachiom-0.7.0.tar.gz
Size 527.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dd9b21dfb926406760c4ebf88e19f1fde5dea137c8504b2e6d1c1ae94967b6f2
BLAKE2b-256 checksum
How to use checksums
49ab19ba84acbb95c187856ef60554700aeb34cfdcdd79f3023a92f297149927
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL tachiom-0.7.0-cp313-cp313-manylinux_2_39_x86_64.whl
Size 1.1 MB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
37f3859a5a9be32a68ec372131968a2c23b16258febcf22f6afcc01dcef27c37
BLAKE2b-256 checksum
How to use checksums
e52f80bc185cdcd8353e2266ae9149cff62419e9cacc87a510ca7568556c45a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL tachiom-0.7.0-cp313-cp313-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
072e18c62dedb9d609b586b2cad0078b6c4cf2e048a1fe41c76e9c0f415cf418
BLAKE2b-256 checksum
How to use checksums
f006667610eb199119c1accad7768cbb3776da56ad584efc6a26c482b6a94aab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL tachiom-0.7.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 976.9 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
52389cbd15fc29e0421b7eaa6742c2d04c0403e48b9f98e05de873a5a68015f9
BLAKE2b-256 checksum
How to use checksums
8ffa3974034c87843cf800d5d36ad2d4b2d89c97fab1bf7d3bf6d2246f4e98fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL tachiom-0.7.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 1.1 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
5f0c64a10e025c9804f0b990bac71051428d2df2745d8ff0961badb1cc2958fb
BLAKE2b-256 checksum
How to use checksums
3734d3c9f1baefe1b3258c27cd55313790c863a3723cb2d3759b5faf634c7641
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL tachiom-0.7.0-cp312-cp312-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
33aab95ee68d73cb202ff1b5edde1d8c576ba16910651ed388df3de7e08d2d8b
BLAKE2b-256 checksum
How to use checksums
846a2282588e9d529c7f07316bcf10d1277de6ded323461f6f584d005aaffead
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL tachiom-0.7.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 977.0 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
017f492576ceac7b24dcc6c31d980a0942add83b581cdf61da453faa9bae5b6a
BLAKE2b-256 checksum
How to use checksums
8443c7449afed534af7ae788538c700e78b06f251e2e835efddd14c30ff3546b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL tachiom-0.7.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 1.1 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
b0de2f299224659fc8a559975e99e75456f7cc9b5484a342aeb3c980bf60ba9e
BLAKE2b-256 checksum
How to use checksums
53c4b08e8b23377b0b87a6ea37f408767ddcf246a4c6bf2dafa6c8ea19fb44d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL tachiom-0.7.0-cp311-cp311-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4086284866459e4b0eb52cdd687b6d2a555bbd8c24f3449198b519a2eaa53720
BLAKE2b-256 checksum
How to use checksums
6dd35ecdb6d5cbee8325b9fb6fbb79e8188ce45b5faef451838fd76aa75104bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL tachiom-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 977.5 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
1040ae615e4a18d81d6409e868a6aa6b6de35fe07b326d44b3e259fb0daa5801
BLAKE2b-256 checksum
How to use checksums
eb93f3ed70af9f435e649519313dc180d235938720d65693e55ca9c860319062
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL tachiom-0.7.0-cp310-cp310-manylinux_2_39_x86_64.whl
Size 1.1 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
2de77f5c85e04b73af58135e20780f671bb88aa6df843f26bed806d833a93dc4
BLAKE2b-256 checksum
How to use checksums
caa0e62f4468864ad73d3fd4b1894b9e6352c05406482e49ed39d8857ce23996
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL tachiom-0.7.0-cp310-cp310-macosx_11_0_arm64.whl
Size 1.0 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4d313111da1fde16fde0c2663e5207103022c976455d7a9cb869155a005aa99e
BLAKE2b-256 checksum
How to use checksums
7d0abd60b0f7687e46d90f1a0b1e4cb1a98627ae6e9df0a96b358c41a30c0e6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / tachiom-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl

Download URL tachiom-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl
Size 977.4 kB
Tags CPython 3.10 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
25377e5bb206ae29ae249b0fd15097accaf4422ce8fd7109f07530fb490b5fb6
BLAKE2b-256 checksum
How to use checksums
fbb7295b165511ef2da2cbd3ac15cc4e85b12b14d1ed77d712fb0ad00b038cbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for tachiom 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page