fatymahaly commited on
Commit
1ebebd3
·
verified ·
1 Parent(s): 8d738c4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: mit
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: mit
3
+ language:
4
+ - ur
5
+ tags:
6
+ - rag
7
+ - urdu
8
+ - question-answering
9
+ - vector-database
10
+ - text-corpus
11
+ size_category: n<1K
12
  ---
13
+
14
+ # Dataset Card for Urdu RAG Knowledge Base
15
+
16
+ ## Dataset Overview
17
+
18
+ This dataset is designed specifically to bootstrap and evaluate Retrieval-Augmented Generation (RAG) applications, search systems, and semantic retrieval pipelines using the **Urdu language**. It contains 185 clean, structured, and informative text chunks covering a wide array of domains.
19
+
20
+ - **Language:** Urdu (ur)
21
+ - **Script:** Nastaliq / Arabic script (Unicode UTF-8)
22
+ - **Total Rows:** 185 chunks
23
+ - **Format:** CSV (`id`, `title`, `content`)
24
+ - **Primary Use Case:** Vector embedding ingestion, semantic search, retrieval testing, and knowledge-base seeding for Urdu LLM applications.
25
+
26
+ ## Dataset Structure
27
+
28
+ The dataset follows a tabular CSV schema with three primary columns:
29
+
30
+ | Column Name | Data Type | Description |
31
+ | :--- | :--- | :--- |
32
+ | `id` | Integer | Unique identifier for each text chunk (1 to 185). |
33
+ | `title` | String (Urdu) | The subject heading or topic name of the text chunk. |
34
+ | `content` | String (Urdu) | The core informational paragraph or passage used for vector embedding and context retrieval. |
35
+
36
+ ## Content Domains Covered
37
+
38
+ The 185 entries span a balanced mix of topics to ensure diverse semantic representation in vector databases:
39
+ 1. **Geography & Provinces:** Detailed entries on Punjab, Sindh, Khyber Pakhtunkhwa, Balochistan, Gilgit-Baltistan, Azad Kashmir, and major cities (Lahore, Karachi, Peshawar, Quetta, Islamabad, Multan, Faisalabad, etc.).
40
+ 2. **History & National Heritage:** Landmark historical events, archaeological sites (Mohenjo-daro, Harappa, Taxila, Rohtas Fort), and the Pakistan Movement.
41
+ 3. **Culture, Art & Literature:** Prominent Urdu poets and writers (Mir, Ghalib, Iqbal, Faiz, Manto), traditional attire, regional festivals, music (Sufi/Qawwali), and crafts.
42
+ 4. **Science, Technology & RAG Development:** Modern technical articles covering IT outsourcing, AI, Natural Language Processing (NLP), vector embeddings, RAG architectures, and programming.
43
+ 5. **Economy, Agriculture & Industry:** Key economic drivers, textile sectors, exports (rice, mangoes, sports goods, surgical instruments), CPEC, and energy projects.
44
+ 6. **Sports & Achievements:** National sports, cricket world cups, squash legends (Jahangir Khan, Jansher Khan), and athletics (Arshad Nadeem).
45
+
46
+ ## How to Load and Use
47
+
48
+ You can easily ingest this dataset into your Python-based RAG pipeline (using Pandas, LangChain, or LlamaIndex) with the following snippet:
49
+
50
+ ```python
51
+ import pandas as pd
52
+
53
+ # Load the dataset
54
+ df = pd.read_csv("urdu_rag_dataset.csv")
55
+
56
+ # Preview the first few rows
57
+ print(df.head())
58
+
59
+ # Iterate through chunks to create documents for a vector store
60
+ from langchain.schema import Document
61
+
62
+ documents = [
63
+ Document(page_content=row['content'], metadata={"id": row['id'], "title": row['title']})
64
+ for _, row in df.iterrows()
65
+ ]
66
+
67
+ print(f"Loaded {len(documents)} documents for RAG vectorization.")