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.6.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.6.0
File Size Uploaded Provenance Actions
tachiom-0.6.0.tar.gz 526.4 kB Without provenance Details for tachiom-0.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 12.1 MB

Release files / tachiom-0.6.0.tar.gz

Download URL tachiom-0.6.0.tar.gz
Size 526.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2b220034de102a2dfcb4c26fd03bdd060523857fd979eb70a5a2de9305ba64ee
BLAKE2b-256 checksum
How to use checksums
f36f2b2c4b9c61b288313d97081a52df0c0038ee271999d627d18e5612db98a8
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.6.0-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL tachiom-0.6.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
b46adfb7ca05a375cc8065295d7ac151caa7aafe06541bcfda0da67bf665027f
BLAKE2b-256 checksum
How to use checksums
bffadd30f909501abd5ea40767f98da0c241be342a25d21230f17c30f160f62f
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.6.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL tachiom-0.6.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
83df27a2cc4507e08a42d041fefd34f758b784da070ef2989c2951b0ce813f83
BLAKE2b-256 checksum
How to use checksums
6b389726d2c55a9989a74d854bd724612b530bb4116c5a7ca1b47a8e3f262f6b
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.6.0-cp313-cp313-macosx_10_12_x86_64.whl

Download URL tachiom-0.6.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 916.8 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
642766d89d560f8eff371c94a8c3af047f6048abe2c931dfdebab7a31974c406
BLAKE2b-256 checksum
How to use checksums
6905369860c6ca4c089d580f223c6c8a260924c6892b8e8543092c04bb15c383
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.6.0-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL tachiom-0.6.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
36d37ca7c741c195f98af58e124ecfdd1fa46a549897f7f7093581ccd6c3dca4
BLAKE2b-256 checksum
How to use checksums
02e528540e8bcd6365ec19a014232a6ecb0f90f72ba13693a2d8b49e45899cfa
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.6.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL tachiom-0.6.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
d17fd7b54adaec7363ae82f9267b20eadf6fbf6e885f52a7a1f53df52f451a55
BLAKE2b-256 checksum
How to use checksums
65f8210b50b93aa575f973497527aa67c948601a5a4c24678a4a8d3efa37d5c6
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.6.0-cp312-cp312-macosx_10_12_x86_64.whl

Download URL tachiom-0.6.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
e5e25d24a38c451350d1635150a071d8bb86021d3d935c054cce53dd5eff436a
BLAKE2b-256 checksum
How to use checksums
8fcd3d0880a2ebe0c863995c908cda1a283e45dd98b908685c653042f4ecbe9d
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.6.0-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL tachiom-0.6.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
2f719885ec55031a2679ccc334e8447d210d188906bbb03e178864d5ec3bf6a9
BLAKE2b-256 checksum
How to use checksums
0509ce2c2fee9073dead961d7cb57da1c9f45cecc453cd4115a99de67323f47c
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.6.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL tachiom-0.6.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
21a148256dd25a0397f37d541b462a7c4827124bfa68d44afa2204a46e0cac43
BLAKE2b-256 checksum
How to use checksums
4801493ab1b80243a77a1acc3f40e1e9e3cb722eba5f5b45c163264403cb1d3a
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.6.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL tachiom-0.6.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 917.1 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e33d2e04ba039f30a63e866ec45d6aa5de9b69386a08b8e77275b9591845cacd
BLAKE2b-256 checksum
How to use checksums
72525a2cbc7c2197a6f259fdd1dc169c9c10179a54a65e577ad697eb8d934f94
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.6.0-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL tachiom-0.6.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
2f8952f3b0cd92e7cc688b9ddcc56b8964057b71fb25fc61cebaf52a227fc5ba
BLAKE2b-256 checksum
How to use checksums
81659f7576b91e3a439e0d42883cba4b70eaa9b679c014f90ec4a815c3dbcb71
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.6.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL tachiom-0.6.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
ca67b0d8e17d0703a0880d4c098a4db90f326d9df9f77810381647dbcf4cf105
BLAKE2b-256 checksum
How to use checksums
e4f115d41735d1c4cc08af0d307f255011012f08270e253692d67a13b0da4d45
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.6.0-cp310-cp310-macosx_10_12_x86_64.whl

Download URL tachiom-0.6.0-cp310-cp310-macosx_10_12_x86_64.whl
Size 917.1 kB
Tags CPython 3.10 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f15b1580af384ee3ecd7cefe3872eda80dc3be1715ce92b81639a02fe1363daf
BLAKE2b-256 checksum
How to use checksums
726fba085599c596694940f2a23447646a104b565ea386eb7128b875926b2ce4
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.6.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