Prepare corpus and QA data for ComoRAG
mainComoRAG requires data in .jsonl format.
Corpus file (corpus.jsonl): Each line must be a JSON object representing a document.
Required fields:
id: Unique identifier for the line.doc_id: Identifier for the document.title: Document title.contents: The actual text content.
QA file (qas.jsonl): Each line must be a JSON object representing a question.
Required fields:
id: Unique identifier for the question.question: The question text.golden_answers: A list of correct answers.
Example formats:
corpus.jsonl
{"id": 0, "doc_id": 1, "title": "...", "contents": "..."}qas.jsonl
{"id": "1", "question": "...", "golden_answers": ["..."]}