Veblen34's picture
Upload folder using huggingface_hub
cd6775d verified
Raw
History Blame Contribute Delete
540 Bytes
from colbert.infra import Run, RunConfig, ColBERTConfig
from colbert import Indexer
dataset = "webq"
if __name__=='__main__':
with Run().context(RunConfig(nranks=1, experiment=dataset+"_jina")):
config = ColBERTConfig(
nbits=2,
root="/ColBERT-main/experiments",
)
indexer = Indexer(checkpoint="jinaai/jina-colbert-v2 ", config=config)
indexer.index(name=f"{dataset}.nbits=2", collection=f"/data1/liuyaoyang/Papers/icml2025/multi_rag/RAG/Search-in-the-Chain/data/{dataset}.tsv")