faiss/demos/rocksdb_ivf
Kumar Saurabh Arora 6fe4640d5c Fixing headers as per OSS requirement (#3847)
Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3847

same as title.
Fixing headers as raised in task - P1558157110

Reviewed By: junjieqi

Differential Revision: D62408917

fbshipit-source-id: 652b55dd2ba9617edeb2b05172be0f42291d7035
2024-09-09 22:58:05 -07:00
..
CMakeLists.txt
README.md
RocksDBInvertedLists.cpp
RocksDBInvertedLists.h
demo_rocksdb_ivf.cpp

README.md

Storing Faiss inverted lists in RocksDB

Demo of storing the inverted lists of any IVF index in RocksDB or any similar key-value store which supports the prefix scan operation.

How to build

We use conda to create the build environment for simplicity. Only tested on Linux x86.

conda create -n rocksdb_ivf
conda activate rocksdb_ivf
conda install pytorch::faiss-cpu conda-forge::rocksdb cmake make gxx_linux-64 sysroot_linux-64
cd ~/faiss/demos/rocksdb_ivf
cmake -B build .
make -C build -j$(nproc)

Run the example

cd ~/faiss/demos/rocksdb_ivf/build
./rocksdb_ivf test_db