Users often write vague prompts. Rephraser loops use a lightweight model to rephrase the user's intent into a structured, descriptive prompt, check if the user agrees, and then route the refined instructions to the main model, significantly improving success rates.
expanded = call_llm(model="gpt-3.5-turbo", prompt="Expand query 'make logo' into a detailed graphic brief listing style, subject, and color scheme.")
user_approved = ask_user("Is this what you want? " + expanded)
if user_approved: call_llm(model="midjourney-agent", prompt=expanded)
Claude is highly descriptive and makes an excellent query expander, generating detailed templates for downstream tasks.