WisdomEye Logo
WisdomEye
Note Thumbnail

LLM, RAG, MCP, Agents….... 15 AI Terms Finally Explained

Summary

This video breaks down the components of modern AI systems, explaining 15 key terms. It covers foundational elements like Large Language Models (LLMs) and context windows, then delves into operational aspects such as inference, reasoning, embeddings, and vector databases. It further explores methods for augmenting LLMs with external knowledge (RAG, fine-tuning), enabling interaction with software (tool calling, MCP), and establishing autonomous goal-directed systems (agents, agentic AI). Finally, it discusses the infrastructure for supporting agent operations (agent harness), testing them (evals), and ensuring safety (guardrails), demystifying complex AI architectures.

Key Insights

Reasoning models use additional computation for complex problems, improving results at the cost of latency and tokens.

A reasoning model spends additional internal computation on a problem before answering, analyzing constraints, exploring approaches, and checking results. This is akin to using scratch paper for complex tasks like math or debugging. Developers can control this with 'reasoning effort' or 'thinking level,' which can improve difficult tasks but increases latency and token usage. Reasoning assists complex work but does not guarantee truth or consciousness.

RAG provides models with relevant external information during inference, akin to an open-book exam, reducing hallucinations.

Retrieval Augmented Generation (RAG) gives a model relevant external information at inference time by searching a knowledge source, placing the best results in the context, and using that evidence to generate an answer. This is like an open-book exam, useful for private documents, technical manuals, or recent information. RAG can reduce hallucinations but doesn't eliminate them, as search results might be wrong or misunderstood.

AI agents are goal-directed systems where a model dynamically controls its steps and tool use in a loop.

An AI agent is a goal-directed system in which a model dynamically controls its next steps and tool use. It operates in a loop: observe, reason, act, inspect, adjust, and continue. For example, an agent could plan travel by searching routes, comparing prices, checking calendars, getting approval, and booking. The defining feature is the model's meaningful control over task completion, offering flexibility but adding cost and uncertainty.

Guardrails are runtime controls limiting AI system input, output, or actions to prevent errors and enhance safety.

A guardrail is a runtime control limiting what an AI system accepts, produces, or does. Input guardrails detect malicious instructions; output guardrails block unsupported claims or private info; tool guardrails reject dangerous arguments. They reduce the chance of mistakes becoming serious incidents, crucial when agents can modify files, spend money, or access systems. Effective protection involves validation, least privilege, limits, monitoring, and human escalation.

Sections

Core AI Components

LLMs are neural networks trained on text, predicting sequences to generate language, enabling broad abilities.

An LLM is a neural network trained on vast collections of text. It learns patterns linking words, ideas, code, facts, and styles, then generates language by predicting sequences of tokens one step at a time. It's like extremely advanced autocomplete. LLMs are not complete applications but can be wrapped with instructions, interfaces, data, and safety controls. They generate responses from learned patterns, not stored answers, explaining their flexibility and potential for mistakes.

Context window is the model's temporary workspace, holding prompt and history, but not permanent memory.

The context window is the model's working space for the current interaction. It contains the prompt, system instructions, conversation history, retrieved documents, tool results, and room for the answer, measured in tokens. A larger window can support more information but doesn't guarantee focus and increases cost. Notably, context is not permanent memory; information leaving the window may be lost unless explicitly stored and restored.

Inference is the operational phase where a trained model processes input to produce a prediction or response.

Inference is what happens when a trained model is used. Input is processed to produce a prediction or response, encompassing chatbot answers, image generation, and code suggestions. Training is the education phase; inference is the working phase. Inference happens on user requests, whether cloud-based or local, and is a key factor in cost and latency. Improving inference processes can enhance speed and reduce costs without retraining.

Reasoning models use additional computation for complex problems, improving results at the cost of latency and tokens.

A reasoning model spends additional internal computation on a problem before answering, analyzing constraints, exploring approaches, and checking results. This is akin to using scratch paper for complex tasks like math or debugging. Developers can control this with 'reasoning effort' or 'thinking level,' which can improve difficult tasks but increases latency and token usage. Reasoning assists complex work but does not guarantee truth or consciousness.

Embeddings are numerical representations of meaning, mapping data points in a way that semantically similar items are close.

An embedding is a numerical representation of meaning, converting data like text or images into a vector (list of numbers). These vectors are arranged so that semantically related items are numerically close. Embeddings enable mathematical comparison of meaning for applications like semantic search and recommendations. The embedding itself is not the original information but a set of coordinates; the original content is stored alongside for retrieval.


Knowledge Augmentation and Interaction

Vector databases store and efficiently search embeddings, enabling semantic retrieval of information based on meaning.

A vector database stores embeddings and searches them efficiently. A user's query is embedded, and the database finds stored vectors positioned nearby, indicating related meaning, like locating a business reimbursement procedure for an expense claim query. These databases also store metadata for combining semantic search with filters and permissions, essential for searching millions of document chunks quickly.

RAG provides models with relevant external information during inference, akin to an open-book exam, reducing hallucinations.

Retrieval Augmented Generation (RAG) gives a model relevant external information at inference time by searching a knowledge source, placing the best results in the context, and using that evidence to generate an answer. This is like an open-book exam, useful for private documents, technical manuals, or recent information. RAG can reduce hallucinations but doesn't eliminate them, as search results might be wrong or misunderstood.

Fine-tuning adapts an existing model to specific tasks or styles via additional training with curated examples.

Fine-tuning is an additional training process on an existing model, using carefully selected examples to adjust parameters for task, style, or behavior consistency. It's like specialized coaching for an employee. Fine-tuning is beneficial when prompting alone is insufficient for reliability but requires good data, evaluation, and maintenance. It's not ideal for rapidly changing facts; updating a searchable source is often faster.

Tool calling enables models to request specific capabilities from external functions, facilitating interaction with software.

Tool calling, or function calling, allows a model to request a defined capability, like selecting a weather function and providing structured arguments (e.g., city=Mumbai). The surrounding application executes the function and returns the result, which the model then uses. This enables text generators to interact with real software, but the runtime system controls tool existence, permissions, and request approval.

MCP provides a standardized protocol for AI applications to connect with diverse external tools and data sources.

Model Context Protocol (MCP) is an open standard analogous to USB-C for AI, enabling consistent connection to external tools, data sources, and workflows. Instead of custom integrations, developers expose compatible capabilities through a shared protocol. An MCP server can offer access to files, databases, calendars, etc., allowing compatible AI applications to discover and use them via a unified interface.


Agentic Systems and Safety

AI agents are goal-directed systems where a model dynamically controls its steps and tool use in a loop.

An AI agent is a goal-directed system in which a model dynamically controls its next steps and tool use. It operates in a loop: observe, reason, act, inspect, adjust, and continue. For example, an agent could plan travel by searching routes, comparing prices, checking calendars, getting approval, and booking. The defining feature is the model's meaningful control over task completion, offering flexibility but adding cost and uncertainty.

Agentic AI describes systems with autonomy, planning, action, feedback, and self-correction as core qualities.

Agentic describes qualities like autonomy, planning, action, feedback, and self-correction. Agentic AI is the broader category of systems designed around these qualities, potentially including multiple cooperating agents or workflows. It's the operating model for planning, delegating, performing, checking, and revising work, distinct from a single agent which is the concrete noun.

An agent harness is the surrounding system that enables a model to function as an agent, managing instructions and operations.

An agent harness is the surrounding system that enables a model to operate as an agent. While the model provides intelligence, the harness manages instructions, context, tool definitions, state, permissions, retries, stop conditions, logging, and the operational loop. It's the vehicle around the model's engine, providing steering, brakes, and instrumentation. Improving the harness is often more impactful than changing the model itself.

Evals are repeatable tests defining success criteria to measure AI system performance objectively.

An eval (evaluation) is a repeatable test of an AI system. It provides a task, defines success, and applies grading logic. This could be comparing an answer to a fact or inspecting tool calls and execution traces for agents. Evals using multiple trials across representative cases measure success, safety failures, cost, and latency, replacing vague impressions with evidence and detecting regressions.

Guardrails are runtime controls limiting AI system input, output, or actions to prevent errors and enhance safety.

A guardrail is a runtime control limiting what an AI system accepts, produces, or does. Input guardrails detect malicious instructions; output guardrails block unsupported claims or private info; tool guardrails reject dangerous arguments. They reduce the chance of mistakes becoming serious incidents, crucial when agents can modify files, spend money, or access systems. Effective protection involves validation, least privilege, limits, monitoring, and human escalation.


Ask a Question

*Uses 1 Wisdom coin from your coin balance

Watch Video

Open in YouTube
WisdomEye Avatar
Got a minute?