QueryShield-1.5B is a fine-tuned version of Qwen2.5-1.5B-Instruct trained to rewrite raw, messy user queries into detailed, structured instruction prompts for downstream LLMs — across 5 languages and 30 professional domains.
Given a raw user question → outputs an expert-level optimized prompt telling a downstream LLM how to answer it.
What it does
Most LLMs perform significantly better when given structured, detailed prompts rather than raw user input. QueryShield sits between the user and the LLM — it takes the raw query and rewrites it into a high-quality instruction prompt automatically.
User: "menga diabetni boshqarish uchun ovqat rejimi ayting"
↓ QueryShield
Optimized: "As a Medical Expert, the user is asking in Uzbek about dietary
management for diabetes with high blood sugar. Provide a structured
3-tier response covering: diabetes basics, dietary assessment, and
an actionable meal plan. Respond entirely in Uzbek. Avoid jargon..."
↓ Downstream LLM
Final answer in Uzbek ✅