AI Summary
This video provides a comprehensive beginner's guide to agentic AI, explaining how AI agents differ from traditional chatbots. It covers the fundamentals of large language models, context engineering, RAG, and the key design patterns and technologies that enable AI agents to take action.
Chapters
AI agents can browse websites, compare prices, and complete purchases, unlike regular chatbots that only provide information.
The fundamental difference is that chatbots provide information, while agents take actions to achieve a specific goal.
LLMs predict the next token in a sequence, working with tokens which can be words, parts of words, numbers, or punctuation.
Temperature controls the randomness of responses; lower temperature is more predictable, higher temperature allows for more creativity.
The transformer architecture, introduced in 2017, uses attention mechanisms to understand relationships between tokens.
Encoder-only models like BERT are for understanding text, while decoder-only models like GPT are for generating text.
Multimodal AI can understand and process different types of information, such as text, images, audio, and video.
Context engineering is about managing the information that goes into the model's context window, giving it the right information at the right time.
RAG involves retrieving relevant information, augmenting the model's context, and then generating an answer.
An AI agent combines the intelligence of models with tools, context, memory, and an environment to perform actions.
Tool calling allows agents to use external capabilities like databases, calculators, or APIs to perform tasks.
MCP (Model Context Protocol) provides a standardized way for AI applications to connect with external tools and resources.
The ReAct pattern (Reasoning and Acting) involves the agent evaluating, acting, observing, and deciding what to do next.
The four key design patterns are reflection, tool use, planning, and multi-agent collaboration.
Agent orchestration manages dependencies and execution flow between multiple agents and tasks, often using graph-based approaches.
Harness engineering focuses on the environment that supports the agent, including tools, memory, permissions, and error handling.
AI evaluations are used to test agents across various scenarios to identify weaknesses and improve reliability.
Mentioned in this Video
Tutorial Checklist
π‘ Key Takeaways
Information vs. Action
This is the core distinction between chatbots and agents, setting the stage for the entire video.
01:31Transformer Architecture
Explains the foundational technology behind modern LLMs in a simple, accessible way.
05:36RAG Explained
Uses the open-book exam analogy to make a complex concept like RAG easy to understand.
09:46Agent Autonomy
Highlights the key difference between traditional automation and agentic AI, emphasizing decision-making.
13:21Production-Ready Agents
Emphasizes that building reliable agents requires more than just a powerful model; it requires a robust system around it.
20:53Full Transcript
[00:00] We now have agents that come to the AI agent to include these AI agents.
[00:13] It's an AI field about as agents. This is agentic AI. I'm seeing with AI agents. Then, you know, agents. Every company will be an agent company. You have probably used GTT to write emails, summarize a document, or even pick up a piece
[00:33] of code. But what if instead of just telling you how to do something, AI could actually do it for you? See, during the recent Black Friday sale, many people were busy comparing prices and
[00:46] searching for the best deal. Let's say you also wanted to buy a gaming laptop under 80,000 rupees. A regular AI chatbot would recommend a few laptops and suggest where to buy them.
[00:59] But an AI agent on other hand could browse shopping websites, compare real-time prices, chat reviews and discounts, find the besties and even complete the purchase with your approval on supported platforms.
[01:14] So, instead of refurbishing and spending hours in comparing products, you simply give the AI agent a goal and it handles the process for you. And that's the fundamental difference between a regular AI techbot and an AI agent.
[01:31] One provides information while others take the actions to achieve a specific goal. And that's a completely different way of using AI. But, how do these systems actually work?
[01:43] How do they access information, make decisions, boot tools and perform tasks? So, here's what we'll be covering in today's video. We'll be starting by understanding how large-language models work along with transformers and multi-model AI.
[01:59] Moving ahead, we will explore from engineering, context engineering, RAG and reasoning models. Once we understand these fundamentals, we will dive into agentic AI and see how agents use tool calling, MCP and agent loops to perform real-world tasks.
[02:16] We will also look at the key agentic AI design patterns including reflection, planning, tool use and multi-agent collaboration. Finally, we will explore agent orchestration, harness engineering, and AI evaluations to
[02:31] understand how reliable, production-ready AI agents are. And don't worry, if some of these sound complicated right now, we'll understand each one of them with simple real-world examples.
[02:43] So now, before we deep dive into our today's video, here's a quick information. If you are someone who wants to go beyond simply using AI tools and actually learn how to build AI applications and agents,
[02:56] do check out Simply Learn's Advanced Executive Program in Applied Generative AI by IoTM Server Steps in collaboration with Microsoft. This 5-month live interactive program covers everything from generative AI fundamentals to advanced concepts like RAD, context engineering, MCT, multi-agent systems, and MLO.
[03:17] You will work with 29 plus industry-leading tools like Cloud, OpenCore, LinkedIn, Linecraft, QAI and Any10 through 90 plus live demonstrations and 10 real-world projects including a tape
[03:31] store. You will also get access to faculty masterclasses and AI Impact Studio workshops and the opportunity to attend a 2-day campus immersion at IIT Madras Research Park. A full successful completion, you will earn a Program Completion Certificate from IIT and
[03:47] ServerTech Technology Foundation along with opportunities to learn Microsoft Learn Certification. So, if you are interested in building tactical AI applications, do check out the program through the link given in the description box below.
[04:00] With that, let's get started. Now, considering everything a large language model can do, you might expect the fundamental concepts behind it to be extremely complicated.
[04:12] But it's actually quite simple. A large language model predicts what comes next. For example, if I say the sun rises in the... You can probably complete the sentence immediately, right?
[04:24] You'll say, yes. A language model does something similar based on the patterns it has learned during training. However, instead of working entirely with words, language models work with smaller units called a token.
[04:40] A token could be a word, a part of word, a number or even a punctuation mark. When you enter a prompt, the model processes these tokens and generates new tokens one at a time to form a response.
[04:53] But have you ever entered the exact same prompt twice and received different answers? That's because the model generates probabilities for different possible tokens. One parameter that influences this behavior is called a temperature.
[05:08] A lower temperature generally makes response more predictable, while higher temperature allows greater variation in the response. For example, an AI engine generating marketing ideas might benefit from creativity, but an
[05:23] agent processing invoices would need more consistent responses. Now, how does the model actually understand the relationship between different worlds? And that's where Transformers comes in.
[05:36] Back in 2017, researchers introduced the transformer architecture to a research paper called ATTENTION. That is all you need. One of the most important concepts behind Transformers is ATTENTION.
[05:50] Consider this sentence. The laptop didn fit inside the best space because it was too large When you read this you naturally understand that it refers to the lack of Attention helps AI models capture similar relationships between different tokens and identify which information is relevant
[06:10] Now the original Transformer architecture has two major components, an encoder and a decoder. You can think of encoder as a reader and a decoder as a writer.
[06:23] For example, in the translation system, this encoder processes an English sentence while the decoder generates its French translation. Over time, different architectures emerged.
[06:35] Encoder-only models such as BERT became useful for understanding and classifying text, while decoder-only models such as GPT became popular for generating text and code.
[06:47] But AI models didn't stop at understanding text. They gradually started working with other types of information as well. And that brings us to Multi-Modal AI. Let's say you are developing a website and suddenly encounter an error.
[07:02] Instead of typing a lengthy explanation, you simply upload a screenshot and ask AI what's wrong. The AI examines the image and provides the response. This is an example of Multi-Modal AI.
[07:15] A modality is simply a type of information such as text, images, audio or video. Models that can understand the visual transformation alongside language are commonly known as language models or DLLs.
[07:30] Now imagine combining these capabilities with an AI machine. An insurance agent could read a customer complaint, examine photographs of a damaged vehicle which reads the insurance policy and recommend the next session.
[07:44] sessions. Similarly, a coding agent could examine a screenshot of a broken website, modify the code and test whether the issue has been resolved. But regardless of how powerful these models became,
[07:58] they still need the right information to perform a task. And that's where context engineering comes in. I'm sure you have heard of prompt engineering. It's essentially about communicating instructions
[08:11] clearly to an AI model, you give it a role, provide examples, explain the task and specify the expected output. But when you are building actual AI applications, a good prompt alone isn't always enough.
[08:25] Imagine hiring a new employee even if they are extremely talented. They still need access to company documents, previous conversations, business policies and the tools required to do their job.
[08:39] AI works in a similar way. First, we have the system form which defines how the AI should behave and the user form which contains the current request. Then we have something called as context
[08:52] window. Think of it like the model's temporary working space which determines how much information it can process within an interaction. Now context engineering is all about managing information
[09:05] that goes into this working space. That could include system instructions, user requests, conversation history, external knowledge, memory, and available tools. So the objective isn't to give AI as much information as possible.
[09:20] It is to give the right information at the right time. So while prompt engineering focuses on how we communicate instructions, context engineering focuses on managing the entire information available to the model.
[09:34] And one of the most popular ways of bringing external knowledge into this context is through RELs and that brings us to retrieval argumented generations.
[09:46] The name might sound complicated but the concept is quite straightforward. Imagine a student taking a closed book examination. They can only answer based on whatever they have already learnt.
[10:00] Now imagine the same student taking an open book examination, where they can refer to the textbook before answering. That's essentially how drag works. Suppose an employee asks an AI assistant, how many days of paid leave can I carry forward to the next day?
[10:17] A large-language model might understand what paid leave means, but it doesn't necessarily know your company's specific policies. Instead of asking the AI to guess, you receive the relevant complete document and provide
[10:32] it to the model before it generates an answer. So, that typically involves three stages. The first is retrieval where the system searches for relevant information, often using a vector
[10:44] database, the database with a numerical representation of information that helps identify similarities in the meaning. The second stage is Augmentation where the retrieved information is prepared and added
[10:57] to the model's context. And finally, Generation where the model uses that information to produce an answer. Now, what if the first search doesn't provide enough information?
[11:09] That's where Agentic Web comes in. Instead of following a quick retrieval process, an agent can evaluate the retrieved information, modify the search query, and search again if necessary. So, the AI is no longer just receiving information, it's beginning to make decisions about what information it needs.
[11:28] Now, before we understand AI agents, there's another important capability we need to discuss, and that is reasoning. If I ask you what's 2 plus 2, you'll probably answer immediately. But, if I give you a complicated mathematical equation, you will probably spend some time working through it.
[11:46] So reasoning-capable AI models follow a somewhat similar approach. They can dedicate additional computation to solve complex problems before generating a response For example suppose you ask AI to investigate why company sales have dropped The model might identify several possible reasons such as inventory shortages booklining
[12:10] customer demands, or ineffective marketing campaigns. It can even develop a plan to investigate these possibilities. But can it actually access a company's sales database and verify what happened?
[12:22] Not unless we give the necessary tools and permissions. And this brings us to the most important distinction in this video, the difference between an AI model and an AI agent. So what exactly is agent AI?
[12:36] Let's understand this again with an example. Imagine hiring an extremely knowledgeable employee but not giving them a computer, access to complete documents or permission to perform any tasks.
[12:48] They might know exactly how to solve a problem but they can't actually do them. That's similar to a standalone language model. An AI engine combines the intelligence of models with tools, context memory, and an environment where it can perform actions.
[13:06] So, a Genetic AI mainly refers to AI systems that can work towards a goal, make decisions, perform actions, observe their results, and adopt their approach with very fine levels of autonomy.
[13:21] Let's understand this with another customer support example. Suppose a customer says, I've received a damaged product and I want a refund. A traditional chatbot might provide a link to the refund policy.
[13:33] A generative AI chatbot might explain the refund process in detail. But an AI agent could receive the customer's order, check the refund policy, verify eligibility,
[13:45] create a support ticket, and initiate refund after receiving the necessary approval. Notice that the customer didn't explain every single step. They simply communicated what they wanted to achieve.
[14:00] The agent actually determined the necessary actions. And now, the deep end automation generally follows predefined instructions where AI agents can select different actions depending upon the actual situation.
[14:13] This makes agentic AI particularly useful when tasks involve uncertainty or multiple possible execution paths. So now this brings us to another question. How exactly do agents perform these actions?
[14:28] So through something called a tool calling. A tool is essentially an external capability that we make available to an AI model. It could be a website, a database query, a calculator, a code execution environment or even an email application.
[14:45] Let's say a customer asks, where is my order? My order number is 1024. An AI model doesn't automatically know where that order is. But if we provide it with a tool called GetOrderStatus,
[14:59] the model can request the application to execute that function using the customer's order number. So the application receives the information and returns it to the model. Now if the order has been delayed,
[15:12] the agent might decide to use another tool to retrieve the shipment details or create a support system. But as we connect AI applications to more and more external systems, managing these integrations becomes complicated. And this is where another
[15:29] important concept, MCP comes in. MCP stands for Model Context Protocol. It provides a standardized way for AI applications to connect with external tools, resources, and information. Instead of
[15:44] building every integration differently, developers can use compatible NCP servers to connect their applications to databases, files, development platforms, and other services. However,
[15:57] NCP itself doesn't make an AI agent agent it. It provides the connectors. The agent still needs to decide which tools to use and what to do with their results. And that's where the agent loop,
[16:11] Another important concept comes in Reason, Act and Observe. One of the foundational patterns used in AI is called as AI which stands for Reasoning and Acting.
[16:23] The idea behind this is simple. The agent evaluates the situation, performs an action, observes the results and decides what to do next. Remember our drop set examples from the beginning?
[16:35] Suppose you ask an AI agent to find 5 suitable AI engineering jobs based upon your resume. So how agent works? Agent first examines your resume to understand your skills and experiences.
[16:48] Then it searches for relevant job openings. After examining the results, it realizes that most positions require more experience than you have. So it changes its search criteria and searches again.
[17:02] Once it finds suitable opportunities, it compares the job description with your skills and prepares a shortlist. Notice how the result of every action influences the next decision? This continuous cycle of reasoning, acting and observing is what allows agents to adapt to different situations.
[17:21] However, we don't want agents running independently. That's why developers define execution limits. stopping conditions, cost budgets and situations where human approval is required.
[17:35] Giving an agent autonomy doesn't mean giving it unlimited freedom. Now, there are four important design patterns that help us build more capable AI agents.
[17:47] The first is reflection. Imagine an AI agent that writes a Python program, runs it, identifies an error, fixes the code and tests it again. Instead of simply presenting its first response the agent evaluates and improves its work based upon their feedback The second pattern is tool use For example if an agent needs to calculate a company total revenue it can execute a database query instead of guessing the answer
[18:16] Now comes the third pattern, that is planning. Suppose you ask an AI agent to build an e-commerce website. It needs to design the interface, develop the front end and back end, connect to a data
[18:29] beam and test the application. Planning allows the agent to divide this learning objective into smaller, manageable tasks. And finally, we have multi-agent collaboration.
[18:41] Let's suppose an AI-powered content creation system where one agent conducts research, another writes the script and the third verifies information. Each agent has a specific responsibility, but they are all working towards the same goal.
[18:58] However, using more agents doesn't necessarily mean getting better results. It can also increase costs and complexity. So the important thing is choosing the right approach for the problem you are trying to solve.
[19:11] Now, when you have multiple agents, tools and tasks working all together, how do you coordinate everything? and that's where agent orchestration another important concept of agent AI comes in.
[19:25] Let's say we are building a refund processing system, one component receives customer information, another sets refund eligibility and another sets for potential fraud detection.
[19:37] Some of these tasks can run simultaneously while others need to wait for previous tasks to finish. So agent orchestration here helps manage these dependencies and determines how the overall system should execute.
[19:51] One popular approach is graph based orchestration where nodes represent tasks and edges define how execution moves between them. And this allows developers to implement conditional decisions, parallel executions, re-drives and human approvals.
[20:08] But there is another important concept that is called as Harness Engineering. You must have heard this, right? Think of the AI model as the engine of a car. A powerful engine is great but you still need great steering, sensors and other systems to make the car functional and safe.
[20:26] Similarly, an AI agent needs an environment that manages its tools, memories, permissions, set points and errors. For example, if an AI agent is half-way through a task and the application crashes, a well-designed
[20:41] system can use saved stat points to recover its progress. So, sometimes improving an AI agent isn't about building the more powerful model. It's about improving the system around it.
[20:53] Now suppose you have built a customer support agent, tested it with site customer request, and it successfully handled all the files. the file. Does that mean it's ready to handle thousands of customers? Not necessarily. Real users
[21:09] might provide incomplete information, external services could fail and the agent might select an incorrect tool. This is where AI evaluations, commonly known as AI emails, became important. Imagine testing
[21:24] a LeapBond agent across 100 different scenarios and it successfully handles 90 of them. By examining the remaining 10 failures, developers might discover incorrect tool selection, outdated
[21:37] policies or missing check-up tools. They can then improve those personal areas depending upon the application. Developers can measure task success rate,
[21:49] sexual accuracy, tool selection accuracy, response time, execution cost and human intervention risk. Security is equally important because agents can perform actions in external systems.
[22:02] That's why developers implement access controls, data protection, execution, limits and human approval for sensitive actions. Helping APIs are goal events to build an agent that can do everything.
[22:15] It is to build an agent that can perform its intended tasks safely and reliably. And that's what separates an impressive AI demonstration from a production-ready AI system.
[22:28] So that's pretty much what Agentic AI is all about. And I hope that after watching this video, when you hear someone talking about AI agents, RAD, context engineering or any of these concepts, you'll actually understand how they fit together
[22:43] rather than looking at them completely different technologies. Now if you are someone who is just getting started with AI, you don't have to learn everything at once. Start by building something small.
[22:56] It could be a simple AI assistant that reads your documents, answers your questions or automates the tasks that you do every single day. Once you get that working, start giving it access to few more tools and see what happens.
[23:10] You'll probably run into errors, get unexpected responses and spend some time figuring out out why things are important and that's actually where a lot of learning actually happens.
[23:22] Also, I am curious to know how many of you have already experimented with building AI agents? What did you build and what challenges did you really face? Do share your experiences
[23:35] in the comment section below. And with that, we have come to the end of this video. I hope you enjoyed learning about agentic AI as much as I enjoyed explaining it to you. If you found this as well do give this video a like and subscribe to simply learn channel for more
[23:51] such technology content thank you for watching and i'll see you in the next one