From the course: Developing RAG Apps with LlamaIndex and Next.js
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Hands-on: Creating a RouterQueryEngine to handle multiple query engines
From the course: Developing RAG Apps with LlamaIndex and Next.js
Hands-on: Creating a RouterQueryEngine to handle multiple query engines
So next we're going to create a router query engine to handle multiple query engines. This is where things get real excited. So we're going to use this router query engine to do just that, to create this multitude of query engines within itself. So you can see here we have this router, this query engine router to route all those engines, right, query engines, and we get that from the router query engine. And notice that make sure that we have all imported there. So if you have over, it gives you some definition. So a query engine that uses multiple query engines and selects the best one. So this is what we were looking at in our previous presentation, our diagram. So this is responsible for directing the flow of the rack system for ultimately our agent, as you will see. Right. So it's very simple. We say from defaults and then we pass an object of course that has this query engine tools because there are tools and we pass an actual list or array of those engines but now you can see we…
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)
-
-
-