Skip to main content

Search indices backed by Rust

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl (711.3 kB view details)

Uploaded CPython 3.12+manylinux: glibc 2.34+ x86-64

File details

Details for the file search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for search_index-0.4.2-cp312-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f7aa7f01134de0559d55fcef746e9f3ea907b59656c361577872e384a5b4f76e
MD5 7eb91f6e7d489d8fa4491a8584d42223
BLAKE2b-256 7fa24ea8c0d1d295196139adf1a035aebf447cbee91fb24c5d0ce76ed7140f62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page