Problem
Profi.ru is a services marketplace. Its search turns a short phrase such as "English lessons" into a catalog service ("English language tutor"), finds a specific specialist, and recognizes services the platform does not provide. It runs on Elasticsearch with query normalization, scoring and caching. Once people got used to LLMs, they started describing the whole task in their own words, with context and constraints, and such text does not fit a short service name. The share of queries the search could not match used to be below 1% and was growing.
Example from the article: instead of "room renovation" a client writes "I want to put a room at the dacha in order, the walls are crooked, the floor creaks, and something seems wrong with the wiring too".
Solution in brief
Keep Elasticsearch and its scoring as the main search. Call an LLM only when the regular search finds no confident match. The model splits the free text into service attributes (action, object, extras), forms a hypothesis about the service, and sends it back to the regular search to be checked and ranked.
Questions this case answers
- How to handle free-form, descriptive queries in a rule-based catalog search without replacing the proven ranking, while keeping latency and predictability
- How to map a user's own wording onto a fixed catalog of items when exact and fuzzy text matching no longer finds a confident match
- How to make a service-catalog search understand long free-text requests without rewriting the existing Elasticsearch search?
- How to add an LLM to production search without losing its speed, predictability and ranking rules?
Tools and methods
- Elasticsearch — main search over the service catalog, with query normalization and scoring
- LLM (external public model) — turns free-text descriptions into service attributes and a service hypothesis
- Redis — cache for frequent short queries
- Zabbix, Metabase, logs, product analytics — monitoring of latency, errors and clicks by result position
Google or a one-time email code. No password.