<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Langgraph on DevOpsTales</title>
    <link>https://devopstales.github.io/tags/langgraph/</link>
    <description>Recent content in Langgraph on DevOpsTales</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Tue, 27 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://devopstales.github.io/tags/langgraph/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Building a Self-Evaluating RAG System: Hybrid Search, Routing, and LLM-as-Judge</title>
      <link>https://devopstales.github.io/ai/self-evaluating-rag-hybrid-search-llm-judge/</link>
      <pubDate>Tue, 27 Oct 2026 00:00:00 +0000</pubDate>
      
      <guid>https://devopstales.github.io/ai/self-evaluating-rag-hybrid-search-llm-judge/</guid>
      <description>Most RAG systems are demos: they retrieve chunks and generate an answer immediately, with no check on whether the retrieved context is relevant, sufficient, or even correct. When retrieval misses, the model hallucinates. There is no recovery loop, no quality signal, and no way to tell which step produced a bad answer.
This post documents how to build a self-evaluating RAG system that routes queries, retrieves with hybrid search, and evaluates its own answers using LLM-as-judge. It is built in three cooperating parts:
Hybrid search and retrieval — dense + BM25 vectors with int8 quantization in Qdrant, RRF fusion, payload filtering, and multi-year balanced fetch. Agent and MCP — a LangGraph ReAct loop with routing guardrails, wrapped in FastMCP and exposed through a Streamlit UI. Observability and evaluation — Arize Phoenix tracing plus LLM-as-judge scoring for hallucination, QA correctness, and context relevance. The LLM provider layer is shared: Ollama (local llama3.2, nomic-embed-text) or Gemini API (gemini-2.5-flash-lite), switchable via environment variable with no code changes.
</description>
      <enclosure url="https://devopstales.github.io/img/coding-terminal.webp" length="96031" type="image/png" />
    </item>
    
  </channel>
</rss>
