Load LongRAG processed corpus from Hugging Face
mainYou can skip manual corpus preparation by loading the pre-processed retrieval corpora for NQ and HotpotQA directly from Hugging Face using the datasets library.
from datasets import load_dataset
corpus_nq = load_dataset("TIGER-Lab/LongRAG", "nq_corpus")
corpus_hotpotqa = load_dataset("TIGER-Lab/LongRAG", "hotpot_qa_corpus")