Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
39
39
messages
listlengths
3
3
metadata
dict
raft_gen_001132_6a281325_02_3d4b7d24_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "english", "legal_domain": "bns_2023", "task_type": "law_mapping", "source_act": "bns_2023", "source_sections": [ "bns_2023:1" ], "rag": { "context_keys": [ "bns_2023:1", "rti_2005:26", "constitution_1950:115", "constitution_1950:19", "mv_act_1988:186", ...
raft_gen_001221_cac23afb_02_981f7bf8_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "english", "legal_domain": "bns_2023", "task_type": "law_mapping", "source_act": "bns_2023", "source_sections": [ "bns_2023:1" ], "rag": { "context_keys": [ "bnss_2023:208", "bns_2023:1", "bns_2023:47", "bns_2023:254", "bnss_2023:113", "bns_2023:24...
raft_gen_001554_2ef55146_02_91990a6b_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hindi", "legal_domain": "bns_2023", "task_type": "hindi_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:1" ], "rag": { "context_keys": [ "bnss_2023:113", "bns_2023:109", "bsa_2023:24", "bns_2023:48", "bns_2023:1", "bns_2023:113", ...
raft_gen_001620_a05e759e_01_b2049607_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hindi", "legal_domain": "bns_2023", "task_type": "hindi_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:100" ], "rag": { "context_keys": [ "bns_2023:106", "bns_2023:103", "bns_2023:102", "bns_2023:101", "bns_2023:90", "bns_2023:110",...
raft_gen_001620_a05e759e_02_5eeeb9b3_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hindi", "legal_domain": "bns_2023", "task_type": "hindi_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:100" ], "rag": { "context_keys": [ "bns_2023:80", "bns_2023:101", "bns_2023:307", "bns_2023:106", "bns_2023:100", "bns_2023:39", ...
raft_gen_001620_a05e759e_03_bff4ab3c_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hindi", "legal_domain": "bns_2023", "task_type": "hindi_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:100" ], "rag": { "context_keys": [ "bns_2023:308", "bns_2023:62", "bns_2023:100", "bns_2023:9", "bns_2023:109", "bns_2023:30", ...
raft_gen_001620_a05e759e_04_9d03d1d9_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hindi", "legal_domain": "bns_2023", "task_type": "hindi_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:100" ], "rag": { "context_keys": [ "bns_2023:102", "bns_2023:100", "bns_2023:106", "bns_2023:101", "bns_2023:105", "bns_2023:110"...
raft_gen_001314_88acb9df_04_6a226881_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "english", "legal_domain": "bns_2023", "task_type": "law_mapping", "source_act": "bns_2023", "source_sections": [ "bns_2023:101" ], "rag": { "context_keys": [ "bns_2023:109", "bns_2023:102", "bns_2023:101", "bns_2023:104", "bns_2023:100", "bns_2023...
raft_gen_001314_88acb9df_02_eb34bf63_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "english", "legal_domain": "bns_2023", "task_type": "law_mapping", "source_act": "bns_2023", "source_sections": [ "bns_2023:101" ], "rag": { "context_keys": [ "bns_2023:32", "bns_2023:90", "bns_2023:106", "bnss_2023:236", "bns_2023:101", "bsa_2023:...
raft_gen_002004_58e0c73a_01_24a579b2_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hinglish", "legal_domain": "bns_2023", "task_type": "hinglish_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:101" ], "rag": { "context_keys": [ "bsa_2023:3", "bns_2023:101", "bns_2023:100", "bns_2023:103", "bns_2023:109", "bns_2023:...
raft_gen_002004_58e0c73a_02_e8960c0f_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hinglish", "legal_domain": "bns_2023", "task_type": "hinglish_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:101" ], "rag": { "context_keys": [ "bns_2023:101", "bns_2023:100", "bns_2023:110", "bns_2023:103", "bns_2023:102", "bns_202...
raft_gen_002004_58e0c73a_03_60a35fc0_01
[ { "role": "system", "content": "You are Nyaya, an Indian legal information model. You provide accurate, plain-language legal guidance for Indian citizens, cite specific sections of current law (BNS/BNSS/BSA and other acts in force), clearly state uncertainty, and recommend consulting a licensed advocate for...
{ "language": "hinglish", "legal_domain": "bns_2023", "task_type": "hinglish_qa", "source_act": "bns_2023", "source_sections": [ "bns_2023:101" ], "rag": { "context_keys": [ "bns_2023:101", "bns_2023:76", "bnss_2023:460", "bns_2023:68", "bns_2023:196", "bnss_202...
End of preview. Expand in Data Studio

Nyaya-Train-v3

6,429 chat-format training records (5,292 train / 280 val / 857 test) for an Indian legal-information assistant. Every record is a citizen question, the statute sections a retriever surfaced for it (k=8, plus a deliberate 10% of retrieval-miss demonstrations), and a teacher answer that cites only sections present in that context.

Provenance

  • Statute text: NyayaLabs98/nyaya-statute-db (Government of India material, public domain under Section 52(1)(q) of the Copyright Act, 1957).
  • Questions and answers: generated from verbatim statute text by Gemma 4 31B-IT (Apache-2.0), then regenerated under the inference-time RAG prompt (RAFT). The teacher never cited from memory: its prompt held the statute text and nothing else.
  • Gate: every citation in every answer resolves against the statute DB and appears in the record's own context. 1,989 of 10,775 teacher outputs failed that gate and were dropped.
  • Leakage: 0 records overlap a Nyaya-Eval-v0 question or answer (reports/v3_dataset_report.json in the repository).
  • Splits are grouped by source section, never by row, so a section's questions never straddle train and test.

Schema

{
  "id": "raft_gen_000123_ab12cd34_01",
  "messages": [
    {"role": "system", "content": "You are Nyaya, an Indian legal information model. ..."},
    {"role": "user", "content": "Relevant provisions of current Indian law ... Question: ..."},
    {"role": "assistant", "content": "Under Section 173 of the Bharatiya Nagarik Suraksha Sanhita, 2023 ..."}
  ],
  "metadata": {
    "language": "hinglish",
    "legal_domain": "bnss_2023",
    "task_type": "grounded_qa",
    "source_act": "bnss_2023",
    "source_sections": ["bnss_2023:173"],
    "rag": {"context_keys": ["bnss_2023:173", "bnss_2023:175", "..."], "is_miss": false, "question": "..."},
    "dataset_version": "nyaya_instruct_v3"
  }
}

Known result — read before training on this

A LoRA fine-tune of Qwen2.5-3B-Instruct on this data (NyayaLabs98/nyaya-3b-v3) is statistically tied with its base model on Nyaya-Eval-v1 (fact recall 32.9% vs 34.3%, 95% CI on the paired difference spans zero). The data is published for reproducibility and for retriever training — each record is a citizen question paired with its gold statute sections, which is a contrastive training set — not as a proven recipe for beating the base model. A second, smaller set from a stronger teacher, also not trained on, is nyaya-train-v7-raft.

Licence

Apache-2.0 for the generated text. Statutory passages inside prompts are public domain. Not legal advice: the answers are training targets for a legal information assistant, not advice; consult a licensed advocate (Advocates Act, 1961). Built with github.com/JitendraJha98/nyaya-model.

Downloads last month
35

Models trained or fine-tuned on NyayaLabs98/nyaya-train-v3