Automatic Construction of Persian E-Commerce Dialogue Datasets for Conversational Product Search
Organizations: Iran University of Science and Technology, School of Computer Engineering, Tehran, Iran
Abstract
Conversational product search lets users find products through a multi-turn dialogue instead of a single keyword query, but Persian lacks the large conversational datasets needed to train and evaluate such systems; existing Persian e-commerce dialogue resources cover few categories and small catalogs. We present a framework that builds such a dataset automatically from a real e-commerce catalog and release the resulting dataset. The framework crawls 12,926 products in seven categories of the Digikala marketplace, groups them into 170 semantically coherent clusters, and selects the question the assistant asks at every turn with the Regularized Partition Balance (RPB) score. The RPB score accounts for feature coverage, the probability that the user can answer and the number of values, and generalizes entropy-based question selection. An LLM then verbalizes each question plan into a natural Persian dialogue. In a simulation on the full catalog, the RPB score needs 0.11 fewer turns than the strongest entropy baseline when the difficulty of answering differs between features, and is practically equivalent to it when it does not. Using only a free LLM API, we generated 1,000 requirement-driven dialogues covering all 170 clusters, with turn-level feature annotations; automatic checks and an LLM judge confirm their consistency with the catalog, while their realism is lower than that of the first, GPT-4o-generated version. Code and data are publicly available.
Figures & tables
| Category | Products |
|---|---|
| Smartphones | 1,555 |
| Laptops | 1,715 |
| Stationery | 1,998 |
| Home decoration | 2,000 |
| Wearable gadgets | 1,878 |
| Carpets | 1,781 |
| Metric | Random | K-Means |
|---|---|---|
| Clusters | 170 | 170 |
| Average cluster size | 76.0 | 76.0 |
| Key similarity (mean) | 0.070 | 0.523 |
| Key similarity (std) | 0.007 | 0.217 |
| Key coverage (mean) | 0.061 | 0.363 |
| Key coverage (std) | 0.007 | 0.227 |
| “Don’t know” rate | Strategy | Success (%) | Avg. turns | Success (%) | Avg. turns |
|---|---|---|---|---|---|
| Assumption 1 | Random | 72.7 | 5.14 | 87.3 | 3.04 |
| Entropy, default group | 90.1 | 2.93 | 96.2 | 1.76 | |
| Entropy, real values | 83.9 | 3.86 | 93.9 | 2.20 | |
| RPB | 89.6 | 2.83 | 96.2 | 1.52 | |
| Assumption 2 | Random | 75.9 | 4.83 | 88.6 | 2.87 |
| Versus | Turns | Success (pp) | Turns | Success (pp) |
|---|---|---|---|---|
| Assumption 1 | ||||
| Entropy (default group) | [ , ] | [ , ] | [ , ] | [ , ] |
| Assumption 2 | ||||
| Entropy (default group) | [ , ] | [ , ] | [ , ] | [ , ] |
| Criterion | Gemini 3.1 FL | Gemini 3.5 FL | Gemma 4 |
|---|---|---|---|
| Fluency | 9.80 | 9.42 | 9.75 |
| Accuracy | 8.82 | 8.42 | 8.73 |
| Realism | 8.08 | 6.98 | 7.79 |
| Coverage | 8.58 | 8.24 | 8.50 |
| Helpfulness | 8.84 | 8.24 | 8.75 |
| Overall | 8.70 | 8.16 | 8.56 |
| Setting | Questions | Overall | Accuracy | Coverage | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 3.1 FL | 3.5 FL | Gemma 4 | 3.1 FL | 3.5 FL | Gemma 4 | 3.1 FL | 3.5 FL | Gemma 4 | ||
| SPS + RPB + FA | 3.3 | 8.50 | 8.20 | 8.40 | 8.50 | 8.50 | 8.20 | 8.30 | 8.00 | 8.20 |
| SPS + Random | 5 | 8.90 | 8.50 | 8.50 | 9.00 | 8.70 | 8.75 | 9.10 | 8.70 | 9.00 |
| RTS + RPB + FA | 3.3 | 8.60 | 8.30 | 8.60 | 9.00 | 8.50 | 8.90 | 8.40 | 8.20 | 8.30 |
| RTS + Random | 5 | 8.60 | 7.90 | 8.70 | 8.80 | 8.20 | 9.10 | 8.80 | 8.50 | 8.90 |
| DPS + RPB + FA | 3.3 | 8.90 | 7.90 | 8.60 | 8.80 | 8.20 | 8.70 | 8.30 | 7.80 | 8.20 |
| Criterion | Description and examples |
|---|---|
| Fluency | Naturalness, smoothness, grammatical correctness. |
| High: sentences flow well, no awkward phrasing. | |
| Low: broken grammar, repetitive wording. | |
| Accuracy | Consistency with the product information. |
| High: features and specifications match the product. | |
| Low: wrong specifications or price, hallucinated features. |
| Dialogues | 1,000 |
| Clusters / categories covered | 170 / 7 |
| Messages (total) | 12,540 |
| Messages per dialogue (mean) | 12.5 |
| Words per message (mean) | 16.3 |
| Planned questions per dialogue (mean) | 3.75 |
| “Don’t know” answers among planned questions | 17.6% |
| Criterion | First version | Released version |
|---|---|---|
| (GPT-4o) | (Gemini) | |
| Fluency | 9.81 | 9.49 |
| Accuracy | 6.85 | 7.87 |
| Realism | 8.27 | 7.18 |
| Coverage | 8.58 | 8.21 |
| Helpfulness | 8.12 | 8.11 |
| Dataset | Language | Construction | Dialogues | Categories | Catalog | Automatic | Public |
|---|---|---|---|---|---|---|---|
| MG-ShopDial ( Bernard and Balog, 2023 ) | English | crowd-sourced | 64 | – | curated | no | yes |
| Wizard of Shopping ( Li et al., 2025 ) | English | GPT-4, decision-tree plan | 3,600 | 3 | 236k (Amazon) | yes | no |
| PerSHOP ( Mahmoudi and Faili, 2024 ) | Persian | crowd-sourced, human–human | 1,061 | 14 | 750 | no | yes |
| Ours | Persian | free Gemini LLMs, RPB plan | 1,000 | 7 (170 clusters) | 12,926 (Digikala) | yes | yes |
Conversational Search
Conversational search uses dialogue to interpret evolving information needs, retrieve relevant material, and help people refine or verify results.
See all 25 papers