File size: 3,715 Bytes
1c07fe7
6203454
 
 
 
 
 
 
 
 
 
 
 
 
 
1c07fe7
6203454
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
language:
  - fa
task_categories:
  - question-answering
  - text-retrieval
tags:
  - rag
  - embeddings
  - e-commerce
  - digikala
  - mobile-phones
  - persian
size_categories:
  - 10K<n<100K
---

# Digikala Mobile Phones Dataset for RAG

This repository contains a comprehensive, processed dataset of mobile phone specifications and details scraped from Digikala. It is specifically designed to build and evaluate **Retrieval-Augmented Generation (RAG)** systems, semantic search engines, and AI-powered shopping assistants in Persian (Farsi).

## 🗂 Dataset Structure (Configurations)

This dataset is divided into two distinct configurations:

### 1. `markdowns` (Raw Data)

Contains the raw, consolidated specifications of each mobile phone formatted in clean Markdown.

- **Use Case:** Ideal for custom chunking strategies, experimentation with different embedding models, or advanced preprocessing pipelines.
- **Features:** `product_id`, `markdown_text`

### 2. `embeddings` (Ready-to-Use Vector Data)

Contains pre-processed text chunks with high-quality embeddings generated using **OpenAI's `text-embedding-3-large`** model (3072 dimensions).

- **Use Case:** Plug-and-play data ready for vector databases such as ChromaDB, Qdrant, Pinecone, or Weaviate.
- **Features:** `text`, `embedding`, `product_id`, `product_title`, `brand`, `section`

##  How to Use

### Load the Embeddings

```python
from datasets import load_dataset

ds_embeddings = load_dataset(
    "NavHash/digikala-mobile-expert-data",
    name="embeddings",
    split="train"
)

print(ds_embeddings[0])
```

### Load the Raw Markdowns

```python
from datasets import load_dataset

ds_markdowns = load_dataset(
    "NavHash/digikala-mobile-expert-data",
    name="markdowns",
    split="train"
)

print(ds_markdowns[0])
```

##  Dataset Features

### `markdowns`

| Feature | Type |
|----------|------|
| product_id | int64 |
| markdown_text | string |

### `embeddings`

| Feature | Type |
|----------|------|
| text | string |
| embedding | list[float] (3072 dimensions) |
| product_id | int64 |
| product_title | string |
| brand | string |
| section | string |

## 🛠 Collection Methodology

1. **Product Discovery:** Mobile phone product IDs were collected through Digikala's public search APIs.
2. **Data Extraction:** Detailed specifications, technical attributes, and product information were retrieved for each product.
3. **Data Cleaning:** Raw JSON responses were transformed into structured Markdown documents while preserving semantic hierarchy.
4. **Contextual Chunking:** Markdown sections were segmented into semantically meaningful chunks.
5. **Embedding Generation:** Chunks were embedded using OpenAI's `text-embedding-3-large` model.
6. **Dataset Packaging:** Both raw Markdown documents and pre-computed embeddings were published as separate dataset configurations.

##  Intended Applications

- Retrieval-Augmented Generation (RAG)
- Semantic Product Search
- AI Shopping Assistants
- Persian Information Retrieval
- Recommendation Systems
- E-commerce LLM Evaluation
- Embedding Benchmarking

##  Disclaimer

This dataset was created for research, educational, and experimental purposes. Product descriptions, specifications, trademarks, and brand names belong to Digikala and their respective owners.

##  License

This dataset is intended for educational, research, and non-commercial use. Users are responsible for ensuring compliance with Digikala's terms of service and applicable laws when using the data.

##  Acknowledgments

- Digikala for providing publicly accessible product information.
- Hugging Face Datasets ecosystem.
- OpenAI for the embedding model used in the vectorized configuration.