TorchDenseIndexConfig
- class lightning_ir.retrieve.pytorch.dense_indexer.TorchDenseIndexConfig[source]
Bases:
IndexConfigConfiguration for the TorchDenseIndexer.
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
TorchDenseIndexer