Skip to content

Commit 1256231

Browse files
author
Daniel Lorch
committed
chore: setup and check AWS access via profile
1 parent 926bc03 commit 1256231

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

notebooks/misc/e2e-example-with-multimodal-page-classification-few-shot-prompting.ipynb

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,32 @@
2222
"cell_type": "markdown",
2323
"metadata": {},
2424
"source": [
25-
"## 1. Install Dependencies\n",
25+
"## 1. Setup AWS Access"
26+
]
27+
},
28+
{
29+
"cell_type": "code",
30+
"execution_count": null,
31+
"metadata": {},
32+
"outputs": [],
33+
"source": [
34+
"%reload_ext autoreload\n",
35+
"%autoreload 2\n",
36+
"\n",
37+
"import boto3\n",
38+
"import os\n",
39+
"\n",
40+
"os.environ['AWS_PROFILE'] = 'default' # change to desired AWS profile\n",
41+
"\n",
42+
"sts_client = boto3.client('sts')\n",
43+
"sts_client.get_caller_identity()['Arn']"
44+
]
45+
},
46+
{
47+
"cell_type": "markdown",
48+
"metadata": {},
49+
"source": [
50+
"## 2. Install Dependencies\n",
2651
"\n",
2752
"The IDP common package supports granular installation through extras. You can install:\n",
2853
"- `[core]` - Just core functionality \n",
@@ -68,7 +93,7 @@
6893
"cell_type": "markdown",
6994
"metadata": {},
7095
"source": [
71-
"## 2. Import Libraries and Set Up Environment"
96+
"## 3. Import Libraries and Set Up Environment"
7297
]
7398
},
7499
{
@@ -145,7 +170,7 @@
145170
"cell_type": "markdown",
146171
"metadata": {},
147172
"source": [
148-
"## 3. Set Up S3 Buckets and Upload Sample File"
173+
"## 4. Set Up S3 Buckets and Upload Sample File"
149174
]
150175
},
151176
{
@@ -196,7 +221,7 @@
196221
"cell_type": "markdown",
197222
"metadata": {},
198223
"source": [
199-
"## 4. Set Up Configuration"
224+
"## 5. Set Up Configuration"
200225
]
201226
},
202227
{
@@ -217,7 +242,7 @@
217242
"cell_type": "markdown",
218243
"metadata": {},
219244
"source": [
220-
"## 5. Process Document with OCR"
245+
"## 6. Process Document with OCR"
221246
]
222247
},
223248
{
@@ -271,7 +296,7 @@
271296
"cell_type": "markdown",
272297
"metadata": {},
273298
"source": [
274-
"## 6. Classify the Document"
299+
"## 7. Classify the Document"
275300
]
276301
},
277302
{
@@ -326,7 +351,7 @@
326351
"cell_type": "markdown",
327352
"metadata": {},
328353
"source": [
329-
"## 7. Extract Information from Document Sections"
354+
"## 8. Extract Information from Document Sections"
330355
]
331356
},
332357
{
@@ -375,7 +400,7 @@
375400
"cell_type": "markdown",
376401
"metadata": {},
377402
"source": [
378-
"## 8. Final Document Status Summary"
403+
"## 9. Final Document Status Summary"
379404
]
380405
},
381406
{
@@ -405,7 +430,7 @@
405430
"cell_type": "markdown",
406431
"metadata": {},
407432
"source": [
408-
"## 9. Evaluate Results\n",
433+
"## 10. Evaluate Results\n",
409434
"\n",
410435
"In this section, we'll demonstrate how to evaluate extraction results by comparing them with expected (ground truth) values. The evaluation process involves:\n",
411436
"\n",
@@ -612,7 +637,7 @@
612637
"cell_type": "markdown",
613638
"metadata": {},
614639
"source": [
615-
"# 10. Clean Up (Optional)"
640+
"# 11. Clean Up (Optional)"
616641
]
617642
},
618643
{

0 commit comments

Comments
 (0)