Chromas fork of hnswlib


License
Apache-2.0
Install
pip install chroma-hnswlib==0.7.6

Documentation

Chroma-Hnswlib - fast approximate nearest neighbor search

Chromas fork of https://github.com/nmslib/hnswlib

Build & Release

Wheels are automatically built and pushed to PyPI for multiple platforms via GitHub actions using the cibuildwheel.

The Publish Github Action is configured to run whenever a version tag (a tag string with three period-delimited numbers) is pushed. Is is necessary to ensure that the version number in setup.py has also been updated, or else the Publish action will fail.

Building AVX Extensions

For maximum compatibility, the distributed wheels are not compiled to make use of Advanced Vector Extensions (AVX). If your hardware supports AVX, you may get better performance by recompiling this library on the machine on which it is intended to run.

To force recompilation when installing, specify the --no-binary chroma-hsnwlib option to PIP when installing dependencies. This can be added to your pip install command, for example:

pip install -r requirements.txt --no-binary chroma-hnswlib

You can also put the --no-binary directive in your requirements.txt.

If you've already installed dependencies, you must first uninstall chroma-hsnwlib using pip uninstall chroma-hnswlib to remove the precompiled version before reinstalling.