From the course: Developing RAG Apps with LlamaIndex and Next.js
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Hands-on: Defining functions and querying tools to start chatting with the agent
From the course: Developing RAG Apps with LlamaIndex and Next.js
Hands-on: Defining functions and querying tools to start chatting with the agent
So what we'll do next is we're going to define tools albeit a very simple one to get started with so that we can see how to actually add tools to our query engine routers so that the later you'll see that the AI agent will be able to find the actual tool so we have more control of what kind of workflow we want our agents to go through to get to the correct answer. So, it's going to be very simple first. I'm going to create this, actually, two tools here, okay? So, let's start with this function in the form of function, because that is the simplest one, and this is just a function that sums up two numbers and returns the sum, right? And then, I'm going to also create another tool here in the form of a function, and this is just a function that supposedly could go and get the weather of certain places. Now, I'm just making it simpler here. You could actually have code to tap into an external API to get the cities X, Y, and Z or Z that sees weather. Okay, so this is just an example. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Agents and advanced queries: The RouterQueryEngine overview6m 47s
-
(Locked)
Hands-on: RAG system with multiple data sources5m 44s
-
(Locked)
Hands-on: Creating a RouterQueryEngine to handle multiple query engines4m 58s
-
(Locked)
Hands-on: Defining functions and querying tools to start chatting with the agent10m 30s
-
(Locked)
-
-
-