NVIDIA-NeMo / NVIDIA-NeMo/Automodel
Support new format for retrieval dataset
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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