Skip to content

Commit 7ac4b4c

Browse files
authored
Merge pull request #380 from ashchenn/ashchenn_update
Updated TextGen module. Updated KB module
2 parents d4c6506 + eb54c57 commit 7ac4b4c

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

01_Text_generation/01_text_and_code_generation_w_bedrock.ipynb

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,7 @@
4949
"source": [
5050
"### Pre-requisites\n",
5151
"This notebook requires permissions to:\n",
52-
"- Access **Amazon Bedrock**.\n",
53-
"\n",
54-
"<div class=\"alert alert-block alert-info\">\n",
55-
"<b>Note:</b> Please make sure to enable the following models in your Amazon Bedrock Console before running this notebook:\n",
56-
"<ul>\n",
57-
" <li>Anthropic Claude 3.7 Sonnet</li>\n",
58-
" <li>Anthropic Claude 3.5 Sonnet</li>\n",
59-
" <li>Anthropic Claude 3.5 Haiku</li>\n",
60-
" <li>Amazon Nova Pro</li>\n",
61-
" <li>Amazon Nova Micro</li>\n",
62-
" <li>DeepSeek-R1</li>\n",
63-
" <li>Meta LLama 3.1 70B Instruct</li>\n",
64-
"</ul>\n",
65-
"This notebook uses these models to demonstrate various capabilities of the Amazon Bedrock APIs.\n",
66-
"</div>"
52+
"- Access **Amazon Bedrock**.\n"
6753
]
6854
},
6955
{
@@ -125,7 +111,6 @@
125111
" \"Claude 3.5 Haiku\": \"us.anthropic.claude-3-5-haiku-20241022-v1:0\",\n",
126112
" \"Amazon Nova Pro\": \"us.amazon.nova-pro-v1:0\",\n",
127113
" \"Amazon Nova Micro\": \"us.amazon.nova-micro-v1:0\",\n",
128-
" \"DeepSeek-R1\": \"us.deepseek.r1-v1:0\",\n",
129114
" \"Meta Llama 3.1 70B Instruct\": \"us.meta.llama3-1-70b-instruct-v1:0\"\n",
130115
"}"
131116
]

02_Knowledge_Bases_and_RAG/1_create-kb-and-ingest-documents.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"metadata": {},
9191
"outputs": [],
9292
"source": [
93-
"%pip install --force-reinstall -q -r ./requirements.txt"
93+
"%pip install --force-reinstall --no-deps -r ./requirements.txt"
9494
]
9595
},
9696
{
@@ -160,7 +160,7 @@
160160
"s3_client = boto3.client('s3')\n",
161161
"\n",
162162
"# Define names for AOSS, Bedrock, and S3 resources\n",
163-
"resource_suffix = random.randrange(100, 999)\n",
163+
"resource_suffix = random.randrange(100, 99999)\n",
164164
"s3_bucket_name = f\"bedrock-kb-{aws_region}-{resource_suffix}\"\n",
165165
"aoss_collection_name = f\"bedrock-kb-collection-{resource_suffix}\"\n",
166166
"aoss_index_name = f\"bedrock-kb-index-{resource_suffix}\"\n",

0 commit comments

Comments
 (0)