Imagine you’re hunting for the perfect Persian rug or a new smartphone. Instead of typing "green machine-made carpet 3x4" into a search bar and crossing your fingers, you’d probably prefer to just talk to someone who knows the inventory. "I need something for a kid's room," you say. They ask, "What color?" You say, "Green." They narrow it down.
This is Conversational Product Search (CPS). It’s intuitive, it’s human, and for languages like Persian, it’s currently very hard to build because we lack the massive datasets needed to train the AI. A new paper from researchers at the Iran University of Science and Technology aims to fix that by automating the entire process of building these datasets from scratch.
TL;DR
The researchers developed a framework that automatically builds high-quality Persian conversational datasets by "crawling" real e-commerce catalogs and using a clever new scoring system (RPB) to plan logical, human-like questions. By combining this logic with Large Language Models (LLMs) to handle the actual "chatting," they’ve created a reproducible way to generate thousands of dialogues for low-resource languages at virtually no cost.
What Problem Does This Paper Address?
Building a chatbot that helps you shop isn't just about language; it's about strategy. The bot needs to know which questions will narrow down the search fastest without being annoying or asking things a human can't answer (like a specific technical serial number).
For the Persian language, there’s a "data desert." Existing datasets are either too small, cover too few categories, or don't reflect the messy reality of actual online stores—where some products have missing info and others have overly complex technical specs. This paper tackles the "data scarcity" bottleneck by creating a pipeline that turns a raw product catalog into a sophisticated training set for AI.
Methods
The authors built a six-stage pipeline to move from a website to a dialogue:
- Crawling: They pulled data for nearly 13,000 products across seven categories from Digikala, Iran’s largest e-commerce platform.
- Semantic Clustering: You shouldn't ask about "RAM" when someone is looking for a "bookshelf." They used machine learning (K-Means and MiniLM embeddings) to group products into 170 semantically coherent clusters so the conversation stays on topic.
- Question Planning (The "Brain"): This is the core innovation. They introduced the Regularized Partition Balance (RPB) score. While standard AI often uses "Entropy" (a measure of how much a question splits a group) to pick questions, RPB adds "common sense" filters:
- Coverage: Does this feature even exist for most products in this group?
- Answerability: Is a human likely to know the answer?
- Cardinality: Does the question have too many possible answers (making it confusing)?
- Contextual Augmentation: They tagged products with labels like "budget," "premium," or "popular choice" based on their neighbors in the catalog to help the AI make comparisons.
- Dialogue Generation: Finally, they fed the "plan" into an LLM (like Gemini or Gemma) to turn the logic into natural Persian prose.
- Checks & Release: They used automated scripts and "LLM judges" to ensure the conversations were accurate and consistent with the original catalog.
Datasets
The study introduces a new benchmark:
- Source: 12,926 products from Digikala.
- The Result: 1,000 "requirement-driven" Persian dialogues.
- Key Difference: Unlike previous datasets that might be hand-written or limited to one category, this one is grounded in a massive, multi-category real-world catalog and includes turn-level annotations (tags showing exactly which feature the bot is asking about at any given moment).
Key Insights and Ideas
- Math Needs a Reality Check: Pure information theory (Entropy) is great for puzzles, but bad for shopping. If a question splits a group perfectly in half but 90% of users don't know the answer, it’s a bad question. The RPB score is essentially "Entropy with a human filter."
- Plan-then-Verbalize: Instead of just asking an LLM to "pretend to be a salesman," the researchers found it's better to give the LLM a rigid logical plan ("Ask about color, then price, then brand") and let it handle the linguistic flair. This prevents the AI from hallucinating features that don't exist.
- Clustering is Crucial: By grouping products first, the system ensures that the "alternatives" the bot suggests are actually relevant. If you're looking at a specific gaming laptop, the bot won't suddenly suggest a basic office notebook just because they're both "computers."
Key Results
- Efficiency: In simulations, the RPB score was more efficient than standard methods, finding the target product in about 3.75 turns on average.
- Quality: LLM judges gave the generated dialogues a 9.5/10 for fluency and a 7.9/10 for accuracy.
- Requirement-Driven: In 88.7% of the dialogues, the "user" described their needs without naming the product upfront, proving the dataset is great for training systems that actually search rather than just retrieve.
Limitations and Future Work
While the framework is a huge leap for Persian NLP, the authors note a few areas for growth:
- The "Don't Know" Heuristic: Currently, the system guesses how often a user won't know an answer based on the feature type. Future versions could use data from real human interactions to refine this.
- Multi-valued Features: The current system struggles with features that have multiple values (like a phone that comes in both "Red" and "Blue").
- Human Evaluation: While LLM judges are fast, the authors suggest that a large-scale study with independent human annotators is the next logical step to confirm the "realism" of the chats.
Reference: Nafar, F., & Naderi, H. (2026). Automatic Construction of Persian E-Commerce Dialogue Datasets for Conversational Product Search. arXiv:2611.29356v1.
Summary updated