Datasets:
Vishva R commited on
Update README.md
Browse files60 unmodified lines61626364656667686970717273747576777879808182838485868788898 unmodified lines98991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351365 unmodified lines1421431441451461471481491501511521531541553 unmodified lines15916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619760 unmodified linesdownload_size: 5022431dataset_size: 85142783---# RBI Circular QA Dataset## Dataset DescriptionThis 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 FieldsEach 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) |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 |## 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 Dataset5 unmodified lines# 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 Pandas3 unmodified linesfrom datasets import load_datasetdataset = 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## DisclaimerThis 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.## LicensePlease 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.60 unmodified lines61626364656667686970717273747576777879808182838485868788899091929394959697988 unmodified lines1071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541555 unmodified lines1611621631641651661671681691701711721731741751761771781791801811821831841851863 unmodified lines19019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624760 unmodified linesdownload_size: 5022431dataset_size: 85142783---# RBI Circular QA Dataset## Dataset DescriptionThis 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). 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 StructureThe dataset is organized into two splits: `train` and `eval`.### Data FieldsEach 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### 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 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:**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, 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 and evaluation of model generalization on semantically similar but syntactically different questions and answers.- Regulatory text understanding.---## Loading the Dataset5 unmodified lines# Load the datasetdataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")# Access the 'train' splitprint(f"Dataset 'train' split size: {len(dataset['train'])}")print(f"Features: {dataset['train'].features}")# 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_datasetdataset = load_dataset("Vishva007/RBI-Circular-QA-Dataset")# Load train split to pandasdf_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.- 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, 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.- 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---## DisclaimerThis 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.---## LicensePlease 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