Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 10 min read Case study mediumAdept

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

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.

Assumes: retrieval-augmented generationLLM promptingvector embeddings

Related posts

  • Aligning LLM-as-a-Judge with Human Preferences

    LangChain easyNovice

    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. LLM judges work because they can see information the generator lacked, such as reference answers, and because judging is easier than generating. Common uses are detecting RAG hallucinations, RAG correctness and toxic outputs, in both online and offline evaluation. The design draws on few-shot learning and Shreya Shankar's Berkeley paper "Who Validates the Validators?".

  • Unlocking dependable responses with Gemini Enterprise Agent Platform’s Agentic RAG

    Google Research easyNovice

    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. That agent inspects retrieved snippets and a draft answer, identifies exactly which parts of the query lack supporting evidence, and feeds targeted gaps back to the query rewriter for further retrieval rounds before final synthesis. On the FRAMES-based FramesQA benchmark (824 multi-hop queries, 2,676 PDFs), it improves accuracy by up to 34% over a vanilla RAG Engine baseline. In a cross-corpus setting with three distractor corpora it reaches 90.1% accuracy, nearly matching single-corpus results with latency within about 3%.

  • Banque des Territoires (CDC Group) x Polyconseil x Hugging Face: Enhancing a Major French Environmental Program with a Sovereign Data Solution

    Hugging Face easyNovice

    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. Agents edit and validate the drafts, and that feedback is collected for future fine-tuning and RLHF. The system is a modular monolith in hexagonal architecture, with the LLM, embedding model and retrieval method swappable through configuration. LLM calls are offloaded to Hugging Face Text Generation Inference on GPUs at SecNumCloud-qualified NumSpot, currently running Mistral-7B-Instruct-v0.3, with CroissantLLM under evaluation and RAGAS used for evaluation.

  • Turbocharging Customer Support Chatbot Development with LLM-Based Automated Evaluation

    Instacart Tech mediumAdept

    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. Binary scoring proved more consistent and closer to human judgment than 1–10 scales. A debate setup, with parallel customer and support agents feeding a judge, reached near-perfect accuracy on simple criteria and over 90% on Instacart-specific contextual ones. Reasoning in free-form text (e.g. o1-preview) and converting to JSON in a separate step avoided quality loss from constrained decoding. Repeated human-vs-LACE alignment rounds refined the criteria, while subjective measures like conciseness are kept only as directional checks.

  • Testing LLMs on superconductivity research questions

    Google Research easyNovice

    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. NotebookLM and the custom RAG system, both restricted to a curated corpus of 1,726 sources derived from 15 expert-selected review articles, outperformed the web-connected models, which tended to mix established and speculative theories. All systems struggled with temporal context (missing that hypotheses were later disproved), retrieval of papers that don't use the query's exact wording, and genuine visual reasoning over figures.

The quest for software engineering knowledge.

Look:
Layout: