Embedding layer for OMOP CDM.
omop-emb now exposes backend-specific optional dependencies so installation
can match the embedding backend you actually intend to use.
pip install "omop-emb[postgres]"
pip install "omop-emb[faiss]"
pip install "omop-emb[all]"Notes:
postgresinstalls the PostgreSQL/pgvector dependencies.faissinstalls the FAISS-based backend dependencies. This currently only includes CPU supportallinstalls both backend stacks for development or mixed environments.- A plain
pip install omop-embinstalls the shared core package only. - PostgreSQL-specific embedding dependencies are now optional, but
omop-embstill requires some database backend for OMOP access and model registration. - Non-PostgreSQL database backends have not yet been tested.
Extended documentation can be found here.
- Interface for postgres storage of vectors
- Interface for FAISS storage of embeddings
- Extensive unit testing
- Backend testing
- Corruption and restoration of DB testing
- Support non-Flat indices for each backend
-
faissGPU support -
pgvectorscalesupport - Vector-quantisation for more efficient storage