---
title: "Expert Support case study: Bolstering a RAG app with LLM-as-a-Judge"
description: "Digital Green's Farmer.chat, a GPT-4o ReAct agent backed by a RAG pipeline over ~46,000 agricultural research papers (semantic chunking, Qdrant), uses LLM-as-a-judge to evaluate prompt clarity, question type, answered rate and RAG faithfulness at scale."
url: "https://swe.quest/articles/expert-support-case-study-bolstering-a-rag-app-with-llm-as-a-judge-0a36f6542d44eb7e"
canonical: "https://huggingface.co/blog/digital-green-llm-judge"
source: "Hugging Face"
published: "2024-10-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 10
tags: ["evals","rag","llms","ai-agents"]
---

# Expert Support case study: Bolstering a RAG app with LLM-as-a-Judge

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-10-28, 10 min read, Case study. Original: [https://huggingface.co/blog/digital-green-llm-judge](https://huggingface.co/blog/digital-green-llm-judge)

## Summary

Digital Green's Farmer.chat, a GPT-4o ReAct agent backed by a RAG pipeline over ~46,000 agricultural research papers (semantic chunking, Qdrant), uses LLM-as-a-judge to evaluate prompt clarity, question type, answered rate and RAG faithfulness at scale. The faithfulness judge, a RAGAS-inspired binary NLI prompt that checks atomic statements against retrieved context, correlated well with human raters on ~360 questions. Benchmarking four LLMs on 700+ queries showed Gemini-1.5-Pro was most faithful (91%) but left 19.4% unanswered, so the team chose Gemini-1.5-Flash for its balance of 89% faithfulness and only 4.5% unanswered.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)

## Prerequisites

- retrieval-augmented generation
- LLM prompting ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- vector embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))

## Keywords

Farmer.chat, LLM-as-a-judge, RAGAS, Qdrant, Gemini-1.5-Flash, GPT-4o, Llama-3-70B, ReAct

## Related posts

- [Aligning LLM-as-a-Judge with Human Preferences](https://swe.quest/articles/aligning-llm-as-a-judge-with-human-preferences-ffa838b947416549.md): LangChain · 2026-08-26 · Easy · 6 min read · Evaluation, LLMs
  LangSmith evaluators now store human corrections to LLM-as-a-Judge scores as few-shot examples, optionally with explanations, and inject them into the judge prompt on later runs so the evaluator aligns with team preferences without manual prompt engineering.
- [Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG](https://swe.quest/articles/unlocking-dependable-responses-with-gemini-enterprise-agent-platform-s-agentic-1fa2162940afaaba.md): Google Research · 2026-06-05 · Easy · 8 min read · RAG & retrieval, AI agents, LLMs, Evaluation
  Google's agentic RAG framework, now in public preview on Gemini Enterprise Agent Platform, extends multi-agent retrieval (orchestrator, planner, query rewriter, search fanout) with a Sufficient Context Agent.
- [Banque des Territoires (CDC Group) x Polyconseil x Hugging Face: Enhancing a Major French Environmental Program with a Sovereign Data Solution](https://swe.quest/articles/banque-des-territoires-cdc-group-x-polyconseil-x-hugging-face-enhancing-a-major-eeda57273a842369.md): Hugging Face · 2024-07-09 · Easy · 17 min read · RAG & retrieval, LLMs, System design, Inference & serving
  Banque des Territoires, Polyconseil and Hugging Face built a sovereign RAG application that drafts sourced email replies for the EduRénov school-renovation program from its internal documentation.
- [Turbocharging Customer Support Chatbot Development with LLM-Based Automated Evaluation](https://swe.quest/articles/turbocharging-customer-support-chatbot-development-with-llm-based-automated-1b9441967ec3317f.md): Instacart Tech · 2025-06-11 · Medium · 12 min read · Evaluation, LLMs, AI agents
  Instacart's LACE framework evaluates multi-turn support chatbot sessions with LLM judges, scoring binary True/False criteria across five dimensions: query understanding, answer correctness, chat efficiency, client satisfaction and compliance.
- [Testing LLMs on superconductivity research questions](https://swe.quest/articles/testing-llms-on-superconductivity-research-questions-12eaef3593cad311.md): Google Research · 2026-03-16 · Easy · 7 min read · Evaluation, RAG & retrieval, LLMs, Scientific computing
  An expert panel of physicists tested six LLMs (GPT-4o, Perplexity, Claude 3.5, Gemini Advanced Pro 1.5, NotebookLM and a custom RAG system) on 67 expert-written questions about high-temperature cuprate superconductivity, grading masked answers 0-2 on balance, comprehensiveness, conciseness, evidence and image relevance.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
