← Project Index

Thesis Proposal

docs/01-thesis-proposal.md

Thesis Proposal — Formulated Idea

Status: draft v1 for supervisor discussion Author: Mohammed Alozaibi University of Aden — Faculty of Computer and Information Technology Date: 2026-08-22


1. Working Title

Primary (EN):

Enhancing Arabic E-Commerce Product Search through LLM-Based Query Expansion over a Hybrid MySQL–Elasticsearch Retrieval Architecture

Alternative titles (pick per supervisor preference):

  1. Bridging the Lexical and Semantic Gap in Arabic Product Search: A Hybrid Retrieval Framework Combining BM25, Dense Vectors, and LLM Query Expansion
  2. A Comparative Study of LLM Strategies for Arabic E-Commerce Query Understanding in Hybrid Search Systems
  3. Shorter / punchier: Smart Arabic Product Search: LLM-Powered Query Expansion on a Hybrid Search Engine

Arabic title (if your university requires it):

تحسين البحث عن المنتجات في المتاجر الإلكترونية العربية باستخدام توسيع الاستعلامات بنماذج اللغة الكبيرة ضمن بنية بحث هجينة تجمع بين MySQL و Elasticsearch


2. One-Paragraph Elevator Pitch

Arabic shoppers type short queries that rarely match how products are described online. A search for ثلاجة fails when the catalog says براد (dialect synonym) or ثلاجه (orthographic variant), and searching أرنب misses products listed as ارنب. This thesis designs, implements, and rigorously evaluates an e-commerce search pipeline that combines (a) a hybrid retrieval architecture — MySQL as the transactional source of truth, Elasticsearch as a fast searchable projection supporting both lexical BM25 and dense vector search with Arabic-aware normalization — and (b) LLM-based query expansion, where one or more large language models generate synonyms, dialectal variants, and rewrites of the user's query before retrieval. The work measures how much each layer improves retrieval quality (NDCG/MRR/Recall) and what latency/cost it adds, comparing several open and commercial LLMs.


3. Problem Statement

E-commerce search is the primary product-discovery tool; its failure directly costs revenue. For Arabic this failure rate is much higher than for English because:

# Challenge Example
1 Orthographic variability ثلاجة / ثلاجه ، أرنب / ارنب ، شاشه / شاشة
2 Diacritics & tatweel مُدرَّسة vs مدرسة، ووووصلات stretching
3 Morphological richness والثلاجاتِ = و + ال + ثلاجة + ات (conjunction+definite article+plural)
4 Dialect ↔︎ MSA vocabulary gap براد (Egyptian/Gulf) vs ثلاجة (MSA); موبايل vs هاتف vs جوال
5 Brand transliteration variants سامسونج / سامسونغ / Samsung ; ايفون / آيفون / iPhone
6 Mixed-script queries "ايفون 15 pro max" mixes Arabic + Latin + digits
7 No standardized Arabic e-commerce benchmark ESCI (Amazon) covers EN/JA/ES only — no Arabic

Classical keyword engines handle some of #1–#3 via normalization/stemming but cannot handle #4–#6 semantics; dense embeddings handle paraphrase but are weak on exact SKUs, rare brands, and codes. Neither solves Arabic alone. Meanwhile, industrial evidence (Taobao, Amazon, Walmart — see literature review) shows LLM query rewriting/expansion closes exactly this gap for other languages — nobody has published a rigorous study for Arabic product search.

The gap this thesis fills

  1. No public benchmark for Arabic e-commerce product search relevance.
  2. No systematic evaluation of LLM query-expansion strategies (synonym generation vs. rewrite vs. hypothetical documents) in Arabic.
  3. No reference architecture integrating relational data (MySQL), lexical+dense hybrid retrieval (Elasticsearch), and LLM expansion under realistic latency constraints for Arabic.

4. Research Questions

RQ5 is what turns this from an engineering project into research — keep it if time allows.


5. Hypotheses


6. Proposed Contributions

  1. An Arabic e-commerce search benchmark: either translate/adapt the ESCI dataset into Arabic, extend the emerging arabic-ecom-search-bench, or build a new annotated dataset (queries + products + relevance grades) — publishable artifact in itself.
  2. An end-to-end reference implementation (open source): MySQL → Elasticsearch sync, Arabic analyzer configuration, hybrid retriever, pluggable LLM-expansion service.
  3. The first systematic empirical comparison of LLMs for Arabic query expansion across strategies, models, and query types.
  4. Practical guidelines: which combination to deploy given a latency/cost budget.

7. Scope & Delimitations

In scope

Out of scope (mention explicitly to survive the defense)


8. Risks & Mitigations

Risk Mitigation
No Arabic e-commerce dataset exists Budget ~1 month to build one; fallback: machine-translate ESCI + human spot-check; or scrape permitted public catalogs (e.g., open data initiatives)
LLM hallucinated synonyms hurt precision Constrain expansions with catalog-grounded prompting (only suggest terms that appear in product corpus), validate against corpus like CSQE paper does
Reviewer says "engineering, not science" Lead with RQ2/RQ5 comparative studies + statistical significance tests (paired t-test / Friedman on per-query metrics)
Elasticsearch license cost Use the free basic tier (kNN included) or OpenSearch fork; document equivalence

9. Suggested Timeline (12 months)

Month Milestone
1–2 Literature deep-read; finalize RQs; proposal defense
2–3 Dataset acquisition/construction + annotation guidelines (adapt WANDS/ESCI methodology)
3–4 Baseline systems: MySQL-LIKE, BM25-only, BM25+Arabic analyzer tuning
4–6 Hybrid retrieval (dense vectors, RRF fusion); embedding model selection for Arabic
6–8 LLM expansion service; run model × strategy grid; fine-tune small model if feasible
8–9 Full evaluation matrix, significance testing, ablations (expansion on/off, fusion on/off)
9–10 Latency/cost experiments; caching design
10–11 Writing; error analysis chapter
12 Polish, defend

10. Why This Will Pass (Novelty Argument)