Skip to content

Case studies

Matthijs Douze edited this page Nov 2, 2022 · 11 revisions

In this page, we reference example use cases for Faiss, with some explanations. The examples will most often be in the form of Python notebooks.

Implementing an evolving IVF dataset

This script demonstrates how to add/remove elements from an IVF dataset in a rolling fashion. The key is to use a Hashtable as DirectMap type and remove with IDSelectorArray. Removal cost is then proportional to the number of elements to remove instead of number of elements in the dataset.

demo_rolling_dataset.ipynb

Clone this wiki locally