faiss/demos
Lucas Hosseini a8118acbc5
Facebook sync (May 2019) + relicense (#838)
Changelog:

- changed license: BSD+Patents -> MIT
- propagates exceptions raised in sub-indexes of IndexShards and IndexReplicas
- support for searching several inverted lists in parallel (parallel_mode != 0)
- better support for PQ codes where nbit != 8 or 16
- IVFSpectralHash implementation: spectral hash codes inside an IVF
- 6-bit per component scalar quantizer (4 and 8 bit were already supported)
- combinations of inverted lists: HStackInvertedLists and VStackInvertedLists
- configurable number of threads for OnDiskInvertedLists prefetching (including 0=no prefetch)
- more test and demo code compatible with Python 3 (print with parentheses)
- refactored benchmark code: data loading is now in a single file
2019-05-28 16:17:22 +02:00
..
Makefile Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00
README.md sync with FB version 2018-02-23 (#347) 2018-02-23 07:49:45 -08:00
demo_auto_tune.py Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00
demo_imi_flat.cpp Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00
demo_imi_pq.cpp Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00
demo_ivfpq_indexing.cpp Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00
demo_ondisk_ivf.py Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00
demo_sift1M.cpp Facebook sync (May 2019) + relicense (#838) 2019-05-28 16:17:22 +02:00

README.md

Demos for a few Faiss functionalities

demo_auto_tune.py

Demonstrates the auto-tuning functionality of Faiss

demo_ondisk_ivf.py

Shows how to construct a Faiss index that stores the inverted file data on disk, eg. when it does not fit in RAM. The script works on a small dataset (sift1M) for demonstration and proceeds in stages:

0: train on the dataset

1-4: build 4 indexes, each containing 1/4 of the dataset. This can be done in parallel on several machines

5: merge the 4 indexes into one that is written directly to disk (needs not to fit in RAM)

6: load and test the index