Datasets:
Vishva R commited on
Update README.md
Browse files60 unmodified lines616263646566676869707172737475767273747576777778798081828384858687888990918392939486959697988 unmodified lines1071081091101111121131141151161171051061071081181191201211221231111121131141151241251261271281291301311321181331341351361371381391401241251261271411421431441451461301311321331471481491501511521531541555 unmodified lines1611621631451461641651661671491501511521681691701711721731741751761771781791801811821831841851863 unmodified lines19019119219319416216319519619719819920020120220320420520620720820921016917017117221121221321421521617517617717821721821922022122222318118218322422522622722822923023123218718818923323423523623723823924024124224324424524624760 unmodified lines download_size: 5022431 dataset_size: 85142783---
# 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.
The dataset includes an `eval` split, comprising 100 randomly selected samples from the original dataset's first 5000 entries. For these evaluation samples, questions and answers have been rephrased using the Google's Gemini-2.0-flash model via Langchain, providing a valuable resource for evaluating model robustness to linguistic variations.
---
## 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- **Total QA Pairs**: Variable (depends on processed circulars). This includes a dedicated `eval` split of 100 rephrased QA pairs.- **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
The dataset is organized into two splits: `train` and `eval`.
### Data Fields
Each row in the dataset contains the following fields:Each row in both splits of the dataset contains the following fields. The `eval` split contains populated `rephrased_question` and `rephrased_answer` fields, while these fields are present but empty in the `train` split to maintain a consistent schema across all data.
| 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) |8 unmodified lines| `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 || `rephrased_question` | string | A rephrased version of the `question`, populated in the `eval` split, empty in `train`. || `rephrased_answer` | string | A rephrased version of the `answer`, populated in the `eval` split, empty in `train`. |
---
## 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- **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 context1. **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 for the primary dataset.4. **Evaluation Split Construction**: A subset of 100 QA pairs was randomly sampled from the first 5000 entries.5. **Rephrasing**: For the evaluation subset, questions and answers were rephrased using the Google Gemini-2.0-flash model via Langchain's Pydantic structured output, ensuring consistency in the output format.6. **Quality Control**: Evaluation criteria and difficulty estimation are included for each QA pair.7. **Structuring**: Data is organized with comprehensive metadata and regulatory context, with consistent features across all splits.
### Code and MethodologyThe complete data preparation pipeline is available at: 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- **Financial Chatbots**: Training conversational AI for banking queries, including robustness testing with rephrased inputs.- **Regulatory Compliance**: Question-answering systems for RBI regulations.- **Educational Tools**: Learning resources for banking professionals.- **Research**: Analysis of Indian banking regulatory framework and evaluation of language model performance on rephrased content.
### Model Training- Fine-tuning language models for banking domain- Retrieval-Augmented Generation (RAG) systems- Question-answering model development- Regulatory text understanding- Fine-tuning language models for banking domain.- Retrieval-Augmented Generation (RAG) systems.- Question-answering model development and evaluation of model generalization on semantically similar but syntactically different questions and answers.- Regulatory text understanding.
---
## Loading the Dataset
5 unmodified lines# Load the datasetdataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")
# Access the dataprint(f"Dataset size: {len(dataset['train'])}")# Access the 'train' splitprint(f"Dataset 'train' split 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']}")# Example usage from 'train' splitfirst_train_qa = dataset['train'][0]print(f"Train Question: {first_train_qa['question']}")print(f"Train Answer: {first_train_qa['answer']}")print(f"Train Rephrased Question (expected empty): {first_train_qa['rephrased_question']}")
# Access the 'eval' splitprint(f"\nDataset 'eval' split size: {len(dataset['eval'])}")print(f"Features: {dataset['eval'].features}")
# Example usage from 'eval' splitfirst_eval_qa = dataset['eval'][0]print(f"Eval Original Question: {first_eval_qa['question']}")print(f"Eval Rephrased Question: {first_eval_qa['rephrased_question']}")print(f"Eval Original Answer: {first_eval_qa['answer']}")print(f"Eval Rephrased Answer: {first_eval_qa['rephrased_answer']}")```
### Using Pandas3 unmodified linesfrom datasets import load_dataset
dataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")
# Load train split to pandasdf = dataset['train'].to_pandas()print(df.head())df_train = dataset['train'].to_pandas()print("\nTrain Split Head:")print(df_train.head())
# Load eval split to pandasdf_eval = dataset['eval'].to_pandas()print("\nEval Split Head (showing rephrased columns):")print(df_eval.head())```
---
## Data Quality and Limitations
### Strengths- Generated by state-of-the-art Gemini-2.0-flash model for primary QA.- 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- Includes a specialized `eval` split with rephrased content from Gemini-2.0-flash, enhancing evaluation capabilities.- 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- AI-generated content may contain inaccuracies, particularly for rephrased content.- Limited to English language.- Covers only 2023-2025 period.- May not capture all nuances of complex regulatory language.- The rephrased content is model-generated and should be considered as such for evaluation purposes.
### 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- Always verify critical information with original RBI circulars.- Use as supplementary training data alongside human-verified content.- Suitable for research and educational purposes.- The `eval` split is particularly useful for assessing the robustness and generalization of models to variations in phrasing.
---
## 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- **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+98-48