The image enhancement pipeline at Uber Eats begins with an 'image understanding and routing agent,' which leverages multimodality by asking a Large Language Model (LLM) to describe the photo's content. This understanding informs the routing logic, determining whether an image should be enhanced or skipped. If an image is routed for enhancement, a 'reflect' agent evaluates the edited output against predefined metrics, while a 'synthesize' agent continuously refines prompts based on feedback.
A QA agent then conducts a thorough review, comparing the original, edited, and an 'expert reference' image to identify any issues. If the QA agent detects problems, the system returns to the reflect agent for further prompt refinement or to the routing agent for re-evaluation, initiating a closed-loop feedback mechanism. This iterative process allows for self-correction and continuous learning, ensuring that the AI agents improve over time.
This closed-loop system, with its reflect and synthesize sub-agents, automates prompt optimization without human intervention, ensuring the system remains adaptive and self-improving. The process ensures that image enhancements are precise, relevant, and aligned with the platform's quality standards, minimizing the need for manual oversight.
Ultimately, the output is assessed for 'publish-readiness' through a series of QA gates, which include evaluating visual quality and checking for reward hacking. This comprehensive workflow ensures that only high-quality, authentic images are deployed, maintaining user trust and platform integrity.