vinod's erudition

we learn everything from failure not from success so keep failing

Home Ruby Rails Javascript Python Agentic AI

2025-04-05-Welcome-to-World-of-AI-RAG-AGENTIC-AI-MCP

Posted on April 05, 2025 by vinod

Welcome to the World of AI

In this Era, We are been differentiated as 2 type of techies, One who learns, explores AI and other who don’t. So better lets be in good, highly energetic and growing mind side to learn, explore and make use of AI to do our task. Here are the some of the basic terms and high level uses of AI, ML, RAG, Agents, Automation, and LangChain in Action


What is AI & ML?


Basic ML Models

Input data need to be mapped to a real-valued output - Predict continuous values (e.g., house prices).

Group similar data points without labels.

Categorize data into classes (e.g., spam detection, sentiment analysis).

To recommend items - Netflix - more likeable to the datapoint.

Data pattern understanding - predic future prices.


What is RAG (Retrieval-Augmented Generation)?

Retrieval - Augumented - Generation is a NLP to improve quality of LLM response.

Retrieval - Retrieves data from local data store like DB, vector DB, Excel files. Augumented - Using the data forms appropriate query. Generation - Using the query generate response from LLM.

### How RAG works

           [ User Query ]
               |
         [ Embed Query ]
               |
         [ Retrieve Documents ]
               |
     [ Inject Docs + Query into LLM ]
               |
         [ Generate Response ]

Use Cases

What are AI Agents?

It Can

### How AI AGENTS WORK


[User Task/Goal]
      ↓
[LLM interprets task]
      ↓
[Agent plans steps]
      ↓
[Executes action or queries tools]
      ↓
[Updates memory / refines answer]
      ↓
[Repeats or ends task]

Real-World Use Cases

Agentic AI & RAG+Agents

What It Means:

Example Use Case: Web App Test Automation Agent

“Check all user flows in our web app, report broken paths, and open tickets.”

With RAG+Agents:


Why RAG + Agents Work So Well Together

RAG

Agent


Web Automation & MCP Servers

How AI + RAG + Agents Help with MCP

Scenario: Web Automation Agent Integrated with MCP

  1. An AI agent gets a task from the MCP server (e.g., “push wlan psk for xxx cambium id in cnmaestro cloud”)

  2. It uses RAG to pull knowledge (like config docs or previous test logs)

  3. The agent launches a web automation routine using Playwright

  4. It parses the results, compares with thresholds or rules

  5. Reports back to the MCP or updates dashboards/alerts

[MCP Server] — task → “Check app login status on 3 environments”
        ↓
[Agent] — retrieves login test from vector DB (RAG)
        ↓
[Agent] — uses Playwright to simulate login
        ↓
[Agent] — logs results, opens a JIRA issue if failure
        ↓
[MCP] — gets status report, updates dashboard