Agentic Rag banner
FareedKhan-dev FareedKhan-dev

Agentic Rag

AI community

Description

Agentic RAG to achieve human like reasoning

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Building the Enhanced Agentic RAG Pipeline

Standard RAG systems find and summarize facts, but they don’t really think. **Agentic RAG goes further** it reads, checks, connects, and reasons, making it feel less like a search tool and more like an expert. The improved workflow adds steps that mimic how humans solve problems. The goal is not just to answer, but to truly understand the question.

In this blog, we are going to build an advanced agentic RAG pipeline that mimics how a human would read and understand a problem …

![Agentic RAG Pipeline](https://miro.medium.com/v2/resize:fit:4800/1*cO88iZwmqxLcoNDi-nI4Tg.png) *Agentic RAG Pipeline (Created by [Fareed Khan](https://medium.com/u/b856005e5ecd?source=post_page---user_mention--687e1fd79f61---------------------------------------))*

Here’s how our agent will think like a human analyst:

  • First, we build a rich knowledge base — the agent doesn’t just read text, it parses documents carefully (preserving tables and structure) and uses an LLM to add summaries and keywords, creating multiple layers of understanding.
  • Then, we assemble a team of specialists, no one is an expert at everything, and neither is our agent. It relies on expert tools: a Librarian for documents, an Analyst for databases, and a Scout for live web data.
  • Next, a Gatekeeper checks the question before acting, the agent tests if the query is clear and specific. If not, it asks for clarification rather than providing a vague or incomplete answer.
  • After that, a Planner makes a methodical plan — once the question is validated, the Planner breaks the request into step-by-step tool calls, keeping the process structured and avoiding rushed answers.
  • An Auditor then verifies results, each tool’s output is reviewed for quality and consistency. If results are weak or contradictory, the agent re-plans and corrects itself.
  • A Strategist connects the dots, the final response isn’t just a list of