Indexer

class lightning_ir.retrieve.base.indexer.Indexer(index_dir: Path, index_config: IndexConfig, module: BiEncoderModule, verbose: bool = False)[source]

Bases: ABC

__init__(index_dir: Path, index_config: IndexConfig, module: BiEncoderModule, verbose: bool = False) None[source]

Methods

__init__(index_dir, index_config, module[, ...])

add(index_batch, output)

save()