Problem
Avito search requires every query word to appear in a listing's title and description. Sellers often write two words and leave the rest to the photo, so a query such as "armchair views of London" misses a bean bag chair whose picture shows London landmarks. The platform has 230+ million active listings and 20 million create and update events per day, so synchronous image processing in the indexing path would overload it.
Example from the article: a listing with only the words "bean bag chair" and a London print on the photo should be found for the query "armchair views of London".
Solution in brief
A vision-language model writes a text description of each listing's photos, and the description goes into the search index as an extra text column. Generation runs asynchronously from an isolated queue on GPUs, served by vLLM, with LoRA adapters adapting the model to product categories.
Questions this case answers
- How to make a keyword search index match queries against content that exists only in images, when full-quorum text matching returns nothing
- How to add slow, GPU-heavy enrichment to a high-volume indexing pipeline without affecting the latency of the main flow
- How to make search find listings whose text does not contain the query words but whose photos match it?
- How to generate image descriptions for hundreds of millions of listings without slowing down the main search pipeline?
Tools and methods
- Qwen2.5-VL-7B-Instruct — base vision-language model, fine-tuned into Avito's A-Vision
- LoRA adapters — cheap per-category adaptation of the base model
- vLLM — inference server with paged attention, continuous batching and prefix caching
- QaaS (Queue as a Service) — isolated queue between search and GPU workers
- Redis — short-lived store (with TTL) for generated descriptions
- Sphinx — search engine whose index receives the description column
- BERTScore — offline metric comparing generated and reference descriptions
Google or a one-time email code. No password.