From the course: Hands-On AI: Introduction to Retrieval-Augmented Generation (RAG)

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Solution: Putting it all together

Solution: Putting it all together

(upbeat music) - [Narrator] Welcome back to our "Putting It All Together Solution". Here in the first block of code, we're doing the exact same thing as we did before. And the next block of code, we're doing the exact same thing as we did before. Nothing changes. Then, here, what we're doing is we're doing the exact same thing as we're doing before, we're loading the index. Now, what I'm going to do is I'm going to get the query engine and I'm going to set the LM equal to the LM we created earlier. You can also do this with the global settings .llm that we showed in the last video. Or, if you'd like to change the LLM, you can change the LLM here. And I'll ask, let's ask, "When did the Big Star Collectibles Story Start?" "The Big Star Collectibles story began in 2013." Now let's ask, "Who started Big Star Collectibles?" "Big Star Collectibles was started by Saura Chen." And there you go. That's how you build a basic RAG application.

Contents