A similarity search indexer based on Faiss.
-
use
LMDB
as storage backend (as default)f = Flow().add(uses='jinahub://FaissIndexer', uses_with={'storage_backend': 'lmdb'}) with f: f.block()
-
use
SQLite
as storage backendf = Flow().add(uses='jinahub://FaissIndexer', uses_with={'storage_backend': 'sqlite:///:memory:'}) with f: f.block()
-
use
PostgresSQL
as storage backendf = Flow().add(uses='jinahub://FaissIndexer', uses_with={'storage_backend': 'postgresql+psycopg2://postgres:123456@127.0.0.1/postgres'}) with f: f.block()