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.5.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.5.0
File Size Uploaded Provenance Actions
tachiom-0.5.0.tar.gz 526.1 kB Without provenance Details for tachiom-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for tachiom 0.5.0
File Actions
tachiom-0.5.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.5.0-cp313-cp313-manylinux_2_39_x86_64.whl
tachiom-0.5.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for tachiom-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
tachiom-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for tachiom-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
tachiom-0.5.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.5.0-cp312-cp312-manylinux_2_39_x86_64.whl
tachiom-0.5.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for tachiom-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
tachiom-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for tachiom-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl
tachiom-0.5.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.5.0-cp311-cp311-manylinux_2_39_x86_64.whl
tachiom-0.5.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for tachiom-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
tachiom-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for tachiom-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl
tachiom-0.5.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.5.0-cp310-cp310-manylinux_2_39_x86_64.whl
tachiom-0.5.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for tachiom-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
tachiom-0.5.0-cp310-cp310-macosx_10_12_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.12+ x86-64 Details for tachiom-0.5.0-cp310-cp310-macosx_10_12_x86_64.whl

Total release size: 12.1 MB

Release files / tachiom-0.5.0.tar.gz

Download URL tachiom-0.5.0.tar.gz
Size 526.1 kB
Tags Source
SHA-256 checksum
How to use checksums
67334533cfd1dbdc283b33e4d2c6963158ce406eadde282847e8e0b97af7480c
BLAKE2b-256 checksum
How to use checksums
c3b35e6d5057359ee0a71ae5704271746a599c5922e9d39c93f0310784a48c7c
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.5.0-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL tachiom-0.5.0-cp313-cp313-manylinux_2_39_x86_64.whl
Size 1.0 MB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
b34f4f1b3ca4e8e7eb9db3da690afe28a8828fc051a25ef93a0f27bdcd712661
BLAKE2b-256 checksum
How to use checksums
cdb5fa6744e7b35d180cbc62a0af3d8acf317c7bed1ac54885faa1f4986b48c7
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.5.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL tachiom-0.5.0-cp313-cp313-macosx_11_0_arm64.whl
Size 951.5 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2409cb73aec1567946cb87aadf9e132b208e43f424a5986bc0152915a102649d
BLAKE2b-256 checksum
How to use checksums
c5f87cbeee90e5493a695ef714f03a4f5f4b9810ec12b6e0d3cebcd91ceba28a
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.5.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL tachiom-0.5.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 916.7 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a5f7784457b124039da725d133fe3b9adee25bca81f21f06874ea8f69b04bb12
BLAKE2b-256 checksum
How to use checksums
fa355f9e0431778db85cc29e5cae397a68f4a394236fca5dcc1c1ab835f5fcff
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.5.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL tachiom-0.5.0-cp312-cp312-manylinux_2_39_x86_64.whl
Size 1.0 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
db0c1157a0576b251a3f71ac00ed1ab7447bd4ebb3b4f3456b18a17f37f45075
BLAKE2b-256 checksum
How to use checksums
48be831ea7da4c2cb16bcbb984b974ecf170c5b2f1fdc26b3ea10ca4a0f44d75
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.5.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL tachiom-0.5.0-cp312-cp312-macosx_11_0_arm64.whl
Size 951.6 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
db1470681e6068b3e7c0a6e782ec2a7781d15030b2791a66fad3ade9b2e0f540
BLAKE2b-256 checksum
How to use checksums
d3296557800df4340915262fadcae9706d170ad70235abab8179e35bbbf2a90e
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.5.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL tachiom-0.5.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 916.8 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
923925e9acc0e83b73c19bde83e1e053135878bd0a941d1b7cafa77091a96f8a
BLAKE2b-256 checksum
How to use checksums
60296607ef115f1f5e949c1b72bb63d6b41e1a0822e4051b20c1bc814a5b922c
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.5.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL tachiom-0.5.0-cp311-cp311-manylinux_2_39_x86_64.whl
Size 1.0 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
40e60b0a7f446311c68e5ad92eb22c7fd2371e44c3afded17cc4825040bcff4c
BLAKE2b-256 checksum
How to use checksums
bb9dee436f09bda8234435c63bfdf5eb352fd4e5a9085061e4af4f61ab956528
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.5.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL tachiom-0.5.0-cp311-cp311-macosx_11_0_arm64.whl
Size 952.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e89f5d651066d7d7e167d55687bda78998d68d094f85e310f656e83e8910469f
BLAKE2b-256 checksum
How to use checksums
781e673588fdf62ac0ec2ed563496d8d1e168455b046147c8dba22621b386cda
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.5.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL tachiom-0.5.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 917.0 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c88d856d406ab29753c51d9de939e2c83dca6db2f6273307312f0221cc10ec57
BLAKE2b-256 checksum
How to use checksums
f68f6a1dc3d23f1cc9c21de0e7219d5964dfd1d0b66565e53c77c0a71e304b92
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.5.0-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL tachiom-0.5.0-cp310-cp310-manylinux_2_39_x86_64.whl
Size 1.0 MB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
c54e73b9ae57d3edab696782c3609b46f97dafd345069cb4b4b2196ed4b3a72d
BLAKE2b-256 checksum
How to use checksums
2611df098e07029487473fcbd697b3f3c3c4d8b26b3f5a07b3c3c8b7cf1bc8a7
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.5.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL tachiom-0.5.0-cp310-cp310-macosx_11_0_arm64.whl
Size 952.5 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9ba15b414da8e2ed9f91312637c87faf391f141d1fe382028742e58cfcb18879
BLAKE2b-256 checksum
How to use checksums
fe90f16dc5b7a441c35b83b08d092c9b02f68aac8353e36590758680dc5be5ec
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.5.0-cp310-cp310-macosx_10_12_x86_64.whl

Download URL tachiom-0.5.0-cp310-cp310-macosx_10_12_x86_64.whl
Size 917.0 kB
Tags CPython 3.10 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
503e70d0c1fc2e5b6570308043601fa7b0f6ff5889a93a4038bae0bc1987769d
BLAKE2b-256 checksum
How to use checksums
baf976338b197853dd46baaaddeb2683b60cf05f7940ae26cb11485f60644a12
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.5.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