From the course: Building Applications Using Amazon Bedrock

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Writing the code: Knowledge base interaction

Writing the code: Knowledge base interaction - Amazon Bedrock Tutorial

From the course: Building Applications Using Amazon Bedrock

Writing the code: Knowledge base interaction

- [Instructor] Now it's time to code our application. Let's head over to GitHub to the course repo and we are going to fire up a codespace. So once you're logged into GitHub and you have the course repository open, click on Code, Codespaces and Create codespace on main. This is going to take a minute or so to get set up so you can pause the video and resume when the loading is complete. (upbeat music) So now our IDE is loaded. Let's go ahead and close these windows and we're going to open up 02_04b and this is the file we'll be coding. So I've gone ahead and put some structure around what's going to go in our code and let's get started. So first we're going to do some imports from Lang Chain. Let's maximize this window here. So we are going to have from langchain.chains, we're going to import RetrievalQA. Next. From langchain_community.llms, we're going to import bedrock. Next from…

Contents