FaissIndexConfig
- class lightning_ir.retrieve.faiss.faiss_indexer.FaissIndexConfig[source]
Bases:
IndexConfigConfiguration class for FAISS indexers in the Lightning IR framework.
Methods
Attributes
SUPPORTED_MODELS- classmethod from_pretrained(index_dir: Path | str) IndexConfig
Load the index configuration from a directory.
- Parameters:
index_dir (Path | str) – Path to the directory containing the index configuration.
- Returns:
An instance of the index configuration class.
- Return type:
- Raises:
ValueError – If the index type in the configuration does not match the expected class name.
- indexer_class
alias of
FaissIndexer