FaissFlatIndexConfig
- class lightning_ir.retrieve.faiss.faiss_indexer.FaissFlatIndexConfig[source]
Bases:
FaissIndexConfigConfiguration class for FAISS flat indexers in the Lightning IR framework.
Methods
Attributes
- 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
FaissFlatIndexer