1. Getting Started with Annie¶
Estimated time: 5 minutes
This tutorial will help you install Annie and run your first nearest neighbor search.
Prerequisites¶
- Python 3.8+
- pip
Steps¶
- Install Annie:
pip install rust-annie
- Import and check version:
import rust_annie print(rust_annie.__version__)
- Create a simple index:
from rust_annie import AnnIndex, Distance index = AnnIndex(128, Distance.EUCLIDEAN) print("Index created!")