Agentic AI RAG: Chat with Any ContentRecord inserted or updated successfully.
AI & GST

Agentic AI RAG: Chat with Any Content

Author : CA. Ganapathy Palanimuthu

Watch on Youtube
  1. Application Introduction

The "Chat with Any Content" application transforms how organizations interact with their diverse information sources. This advanced system allows financial and other professionals to have natural conversations with any type of information—documents, websites, or data tables, through a unified chat interface.

In this application, we will be advancing from a Traditional RAG system to a sophisticated Agentic AI RAG framework, through LangGraph 6 nodes workflow powered by LangChain.

  1. Problem Statement

Existing RAG (Retrieval-Augmented Generation) systems suffer from:

  1. Shallow answers to complex queries (e.g., audit insights, financial planning).
  2. Mixed information from unrelated sources, leading to incorrect analysis.
  3. Lack of time-awareness — ignoring fiscal periods or date-specific content.
  4. No transparency — users cannot see how the answer was formed or which sources were used.

In regulated domains like finance, this creates real risk: professionals cannot trust, explain, or defend AI-generated insights if there’s no trace of reasoning. Here comes the Game Changer, Agentic AI RAG.

  1. AI Solution & Technical Architecture

This web-based solution combines:

  1. Frontend: React with TypeScript (modern chat interface)
  2. Backend: Python with FastAPI
  3. AI Models: OpenAI GPT and Anthropic Claude
  4. Vector DB: ChromaDB (per-source vector storage using SQLite)


It advances beyond traditional RAG by adding critical layers:

🔹 LangChain – Modular Tools

Provides building blocks for:

  1. Chunking and embedding documents
  2. Running similarity searches
  3. Connecting to language models


🔹 Agentic AI Layer – Intelligent Planning

Thinks like a CA:

  1. Classifies the query (simple, analytical, comparative)
  2. Breaks down complex questions into sub-steps
  3. Selects tools, data sources, and processing methods dynamically


🔹 LangGraph – Workflow Execution

Executes a 6-node workflow with traceability:

  1. Query Analysis – Understands question type and domain.
  2. Planning – Splits into tasks if needed.
  3. Retrieval – Gathers relevant chunks from selected data.
  4. Source Selection – Filters the most relevant fiscal or factual info.
  5. Synthesis – Combines findings into coherent insight.
  6. Follow-up Generation – Offers next-best questions or refinements.




  1. Key Technical Innovations
  2. Reasoning View: Real-time display of what the AI is doing at each step.
  3. Confidence Score: Shows how reliable the response is and why.
  4. Processing Popup: Transparent step-by-step trace using WebSocket updates.
  5. Query Decomposition: Agentic AI intelligently decides whether a question should be split and LangGraph splits.
  6. Time-Aware Retrieval: Selects the right content by inferring fiscal year or date context.
  7. Conclusion

“Chat with Any Content” blends the power of LangChain, the intelligence of Agentic AI, and the structured flow of LangGraph to deliver precise, explainable, and professional-grade insights.

This approach enables organizations to move from static document search to intelligent, auditable dialogue with their data — a critical advancement for financial, audit, legal, and healthcare sectors