LLM-based Semantic Search for Conversational Queries in E-commerce
Emad Siddiqui, Venkatesh Terikuti, Xuan Lu
TL;DR
This work tackles the challenge of conversational search in e-commerce by integrating LLM-generated synthetic data to fine-tune a domain-specific embedding that captures semantic product relationships, with a separate generative model that converts natural-language queries into structured constraints. The framework combines similarity-based retrieval with constraint-based filtering, implemented via FAISS indexing and a Flan-T5-small-based filter extractor, to improve precision and recall on a real-world catalog. Evaluations on a held-out test set derived from the Amazon ESCI data show meaningful gains over diverse baselines, and the authors release a large synthetic-query dataset and a constrained evaluation benchmark to support future research. The approach demonstrates practical impact for scalable, constraint-aware semantic search in e-commerce, and provides a flexible architecture that can extend across categories and catalogs with adjustable threshold mappings for qualitative constraints.
Abstract
Conversational user queries are increasingly challenging traditional e-commerce platforms, whose search systems are typically optimized for keyword-based queries. We present an LLM-based semantic search framework that effectively captures user intent from conversational queries by combining domain-specific embeddings with structured filters. To address the challenge of limited labeled data, we generate synthetic data using LLMs to guide the fine-tuning of two models: an embedding model that positions semantically similar products close together in the representation space, and a generative model for converting natural language queries into structured constraints. By combining similarity-based retrieval with constraint-based filtering, our framework achieves strong precision and recall across various settings compared to baseline approaches on a real-world dataset.
