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: Load index with the persisted data and stream response
From the course: Developing RAG Apps with LlamaIndex and Next.js
Hands-on: Load index with the persisted data and stream response
Alright, so what I will do is let me go ahead and comment all of this out, okay. You'll have access to all of that of course and what we'll do now is we're going to do pretty much the same thing but instead of going and get the data again like we did before, okay, so we'll just create a new storage context and we'll load the index without parsing the documents again, right. So we're going to get an index without parsing the actual documents all right so let's do another storage context from defaults so we are hitting again storage here because that's where the context would be right all the files that we've saved in this case our persistent persistent data and then let's load the second index here now remember this index here is going to be loading from the second context which means it's going to go to the storage, it should have something in the storage, as you know, we've done this, to construct that index and everything. We're going to go ahead and create in this case a new…
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.