Datasets:
Update README.md
Browse files# RBI Circular QA Dataset
## Dataset Description
This dataset contains question-answer pairs extracted from Reserve Bank of India (RBI) circulars spanning 2023, 2024, and 2025. The dataset was created using Google's Gemini-2.0-flash model to generate high-quality QA pairs from official RBI regulatory documents.
## Dataset Summary
- **Total QA Pairs**: 12698
- **Language**: English
- **Domain**: Banking and Financial Regulations
- **Source**: RBI Official Circulars (2023,2024 and 2025)
- **Generation Model**: Google Gemini-2.0-flash
- **License**: Please refer to RBI's terms of use for the original documents
## Dataset Structure
### Data Fields
Each row in the dataset contains the following fields:
| Field | Type | Description |
|-------|------|-------------|
| `document` | string | Original document/circular title |
| `filename` | string | Source filename |
| `model_name` | string | Name of the model used for QA generation (Gemini-2.0-flash) |
| `regulation_area` | string | Area of banking regulation (e.g., Credit, Risk Management, etc.) |
| `applicable_to` | string | Target entities (Banks, NBFCs, etc.) |
| `issued_on` | string | Date when the circular was issued |
| `key_topics` | string | Main topics covered in the circular |
| `chunks_text` | string | Relevant text chunk from the document |
| `is_table` | boolean | Whether the source content contains tabular data |
| `question` | string | Generated question |
| `answer` | string | Corresponding answer |
| `evaluation_criteria` | string | Criteria for evaluating the QA pair quality |
| `category` | string | Category/type of the question |
| `estimated_difficulty` | string | Difficulty level of the question |
## Dataset Creation
### Source Documents
- **RBI Official Circulars**: 2023, 2024, and 2025
- **Source Website**: [RBI Circular Index](https://www.rbi.org.in/scripts/bs_circularindexdisplay.aspx)
- **Format**: PDF documents converted to structured text
- **Coverage**: Comprehensive banking and financial regulations
### Generation Process
1. **Document Collection**: RBI circular PDFs downloaded from the [official RBI website](https://www.rbi.org.in/scripts/bs_circularindexdisplay.aspx)
2. **Document Processing**: PDF documents were processed and chunked into manageable segments
3. **QA Generation**: Google Gemini-2.0-flash model generated relevant question-answer pairs
4. **Quality Control**: Evaluation criteria and difficulty estimation included for each QA pair
5. **Structuring**: Data organized with comprehensive metadata and regulatory context
### Code and Methodology
The complete data preparation pipeline is available at:
**GitHub Repository**: [https://github.com/vishvaRam/Data-Prep-for-LLM-fine-tuning](https://github.com/vishvaRam/Data-Prep-for-LLM-fine-tuning)
## Use Cases
### Primary Applications
- **Financial Chatbots**: Training conversational AI for banking queries
- **Regulatory Compliance**: Question-answering systems for RBI regulations
- **Educational Tools**: Learning resources for banking professionals
- **Research**: Analysis of Indian banking regulatory framework
### Model Training
- Fine-tuning language models for banking domain
- Retrieval-Augmented Generation (RAG) systems
- Question-answering model development
- Regulatory text understanding
## Loading the Dataset
### Using Hugging Face Datasets
```python
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")
# Access the data
print(f"Dataset size: {len(dataset['train'])}")
print(f"Features: {dataset['train'].features}")
# Example usage
first_qa = dataset['train'][0]
print(f"Question: {first_qa['question']}")
print(f"Answer: {first_qa['answer']}")
```
### Using Pandas
```python
import pandas as pd
from datasets import load_dataset
dataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")
df = dataset['train'].to_pandas()
print(df.head())
```
## Data Quality and Limitations
### Strengths
- Generated by state-of-the-art Gemini-2.0-flash model
- Comprehensive metadata for each QA pair
- Covers recent RBI regulations (2023,2024 and 2025)
- Structured format suitable for ML applications
### Limitations
- AI-generated content may contain inaccuracies
- Limited to English language
- Covers only 2023,2024 and 2025 period
- May not capture all nuances of complex regulatory language
### Recommended Usage
- Always verify critical information with original RBI circulars
- Use as supplementary training data alongside human-verified content
- Suitable for research and educational purposes
## Contact and Contributions
- **Creator**: Vishva R
- **GitHub**: [https://github.com/vishvaRam/Data-Prep-for-LLM-fine-tuning](https://github.com/vishvaRam/Data-Prep-for-LLM-fine-tuning)
- **Issues**: Please report any issues or suggestions through GitHub
## Disclaimer
This dataset is created for educational and research purposes. The original RBI circulars remain the authoritative source for regulatory information. Users should verify all information with official RBI publications before making any regulatory or compliance decisions.
## License
Please refer to the Reserve Bank of India's terms of use for the original circular documents. The dataset structure and generated QA pairs are provided under standard research usage terms.
39 unmodified lines4041424344454647484950515253435439 unmodified lines data_files: - split: train path: data/train-*license: mittask_categories:- question-answering- table-question-answering- text2text-generationtags:- finance- legalpretty_name: RBI Circulars Question Answersize_categories:- 10K<n<100K------