Problem
Avito checks more than 20 million listings a day. More than 95% of checks are automated, but the rest goes to several hundred moderators, and the flow is hundreds of thousands of listings a day. Manual review scales poorly. Policies run up to 200 pages that nobody can hold in their head, and a new moderator needs about six months to reach stable quality.
Example from the article: some checks cannot use external LLMs because of personal data and legal risks, and for new rules it is not always possible to collect good labels quickly.
Solution in brief
The team turns the policy into a compact prompt, tunes it with an adapted GEPA optimizer and, only for hard violations, fine-tunes a small model with LoRA. The model answers with one token (True or False) on self-hosted vLLM. Classical ML models choose the prompt, GuardRails filters attacks, and a human rechecks suspicious or low-confidence cases.
Questions this case answers
- How to automate policy-based content review with an LLM when the policy is long, changes often and the data cannot go to external APIs
- How to build a production decision pipeline where a language model handles the suspicious part of a flow and humans handle uncertain and adversarial cases
- How to move listing moderation from human review of a 200-page policy to an LLM without losing review quality?
- How to turn a policy written for humans into a compact prompt and keep tuning it algorithmically?
Tools and methods
- GEPA (adapted) — automatic prompt search.
- LoRA fine-tuning — Avision-8B for hard violations.
- Qwen3.5-35B-A3B — default out-of-the-box model.
- vLLM with prefix caching — serving, logits, cached policy prefix.
- GuardRails — screens inputs for prompt injection and jailbreaks.
- Classical ML models — flag suspected violations and pick the prompt.
- LLM Admin panel — prompts and experiments for non-technical staff.
Google or a one-time email code. No password.