Memory, RAG, MCP & Real-World AI Systems

AI Memory

Short-term Memory

  • Current conversation

Long-term Memory

  • Stored interactions

Context Window

  • Max tokens processed
  • Uses FIFO (First In, First Out)

Conversation ID

  • Enables memory across sessions

RAG – Deep Dive

Steps:

  1. Retrieval
  2. Augmentation
  3. Generation

Knowledge Files vs Tools

Knowledge FilesTools
Full contextTargeted retrieval
Static dataDynamic access

Direct File Processing

  • Supports:
    • PDF
    • Images
    • Text

MCP Architecture

Core Elements

  • Tools → Actions
  • Resources → Data
  • Prompts → Templates

MCP Communication

Uses:

  • JSON-RPC
  • Requests / Responses / Notifications

Security

  • API Keys
  • OAuth 2.0

Real-World AI Agent Examples

1. Customer Invoice Agent

  • Detects duplicate charges
  • Issues refunds

2. Meeting Assistant

  • Reads calendar
  • Calculates travel time
  • Sends alerts

3. Sales Assistant

  • Manages CRM
  • Generates reports

4. Security Agent

  • Monitors roles
  • Handles onboarding

Why Agentic Automation?

  • Handles complex tasks
  • Works with unstructured data
  • Makes real-time decisions
  • Uses human-like reasoning

Final Thought

AI is evolving from:

  • Tools → Assistants → Autonomous Agents

Understanding LLMs and systems like MCP and RAG gives you the ability to:

  • Build real systems
  • Automate workflows
  • Create AI-driven businesses

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top