OK, Lamoda, what should I wear to a party? How we trained an LLM with AI-stylist skills

Artem Nigoyan21 May 2026

Problem

A fashion retailer's search matches categories and attributes well ("denim shorts") but not requests that need fashion context: a barbiecore look, a celebrity's outfit, a gender-reveal party. Such queries return nothing. A ready-made LLM tested by the team invented product links and returned items that did not match their descriptions. Ready-made models also carry legal, availability and per-token cost risks.

Example from the article: a proprietary model asked for a Jason Statham look from Lamoda items gave one working link, and that product did not match its description.

Solution in brief

Lamoda trained its own open-source LLM as a stylist. It first translated complex requests into search queries (Magic Search), then became a full dialogue agent that calls a separate retrieval model as a tool. Training data was mostly synthetic and scored by an LLM judge. A 14B model scored on par with GPT-5, and the production model was cut to 8B.

Questions this case answers
  • How to serve vague, context-heavy requests on top of an attribute-based search engine that returns empty results for them
  • How to train a small domain LLM on synthetic dialogues when no public training data exists
  • How to answer fuzzy fashion requests like «a look for a gender-reveal party» when the catalog search returns nothing
  • How to train a small in-house LLM that turns a customer's request into product search queries and chats with the customer

Tools and methods

  • Qwen3-family models (4B to 14B), LoRA and full fine-tuning — the stylist LLM, about 11 thousand examples
  • Synthetic personas and dialogues — training data from teacher LLMs
  • GPT-4o as judge (0 to 5) — compares checkpoints and prompts
  • Tool call to a retrieval model (get_retrieval) — the LLM fetches real SKUs
  • Two-tower retriever with a CLIP-based text encoder — matches queries to products by image and text
Continue reading — it's free

Google or a one-time email code. No password.