Building a local LLM pipeline as a judge for image curation

Learn to build a pipeline with a local LLM to automatically verify place photos, resolving common errors and improving the quality of your base

jueves, 9 de julio de 2026 • 3 min read • Q2BSTUDIO Team

Automate photo verification with local AI

In the digital age, automatic curation of visual content has become a critical challenge for applications that rely on accurate images, such as travel planners or geolocated recommendation systems. When an application needs to associate a real photograph with each place it recommends, any matching error can result in a negative user experience or, worse, misleading information. This problem, far from trivial, demands a hybrid architecture that combines response speed with semantic precision, especially when operating with millions of entries and limited computational resources.

An effective approach consists of adopting a two-layer pipeline inspired by the lambda architecture: a fast layer that handles real-time requests with approximate algorithms, and a slow layer that processes in batches using artificial intelligence models with visual reasoning capabilities. The fast layer resolves through name matching with open sources such as Wikidata or Wikipedia, but is prone to classic errors: a bar called Ozone may end up showing the photo of a historical figure if the name matches a famous entity. To correct these failures, the slow layer runs a local language and vision model, such as a 12B parameter LLM (e.g., Gemma3), which acts as a judge: it first classifies whether the place name corresponds to a photographable location and then verifies if the candidate image is actually that place. This process not only requires computing power —a consumer GPU like an RTX 3060 is sufficient— but also careful prompt design and a re-resolution logic with retries to avoid false positives.

The key lies in combining two specialized models: a small 3B parameter model to filter images that do not correspond to places (portraits, logos, maps) and a larger 12B model for identity verification, which needs real-world knowledge to distinguish between two similar churches. This separation of responsibilities optimizes performance: the small model quickly discards irrelevant images, while the large one focuses on doubtful cases. Additionally, the system implements a "negative cache" mechanism to record places without an available photo, avoiding repeated searches, and a "tripwire" system that stops the process upon an error and demands a global correction of the rule that caused it, not just the specific case.

The results are compelling: accuracy in image identification jumps from 36% to 65% for places with an available photo, and coverage of featured experiences goes from approximately half to three-quarters. Most interestingly, the main bottleneck is not the lack of images, but search errors due to accents, special characters, or compound names. This demonstrates that, in many cases, the solution does not require larger models but better data hygiene and more robust matching rules.

For companies looking to implement similar solutions, having a technology partner that masters both custom applications and the integration of artificial intelligence for businesses is essential. At Q2BSTUDIO, we combine expertise in custom software, AWS and Azure cloud services, and business intelligence services to build data pipelines that go from ingestion to visual validation. We also integrate AI agents that automate curation tasks, as well as Power BI to monitor the quality of the image catalog in real time. Cybersecurity also plays a key role in protecting models and sensitive data during batch processing. All of this demonstrates that, with the right architecture, a single consumer GPU can execute tasks that previously required expensive enterprise infrastructure. The future of visual curation lies in lightweight models, hybrid processes, and a philosophy of continuous improvement based on data.

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.