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: RAG system with multiple data sources
From the course: Developing RAG Apps with LlamaIndex and Next.js
Hands-on: RAG system with multiple data sources
So we're going to start here real quick by putting together an agent, but before we go through that we're going to do all of that in stages. All right, so I have this folder here called Agents, just to separate everything. So I added this data folder with Berkshire PDF, I don't need that, I don't believe, and then in data2 I have this newswriters.txt. So these are party data to data that we're going to be using in this example in this hands on. And, of course, I pulled in the environment variable because I just want to make sure that everything is its own entity for each project. That way, it's easier for you. Obviously, when you making creating your own projects, you could put all the things in one place, but I'm just compartmentalizing things for easiness for you to deal with the code and everything. Make sure I also have Okay. this tsconfig.json for our project here. You see here, I started with agent simple.ts. So really, I've just added right now the few imports. Make sure that…
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)
-
-
-