Skip to content

4. Saving and Loading Indexes

Estimated time: 6 minutes

Learn how to save your index to disk and load it later.

Steps

  1. Save the index:
    index.save("my_index.ann")
    
  2. Load the index:
    from rust_annie import AnnIndex
    index = AnnIndex.load("my_index.ann")
    print("Index loaded!")
    

Next: Batch Operations