Datasets:
Vishva R commited on
Updated
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134---dataset_info: features: - name: document dtype: string - name: filename dtype: string - name: model_name dtype: string - name: regulation_area dtype: string - name: applicable_to dtype: string - name: issued_on dtype: string - name: key_topics sequence: string - name: chunks_text dtype: string - name: is_table dtype: bool - name: question dtype: string - name: answer dtype: string - name: evaluation_criteria dtype: string - name: category dtype: string - name: estimated_difficulty dtype: int64 splits: - name: train num_bytes: 84478574 num_examples: 12698 download_size: 4763492 dataset_size: 84478574configs:- config_name: default 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---# 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**: Variable (depends on processed circulars)- **Language**: English- **Domain**: Banking and Financial Regulations- **Source**: RBI Official Circulars (2023-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 from the JSON processing || `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 Process1. **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 segments3. **QA Generation**: Google Gemini-2.0-flash model generated relevant question-answer pairs4. **Quality Control**: Evaluation criteria and difficulty estimation included for each QA pair5. **Structuring**: Data organized with comprehensive metadata and regulatory context
### Code and MethodologyThe 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
```pythonfrom datasets import load_dataset
# Load the datasetdataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")
# Access the dataprint(f"Dataset size: {len(dataset['train'])}")print(f"Features: {dataset['train'].features}")
# Example usagefirst_qa = dataset['train'][0]print(f"Question: {first_qa['question']}")print(f"Answer: {first_qa['answer']}")```
### Using Pandas
```pythonimport pandas as pdfrom 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-2025)- Structured format suitable for ML applications
### Limitations- AI-generated content may contain inaccuracies- Limited to English language- Covers only 2023-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 Ram- **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.README.md+134-54