The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
license: mit task_categories: - text-retrieval - question-answering language: - en tags: - history - india - semantic-search - rag - tutorial size_categories: - n<1K
Indian History Dataset for Semantic Search 🇮🇳
Dataset Summary
This dataset contains 15 detailed Markdown (.md) documents covering major eras, empires, and events in the history of India. It was specifically
generated to serve as a practice dataset for learning Semantic Search, Vector Embeddings, and Retrieval-Augmented Generation (RAG).
Each document is structured into distinct thematic sections (Overview, Key Events, and Legacy) to allow practitioners to experiment with text chunking
strategies (such as MarkdownHeaderTextSplitter or RecursiveCharacterTextSplitter).
Supported Tasks
- Semantic Search: Practice generating embeddings and retrieving the most semantically relevant historical chunks based on user queries.
- Retrieval-Augmented Generation (RAG): Use the retrieved chunks as context for an LLM to answer historical questions accurately.
- Text Chunking Practice: Experiment with different chunk sizes and overlaps using the consistent Markdown headers (
#,##).
Dataset Structure
The dataset consists of 15 plaintext Markdown files. Average document length: ~150-200 words.
Files included:
01_indus_valley.md02_vedic_period.md03_maurya_empire.md04_gupta_empire.md05_delhi_sultanate.md06_mughal_empire.md07_maratha_empire.md08_east_india_company.md09_rebellion_of_1857.md10_indian_national_congress.md11_mahatma_gandhi.md12_partition_and_independence.md13_integration_of_states.md14_constitution_of_india.md15_economic_liberalization.md
Example Use Case (Python/LangChain)
from langchain.text_splitter import MarkdownHeaderTextSplitter
headers_to_split_on = [
("#", "Title"),
("##", "Section")
]
markdown_splitter = MarkdownHeaderTextSplitter(headers_to_split_on=headers_to_split_on)
# Pass the content of the markdown files here to chunk them perfectly by section!
### Step 3: Save
Scroll down to the bottom of the page and click **"Commit new file"**.
As soon as you commit, Hugging Face will read the `---` tags at the top and automatically add the tags (like `text-retrieval`, `english`) to your
dataset's page, and the formatted text will appear beautifully on the main landing page!
- Downloads last month
- 32