NavHash's picture
Update README.md
6203454 verified
|
Raw History Blame Contribute Delete
3.72 kB
metadata
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

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

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.