Skip to main content

Python package implementing search indices backed by Rust

Installation

Make sure you have Faiss installed.

Install from PyPI (only built for Python 3.12+ on Linux)

pip install search-index

Manual installation

Make sure you have Faiss and Rust installed, then do the following:

git clone https://github.com/bastiscode/search-index.git
cd search-index
pip install maturin[patchelf]
maturin develop --release

Usage

See build.py and query.py for examples on how to build and query an index.

Search indices

Prefix keyword index with one of the following score functions:

  • keyword occurrence

Similarity index with one of the following index types:

  • flat index (brute-force search)
  • inverted index (bucket search)
  • inverted index + HNSW

Both search indices also support searching only in a subset of the indexed records.

Metadata

Release files for search-index 0.4.2

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

Built distribution (wheel)

Table of built distributions (wheels) for search-index 0.4.2
File Interpreter ABI Platform Actions
search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl CPython 3.12 abi3 Linux glibc 2.34+ x86-64 Details for search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl

Release files / search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl

Download URL search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl
Size 711.3 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
f7aa7f01134de0559d55fcef746e9f3ea907b59656c361577872e384a5b4f76e
BLAKE2b-256 checksum
How to use checksums
7fa24ea8c0d1d295196139adf1a035aebf447cbee91fb24c5d0ce76ed7140f62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Security for search-index 0.4.2

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