From f3661d1f8137c85d1d6d27bd31d45ef58acb41de Mon Sep 17 00:00:00 2001 From: lapse <136134023+ultralapse@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:53:17 -0400 Subject: [PATCH] Update README.md --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aefb43fa..7d2dc7bb 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ When the bot is not in use, the Lambda Function will not run, significantly savi 1. Install the tools listed in the Dependencies section of the README.md 2. Clone the repository. -3. Create an IAM user that can access AWS Lambda and Cloudformation. Create an access key that you'll use in the next step. +3. Create an IAM user that can access AWS Lambda and Cloudformation. Create an access key that you'll use in the next step. You can also put the same exact credentials for `BEDROCK_ID` and `BEDROCK_KEY` in the `.env` file 4. Run `aws configure` to setup your AWS credentials. 5. Go to discord.dev and create a new application. @@ -128,6 +128,7 @@ Secret Key: Public Key: ![image](https://github.com/UMLCloudComputing/rowdybot/assets/136134023/595f713f-c415-4b1d-937f-86929e0c5e00) + 7. Save them in a `.env` file like the one below: Example of `.env` file. @@ -138,11 +139,30 @@ ID= LAMBDA_FUNC= BEDROCK_ID= BEDROCK_KEY= +KNOWLEDGE_BASE_ID= ``` 8. Finally, run `cdk bootstrap` to setup the cdk project. +## 🪨 Setting up Amazon Bedrock + +1. Head to your main AWS Dashboard and search for Amazon Bedrock. Click on Amazon Bedrock + +![image](https://github.com/UMLCloudComputing/rowdybot/assets/136134023/26fdea83-2d4e-4a06-a4d1-e15071ec6b8e) + +Click on Get Started + +![image](https://github.com/UMLCloudComputing/rowdybot/assets/136134023/db7aa135-d3ea-494c-8048-c6e75f7c64ae) + +Click on the Titan Models category and request access to Titan Text G1 - Premiere, Titan Text G1 - Lite, and Titan Text Embeddings v2 +**If you're using the Cloud Computing Club account, then the necessary models have already been requested.** + +![image](https://github.com/UMLCloudComputing/rowdybot/assets/136134023/a6b0b9c3-f5f2-402d-a41e-418e54f9aafb) + +Now click on AWS Bedrock Knowledge Bases and create a Knowledge Base. You can use the Knowledge Base ID provided in "Setup" if you don't want to create one. +![image](https://github.com/UMLCloudComputing/rowdybot/assets/136134023/036664e0-ad62-43da-b5df-b9c19b92de36) + ## 👉 Commands