cd /news/large-language-models/rag-framework-with-the-infra-lens Β· home β€Ί topics β€Ί large-language-models β€Ί article
[ARTICLE Β· art-101068] src=dev.to β†— pub= topic=large-language-models verified=true sentiment=Β· neutral

RAG Framework with the Infra Lens

An engineer explains the Retrieval-Augmented Generation (RAG) framework through an infrastructure administration lens, breaking down its components (retriever, ranker, LLM), pipeline stages, and maturity levels from naive to agentic RAG. The post draws parallels to IT operations, such as comparing agentic RAG to a self-driving diagnostic agent that iteratively checks multiple data sources before concluding root cause.

read3 min views1 publishedAug 18, 2026

This is for our Infra Admins who would be more interested in understanding RAG (Retrieval-Augmented Generation) with Infra lens.

RAG Framework β€” Retriever, Ranker, LLM

Think of this as a three-tier help-desk / ticketing search system:

Retriever β€” sources relevant information from a large corpus or database using retrieval techniques. This is your search index across your runbooks, KB articles, and past ticket resolutions β€” like querying your AD/VMware documentation repository for anything that might match the current issue. It casts a wide net, pulling anything plausibly relevant.

Ranker β€” evaluates and prioritizes what the retriever pulled back, ensuring the LLM gets the most pertinent, high-quality input. This is exactly like triaging search results by relevance before escalating β€” you don't hand a level-1 tech every KB article that mentions "DNS," you rank by how closely each one matches the actual symptom.

LLM β€” generates the final human-like response using the ranked, retrieved information plus the original query, aiming for a response that's factually accurate, coherent, and grounded. This is your senior engineer writing up the final resolution note, synthesizing the best-ranked reference material into a clear answer β€” not inventing one from memory.

RAG Pipeline β€” the three stages that make this run (Ingestion β†’ Retrieval β†’ Generation): Ingestion is your one-time (or scheduled) documentation import job β€” documents get chunked, embedded, and indexed into a database, much like you'd batch-import and index a KB into a searchable system. Retrieval is the live query time lookup β€” a user's question gets matched against that index to pull top-K results. Generation is the final answer synthesis β€” those top results get handed to the LLM to produce the response.

RAG Techniques β€” RAG Sequence vs. RAG Token

RAG Sequence: retrieve documents once for the whole query, then generate one cohesive response using all of them together. Like pulling every relevant runbook for an incident up front, then writing one complete resolution report referencing all of them together.

RAG Token: retrieve fresh documents for each part of the response as it's being generated, building the answer incrementally. Like looking something up mid-sentence while writing a report β€” checking a different reference for each paragraph as you go, rather than gathering everything first. More flexible, but more overhead per response.

Types of RAG β€” Naive, Advanced, Agentic (this is really a maturity ladder, and it maps almost exactly onto how monitoring/automation tooling matures in an infra team):

Naive RAG β€” embed the query, grab the top-K matches once, stuff them in the prompt, generate. Simple but brittle if the first search misses. This is like a basic keyword search against your KB with no re-checking β€” if the search terms don't match well, you get a bad answer with no safety net.

Advanced RAG β€” adds query rewriting, re-ranking, and better chunking before generation. This is like adding synonym matching, tagging, and a relevance-scoring layer to your ticketing search β€” you're improving the quality of what gets pulled before anyone acts on it.

Agentic RAG β€” the LLM itself plans its own retrieval: deciding what to search for, issuing multiple/iterative queries, calling tools, and judging whether it has enough context before answering. This is the leap from a static runbook lookup to a self-driving diagnostic agent β€” like a monitoring system that doesn't just alert once but iteratively checks multiple data sources (event logs, performance counters, AD replication status) on its own before concluding root cause.

One practical connection if you ever build a "chatbot over your AD/VMware runbooks" idea from earlier, you'd start with Naive RAG to prove it works, then move to Advanced RAG once you notice bad retrievals (mismatched KB articles), and only reach for Agentic RAG if the questions genuinely require multi-step investigation rather than a single lookup β€” same incremental-rollout instinct you'd apply to any new tooling in production.

── more in #large-language-models 4 stories Β· sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/rag-framework-with-t…] indexed:0 read:3min 2026-08-18 Β· β€”