NVIDIA-NeMo / NVIDIA-NeMo/Automodel

Support new format for retrieval dataset

Open
#900 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
963
Forks
318
Avg merge
3d 20h
Merged PRs (30d)
143

Description

Is your feature request related to a problem? Please describe.
Currently, retrieval_dataset.py appears to support only one dataset structure:

A JSON dictionary with "data" and "corpus" sections

Required fields in "data": ["question_id", "question", "corpus_id", "pos_doc", "neg_doc"]

Documents referenced by ID into the "corpus" section

Describe the solution you'd like
Add support in retrieval_dataset.py for datasets where:
["query", "pos_doc", "neg_doc"] and is in jsonl format

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in retrieval_dataset.py by tracing how the current dictionary format is loaded and how question, positive-document, and negative-document fields are consumed. Done means JSONL records containing query, pos_doc, and neg_doc are accepted in addition to the existing structure, with the supported field requirements verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data, machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.