Ancient wisdom meets modern AI.
GitaVerse-Open-Corpus is a comprehensive, open-source dataset collection built from publicly available Bhagavad Gita datasets, processed and reorganized into a clean, structured, canonical format suitable for:
- β LLM fine-tuning (instruction, dialogue, persona)
- β Retrieval-Augmented Generation (RAG)
- β Vector database indexing
- β Semantic search engines
- β Agentic AI systems
- β Spiritual and educational applications
- β Academic and linguistic research
This project bridges the gap between ancient scripture and modern AI development, enabling developers, researchers, and practitioners to build meaningful and responsible AI systems grounded in timeless knowledge.
GitaVerse-Open-Corpus/
β
βββ datasets/
β βββ scriptures/
β β βββ K1_original/
β β βββ K1_processed/
β β βββ K2_original/
β β βββ K2_processed/
β β βββ HF2_original/
β β βββ HF2_processed/
β β βββ HF3_original/ (GH1 same)
β β βββ HF3_processed/
β β βββ GH2_original/
β β βββ GH2_processed/
β β βββ GH3_original/
β β βββ GH3_processed/
β β
β βββ qna/
β β βββ HF1_original/
β β βββ HF1_processed/
β β βββ K3_original/
β β βββ K3_processed/
β β βββ clustered_qna/
β β βββ master_qna/ (future)
β β
β βββ metadata/
β βββ data_sources.csv
β βββ LICENSES.md
β
βββ docs/
β βββ DATASET_ARCHITECTURE.md
β βββ SCRIPT_DOCUMENTATION.md
β βββ USE_CASES.md
β βββ RAG_AND_LLMS_GUIDE.md
β
βββ scripts/ # processing pipeline
|
βββ LICENSE
βββ README.md
βββ CONTRIBUTING.md
This repository includes processed outputs only, not original datasets.
We provide:
β Canonicalized verse datasets + Unified Master Verse File
β Canonicalized modern Q&A datasets
β Clustered & deduplicated Q&A versions
β Commentary-augmented verse structures (GH3 processed)
β Metadata linking sources and licenses
We do NOT redistribute original datasets.
Instead, we provide:
- Links to original repositories
- Licensing information
- Processing methodology
See:
datasets/metadata/data_sources.csv
| Code | Source | Description |
|---|---|---|
| K1 | Kaggle | Sanskrit + English meanings |
| K2 | Kaggle | Sanskrit + Transliteration + Hindi + English |
| HF2 | HuggingFace | Fully aligned SanskritβHindiβEnglish verses |
| HF3 / GH1 | GitHub | Modular dataset (chapter, verse, translation, commentaries) |
| GH2 | Github | Chapter-wise structured JSON |
| GH3 | GitHub | Multi-author commentary dataset (extensive) |
All these are processed into canonical JSONL formats ideal for LLM work.
datasets/scriptures/master_verses/master_verses.jsonl
This file is the fully merged, normalized, author-aligned, multi-source canonical verse dataset generated from:
K1, K2, HF2, GH2, GH3
Each verse contains:
- Stable verse_id
- Sanskrit
- Transliteration (best-available)
- All translations (multi-author, multi-language)
- All commentaries (multi-author)
- Source provenance
| Code | Source | Description |
|---|---|---|
| HF1 | HuggingFace | Verse-wise Q&A (Hindi + English) |
| K3 | Kaggle - Modern Life Q&A | Persona-based, verse-aligned, deep reflections |
| Clustered QnA | Our processing | Semantic deduplication of 19,902 Q&A pairs |
These datasets form the backbone of:
- semantic search
- βDid you mean this?β suggestions
- user question enrichment
- training specialized Gita philosophical models
Most Bhagavad Gita datasets online are:
- fragmented
- inconsistent
- poorly structured
- non-machine friendly
- mixing commentary formats
- lacking verse alignment
- not suitable for AI training
This project:
β normalizes structures
β fixes verse alignment
β standardizes Q&A format
β deduplicates semantic duplicates using embeddings
β creates AI-ready JSONL formats
β adds metadata & provenance tracking
- Scripture-level retrieval
- Commentary-aware retrieval
- Modern-question similarity retrieval
- Sanskrit/Hindi/English cross-language retrieval
- SFT models on pure Q&A
- Commentary-aware LLM
- Persona-based (18 personas from K3) βChapter-specialistβ models
- Verse-expansion generator
- βAsk Krishnaβ chatbot
- Dharma-based life guidance assistant
- Leadership lessons explainer
- Spiritual journaling & reflection app
- Anxiety/depression support (within ethical limits)
- Quiz generators
- Flashcards
- Sanskrit learning helpers
- Commentary comparison tools
- Cross-dataset variance study
- Commentary lineage analysis
- Semantic clustering of verses
- Tropes & theme modeling
This suite is arguably the most complete open Bhagavad Gita machine-learning dataset collection currently available.
The unified design enables:
- multi-dataset triangulation
- reduction of hallucination
- citation-ready canonical format
- stable IDs for verse, Q&A, commentary
- future expansion to Upanishads, Vedas, Ramayana, Mahabharata
See:
docs/USE_CASES.md
docs/RAG_AND_LLMS_GUIDE.md
The processed datasets follow a strict canonical schema.
Example canonical Q&A format:
{
"question": "...",
"answer": "...",
"chapter": 4,
"verse": "4.7",
"source": "HF1",
"qid": "HF1-en-4:7-032"
}
Example canonical verse format:
{
"chapter": 2,
"verse": 47,
"sanskrit": "...",
"english": "...",
"hindi": "...",
"commentaries": [...],
"sources": ["GH3","HF2"]
}
Full architecture:
docs/DATASET_ARCHITECTURE.md
All transformations are performed using reproducible scripts located in:
scripts/
Major processing steps:
- canonicalization
- normalization
- clustering (semantic deduplication)
- commentary extraction
- verse metadata alignment
Full documentation:
docs/SCRIPT_DOCUMENTATION.md
We apply semantic clustering using:
- SentenceTransformers embeddings
- Cosine similarity
- Threshold-based grouping
This reduces Q&A data by ~50% while preserving meaning.
Outputs include:
hf1_qa_clustered.jsonl
k3_qa_clustered.jsonl
This repository is released under:
Creative Commons Attribution 4.0 International (CC BY 4.0)
You may:
β Share
β Adapt
β Use commercially
Under the requirement:
- Provide attribution to this repository
If you use this dataset in research or products:
Please cite:
GitaVerse-Open-Corpus (2025), Animesh Shaw & Tattva Chronicles, https://github.com/Tattva-Chronicles/GitaVerse-Open-Corpus
This project builds upon publicly available datasets including:
- Kaggle Bhagavad Gita datasets (K1, K2)
- HuggingFace datasets (HF1, HF2, HF3)
- GitHub repositories (GH1, GH2, GH3)
- DharmicData collections
We claim no ownership over original texts.
This repository contains only processed outputs, not raw sources.
We welcome:
- dataset contributions
- new commentary mappings
- language additions
- tooling improvements
- documentation enhancements
See:
CONTRIBUTING.md
This is the first open dataset that:
β combines scripture + commentary + modern Q&A
β standardizes formats across 10+ sources
β deduplicates semantically
β is designed explicitly for AI systems
β provides documented processing scripts
β prioritizes openness and attribution
This project aims to:
- preserve ancient knowledge
- enable meaningful AI applications
- support research and education
- promote responsible spiritual AI
If this helps you, please β star the repository and Support the Initiative!
π Hari Om
π BibTeX
@dataset{gitaverse_2025,
title = {GitaVerse-Open-Corpus},
author = {Shaw, Animesh and Contributors},
year = {2025},
publisher = {GitHub},
url = {https://github.com/Tattva-Chronicles/GitaVerse-Open-Corpus},
license = {CC-BY-4.0},
note = {Open structured corpus for AI and research based on the Bhagavad Gita}
}
π APA
Shaw, A., & Contributors. (2025). GitaVerse-Open-Corpus [Dataset]. GitHub.
https://github.com/Tattva-Chronicles/GitaVerse-Open-Corpus.
π° MLA
Shaw, Animesh, and Contributors. "GitaVerse-Open-Corpus." 2025. GitHub,
https://github.com/Tattva-Chronicles/GitaVerse-Open-Corpus.
