BR-TaxQA-R: A Dataset for Question Answering with References for Brazilian Personal Income Tax Law, including case law
On the map: Retrieval-augmented generation → Legal and financial RAG
Abstract (arXiv)
This paper presents BR-TaxQA-R, a novel dataset designed to support question answering with references in the context of Brazilian personal income tax law. The dataset contains 715 questions from the 2024 official Q&A document published by Brazil's Internal Revenue Service, enriched with statutory norms and administrative rulings from the Conselho Administrativo de Recursos Fiscais (CARF). We implement a Retrieval-Augmented Generation (RAG) pipeline using OpenAI embeddings for searching and GPT-4o-mini for answer generation. We compare different text segmentation strategies and benchmark our system against commercial tools such as ChatGPT and Perplexity.ai using RAGAS-based metrics. Results show that our custom RAG pipeline outperforms commercial systems in Response Relevancy, indicating stronger alignment with user queries, while commercial models achieve higher scores in Factual Correctness and fluency. These findings highlight a trade-off between legally grounded generation and linguistic fluency. Crucially, we argue that human expert evaluation remains essential to ensure the legal validity of AI-generated answers in high-stakes domains such as taxation. BR-TaxQA-R is publicly available at https://huggingface.co/datasets/unicamp-dl/BR-TaxQA-R.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 8 of its 20 references that are in the map. First posted on arXiv 21 May 2025.
Builds on
8 of 20 references.
References · 8
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2023Ragas: Automated Evaluation of Retrieval Augmented Generationcited by 418
- 2024Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Toolscited by 176
- 2023Large Language Models in Law: A Surveycited by 128
- 2024Evaluation of RAG Metrics for Question Answering in the Telecom Domaincited by 20
- 2024STARD: A Chinese Statute Retrieval Dataset with Real Queries Issued by Non-professionalscited by 10
- 2023Datasets for Portuguese Legal Semantic Textual Similarity: Comparing weak supervision and an annotation process approachescited by 3
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Fine-grained Claim-level RAG Benchmark for Law
- 2025NitiBench: A Comprehensive Study of LLM Framework Capabilities for Thai Legal Question Answering
- 2026Retrieval Augmented Generation Framework for the Nepali Legal Domain Question Answering
- 2026Temporal Misgrounding in Legal RAG: A Versioned-Corpus Benchmark for French Tax Law
- 2026AILQA: Evaluating AI-Driven Legal Question Answering Systems for the Indian Legal System
- 2024Experimenting with Legal AI Solutions: The Case of Question-Answering for Access to Justice
- 2024CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answering
- 2024GRAF: Graph Retrieval Augmented by Facts for Romanian Legal Multi-Choice Question Answering