Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
acbfaeb
Updated the PL/SQL code for checkout
apoosrini Aug 9, 2022
d66aeef
Update process-properties.png
apoosrini Aug 10, 2022
e05ccf0
Feedback update 22.1
apoosrini Aug 16, 2022
02a08bd
Hid the old walkthrough videos
apoosrini Aug 16, 2022
f1ecb6a
Alt text for all images
apoosrini Aug 17, 2022
a64f35d
Delete clothing-images.zip
apoosrini Aug 19, 2022
4c0f051
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 1, 2022
0965540
Updated steps for Livelabs Green Button
apoosrini Sep 1, 2022
a9660e5
Changes to steps for Livelabs Green button
apoosrini Sep 1, 2022
15cb505
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 2, 2022
96ad68b
Fixed the comments wrt PR
apoosrini Sep 2, 2022
5e69629
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 6, 2022
458c772
Updated screenshots in Common
apoosrini Sep 6, 2022
a13440c
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 8, 2022
b738afc
OCW updates to optional labs
apoosrini Sep 8, 2022
ca7072f
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 12, 2022
1812caf
Updated filename in manifest for optional lab
apoosrini Sep 12, 2022
4a640d6
Merge remote-tracking branch 'upstream/main'
apoosrini Feb 6, 2023
cf503ee
OCI console Redwood theme screenshots
apoosrini Feb 9, 2023
b5396ae
Resolved issue in APEX 22.2 for Task 5
apoosrini Feb 9, 2023
85a5988
Merge remote-tracking branch 'upstream/main'
apoosrini Feb 15, 2023
f71b904
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 11, 2023
5f183a2
Update manifest.json
apoosrini Mar 14, 2023
ec14dfb
Merge branch 'main' into main
malcherm Mar 17, 2023
6b79341
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 18, 2023
61c7aa4
First Draft for New Workshop
apoosrini Mar 18, 2023
9550082
Issue fix
apoosrini Mar 21, 2023
a83e487
Issue fixes
apoosrini Mar 23, 2023
c1c402a
Issue Fix
apoosrini Mar 23, 2023
56c4ff0
issue-fix
apoosrini Mar 23, 2023
85a43e1
removed lab 10
apoosrini Mar 23, 2023
49f3547
screenshot fix
apoosrini Mar 24, 2023
5d1a8d7
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 24, 2023
e691db7
Replaced Screenshots
apoosrini Mar 24, 2023
d60612a
Updated screenshots
apoosrini Mar 27, 2023
26625f7
Replaced Screenshots
apoosrini Mar 27, 2023
e23a8a5
Updated Screenshots
apoosrini Mar 27, 2023
eda0372
Create menu-button.png
apoosrini Mar 28, 2023
dadc8d4
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 28, 2023
04b46a9
Issue fixes and time saver step
apoosrini Mar 28, 2023
7db1383
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 30, 2023
7300747
Lab 10 steps added
apoosrini Mar 30, 2023
bac3754
Fixed issues
apoosrini Mar 31, 2023
ffc2f34
Renamed Lab titles
apoosrini Mar 31, 2023
0934108
Added Task 3 and 4 in Lab 8
apoosrini Apr 1, 2023
4c088da
Updated screenshots
apoosrini Apr 1, 2023
d1bb24b
uploaded the catch up app
apoosrini Apr 2, 2023
01f3eaf
Merge remote-tracking branch 'upstream/main'
apoosrini Apr 5, 2023
c67f15c
Update 0-introduction.md
apoosrini Apr 5, 2023
81c5a99
Merge remote-tracking branch 'upstream/main'
apoosrini Apr 6, 2023
a036f96
Completed app zip files
apoosrini Apr 6, 2023
b654f7e
Added download links from Object Storage
apoosrini Apr 11, 2023
972be84
Merge remote-tracking branch 'upstream/main'
apoosrini Apr 26, 2023
2cc8c72
ocw23 folders
apoosrini Apr 26, 2023
337751d
Merge remote-tracking branch 'upstream/main'
apoosrini May 9, 2023
380aa05
23.1 changes
apoosrini May 11, 2023
f5bebb0
updated acknowledgements
apoosrini May 11, 2023
72c701b
Merge remote-tracking branch 'upstream/main'
apoosrini May 15, 2023
aa2f2df
Archive of 22.1
apoosrini May 15, 2023
a990375
Merge remote-tracking branch 'upstream/main'
apoosrini May 15, 2023
8dff5f2
Updated Movies and common
apoosrini May 15, 2023
c6e5356
Merge remote-tracking branch 'upstream/main'
apoosrini May 15, 2023
53ca1c1
Updated APEX version in Intro
apoosrini May 15, 2023
2c4204d
Feedback fixes
apoosrini May 30, 2023
efd94bd
Merge remote-tracking branch 'upstream/main'
apoosrini May 30, 2023
938f401
Merge remote-tracking branch 'upstream/main'
apoosrini Jun 6, 2023
433a43b
Grammar edits
apoosrini Jun 6, 2023
9a28681
Merge remote-tracking branch 'upstream/main'
apoosrini Jun 15, 2023
7a00f25
Sign up for APEX using Quickstart
apoosrini Jun 15, 2023
c2fb6e1
Merge remote-tracking branch 'upstream/main'
apoosrini Jun 21, 2023
8c0299f
Updated Lab 10
apoosrini Jun 21, 2023
369e9aa
Merge remote-tracking branch 'upstream/main'
apoosrini Jun 28, 2023
3b148ae
Added the support lab
apoosrini Jun 28, 2023
ad3eddb
Updated Getting Started Common Lab
apoosrini Jul 18, 2023
5d4b4db
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 20, 2023
244989c
Updated missing steps
apoosrini Jul 20, 2023
7eb14dd
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 24, 2023
c2ac87e
Changed the title of Spreadsheet workshop
apoosrini Jul 24, 2023
364bc96
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 26, 2023
5eaeb75
Embedded walkthrough videos
apoosrini Jul 26, 2023
2d6e0cc
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 27, 2023
865b3db
Grammar edits
apoosrini Jul 27, 2023
f43bcb9
Updated Need Help for OCW
apoosrini Jul 28, 2023
7886598
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 3, 2023
53853ab
Update 4-Update-table.md
apoosrini Aug 3, 2023
8f66f53
Rename 4-Update-table.md to 4-update-table.md
apoosrini Aug 3, 2023
49786dc
Delete task-definition.md
apoosrini Aug 3, 2023
a007bd0
Merge branch 'main' of https://github.com/apoosrini/apex
apoosrini Aug 3, 2023
31b3e5c
Update 4-update-table.md
apoosrini Aug 3, 2023
109fdbb
Fixing bugs
apoosrini Aug 3, 2023
053c676
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 4, 2023
c8970aa
Added video walkthrough files
apoosrini Aug 4, 2023
8da1d4e
Update intro.md
apoosrini Aug 4, 2023
a823863
Update manifest.json
apoosrini Aug 4, 2023
6306b8b
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 22, 2023
c080048
Updated screenshots in Common
apoosrini Aug 22, 2023
5f35b48
Merge remote-tracking branch 'upstream/main'
apoosrini Oct 16, 2023
0733675
APEX 23.2 updates to Spreadsheet
apoosrini Oct 16, 2023
e3b5e33
Naming issues fixed
apoosrini Oct 16, 2023
7a0aaf7
Merge branch 'main' into main
anooshapilli Oct 16, 2023
546224e
Update 1-sign-up-apex.md
apoosrini Oct 16, 2023
538d78e
Merge branch 'main' of https://github.com/apoosrini/apex
apoosrini Oct 16, 2023
9cd2fc4
Fixed naming, prereq, obj
apoosrini Oct 16, 2023
3f39846
Naming issues fixed
apoosrini Oct 16, 2023
01abbca
Issue fixes in common lab
apoosrini Oct 17, 2023
e541d51
Changes in common and delete unwanted files
apoosrini Oct 17, 2023
653e6e6
Removed duplicate folders
apoosrini Oct 17, 2023
699550e
Merge remote-tracking branch 'upstream/main'
apoosrini Oct 17, 2023
03c19d1
Merge remote-tracking branch 'upstream/main'
apoosrini Nov 10, 2023
9fb4009
Updated all labs to 23.2
apoosrini Nov 10, 2023
a1e253d
Merge remote-tracking branch 'upstream/main'
apoosrini Nov 15, 2023
9c4fd9e
Fixed the Manifest file errors
apoosrini Nov 15, 2023
d3f4efa
Merge remote-tracking branch 'upstream/main'
apoosrini Dec 4, 2023
f1c8986
Updated steps and text related to a bug
apoosrini Dec 4, 2023
ed56a8a
Merge remote-tracking branch 'upstream/main'
apoosrini Dec 13, 2023
a674a17
New Lab added
apoosrini Dec 13, 2023
0b75246
Update 5-improve-ux.md
apoosrini Dec 13, 2023
3c475ad
Update manifest.json
apoosrini Dec 13, 2023
e38bf08
Update 5-improve-ux.md
apoosrini Dec 14, 2023
e1caf2c
fixed issues for new lab
apoosrini Dec 18, 2023
af3b2a4
Merge remote-tracking branch 'upstream/main'
apoosrini Dec 18, 2023
9c9596a
Update introduction.md
apoosrini Dec 18, 2023
1b322e4
Merge remote-tracking branch 'upstream/main'
apoosrini Dec 18, 2023
0f81d8c
Merge remote-tracking branch 'upstream/main'
apoosrini Dec 19, 2023
0b53ad1
Updated to latest files
apoosrini Dec 19, 2023
dc3f1b9
renamed the images
apoosrini Dec 19, 2023
9d16919
Merge remote-tracking branch 'upstream/main'
apoosrini Dec 19, 2023
345ec54
Merge remote-tracking branch 'upstream/main'
apoosrini Jan 11, 2024
fb2a0b7
Fixed issues and feedback
apoosrini Jan 11, 2024
56a13cc
Title and text changes
apoosrini Jan 17, 2024
03386cd
Merge remote-tracking branch 'upstream/main'
apoosrini Jan 19, 2024
ef0bc92
Improve text and screenshots
apoosrini Jan 19, 2024
fcc435f
Improve text
apoosrini Jan 23, 2024
5460c69
Merge remote-tracking branch 'upstream/main'
apoosrini Jan 23, 2024
4cb73aa
Merge remote-tracking branch 'upstream/main'
apoosrini Jan 30, 2024
414dece
Fixed bugs
apoosrini Feb 1, 2024
d9fa623
Merge remote-tracking branch 'upstream/main'
apoosrini Feb 5, 2024
10ef1fa
Fix Grammar and issues
apoosrini Feb 5, 2024
75688cb
Merge remote-tracking branch 'upstream/main'
apoosrini Feb 7, 2024
a888b8f
Updated common lab
apoosrini Feb 7, 2024
ea684fe
Merge branch 'main' into main
hope-fisher Feb 9, 2024
0e4e913
Update 1-sign-up-apex.md
dannymgithub Feb 15, 2024
29bf8a1
Update introduction.md
dannymgithub Feb 15, 2024
ae5700c
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 20, 2024
3f4137a
Merge branch 'main' of https://github.com/apoosrini/apex
apoosrini Mar 20, 2024
8ed103a
updated par url
apoosrini Mar 20, 2024
44996d2
Update introduction.md
apoosrini Mar 20, 2024
7974812
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 28, 2024
631fb23
Update introduction.md
apoosrini Mar 28, 2024
6b54ff6
Update introduction.md
apoosrini Mar 28, 2024
7ba1aca
Grammar changes
apoosrini May 21, 2024
58fac53
Merge remote-tracking branch 'upstream/main'
apoosrini May 21, 2024
c689b62
11628 - New Workshop
apoosrini May 21, 2024
9c5436d
Merge remote-tracking branch 'upstream/main'
apoosrini Jun 12, 2024
f1fa81f
wms: 11628 -Lab 3 and Lab 4
apoosrini Jun 12, 2024
188d411
wms: 11628 - Lab 5
apoosrini Jun 12, 2024
9f4627d
Create nyc_high_schools.xlsx
apoosrini Jun 12, 2024
0d40ed6
Feedback fixes
apoosrini Jun 12, 2024
a275516
Grammar edits
apoosrini Jun 12, 2024
eec3cf9
issue fixes
apoosrini Jun 13, 2024
857b06f
issue fix
apoosrini Jun 13, 2024
99647fc
common lab
apoosrini Jun 13, 2024
9820264
Update 0-intro.md
apoosrini Jun 13, 2024
aead0ce
Update 0-intro.md
apoosrini Jun 13, 2024
e8744db
typo fixes
apoosrini Jun 17, 2024
a1bc5c9
grammar fixes
apoosrini Jun 17, 2024
a813bfe
self-qa check
apoosrini Jun 17, 2024
ae0447f
Merge remote-tracking branch 'upstream/main'
apoosrini Jun 18, 2024
73f28ce
Grammar fixes to Title
apoosrini Jun 18, 2024
2cbb8a7
Update 3-using-genai.md
apoosrini Jun 18, 2024
957dbd2
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 2, 2024
2b2835d
Feedback fixes
apoosrini Jul 2, 2024
051642f
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 8, 2024
40c116c
Typo Fix
apoosrini Jul 8, 2024
3fd5127
Issue fixes.
apoosrini Jul 17, 2024
a9fab54
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 17, 2024
11bbaa5
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 17, 2024
c835a44
Bug fixes
apoosrini Jul 17, 2024
4475056
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 18, 2024
bff57de
Screenshot fixes
apoosrini Jul 18, 2024
812cabb
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 18, 2024
e594b47
Screenshot mismatch fixed
apoosrini Jul 18, 2024
5414504
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 23, 2024
70d7e03
PAR URL update
apoosrini Jul 23, 2024
13b6308
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 23, 2024
4296f53
Changes in implementation to OCI Gen AI
apoosrini Jul 23, 2024
4f9c846
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 23, 2024
0653777
Update oci-gen-ai-details.png
apoosrini Jul 23, 2024
4d58c2a
Update 0-intro.md
apoosrini Jul 23, 2024
646fd73
issue fix
apoosrini Jul 23, 2024
0d8767d
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 24, 2024
d6c455b
Modify instructions for Download
apoosrini Jul 24, 2024
9e6270f
Update 3-configure-oci.md
apoosrini Jul 24, 2024
f63e882
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 24, 2024
ab11cf2
Update 0-intro.md
apoosrini Jul 24, 2024
19fd446
Merge remote-tracking branch 'upstream/main'
apoosrini Jul 31, 2024
0ce2b74
prerequisites
apoosrini Jul 31, 2024
5fdf835
feedback fixes
apoosrini Aug 1, 2024
d481645
sandbox manifest
apoosrini Aug 1, 2024
58559b8
sandbox manifest
apoosrini Aug 1, 2024
a8fe0e2
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 5, 2024
4166ba3
Typo fix
apoosrini Aug 5, 2024
50db035
oci genai Model name change
apoosrini Aug 5, 2024
6f7b1de
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 7, 2024
fdbff11
PAR url has changed
apoosrini Aug 7, 2024
7b98dfe
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 14, 2024
18f6537
manifest for ocw
apoosrini Aug 16, 2024
19090bf
updates for ocw24
apoosrini Aug 16, 2024
6ec4bfc
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 21, 2024
79be502
update manifest for ocw
apoosrini Aug 21, 2024
c876b56
Mike's UI changes
apoosrini Aug 21, 2024
d5ee075
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 26, 2024
8bcda9b
Issue fixes to Mike's changes
apoosrini Aug 26, 2024
c6925f8
Merge remote-tracking branch 'upstream/main'
apoosrini Aug 27, 2024
55a2c06
Updated with Mike's UI updates
apoosrini Aug 27, 2024
bacd636
Update apply-facet.png
apoosrini Aug 27, 2024
ea94577
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 3, 2024
52dbb4c
Screenshot change
apoosrini Sep 3, 2024
f59f03d
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 4, 2024
094015e
Changes to AI Vision for OCW
apoosrini Sep 4, 2024
5f48af6
Merge remote-tracking branch 'upstream/main'
apoosrini Sep 10, 2024
d46e996
Update 0-intro.md
apoosrini Sep 30, 2024
b40d8cc
Merge remote-tracking branch 'upstream/main'
apoosrini Nov 5, 2024
5786521
Update HOL 19 with feedback fixes
apoosrini Nov 5, 2024
29cbc7d
Merge remote-tracking branch 'upstream/main'
apoosrini Nov 6, 2024
913db99
Feedback fixes
apoosrini Nov 6, 2024
1bc572f
Merge remote-tracking branch 'upstream/main'
apoosrini Nov 11, 2024
17b7ca7
Fixed feedback
apoosrini Nov 11, 2024
6297532
Update 4-using-genai.md
apoosrini Nov 19, 2024
ac9e8dd
Update 4-using-genai.md
apoosrini Nov 19, 2024
0df7b9f
Merge remote-tracking branch 'upstream/main'
apoosrini Nov 25, 2024
d3bfcf8
Update manifest.json
apoosrini Nov 25, 2024
5d00364
Merge remote-tracking branch 'upstream/main'
apoosrini Jan 16, 2025
c69f4d5
Update oci-gen-ai-details.png
apoosrini Jan 16, 2025
6830d5a
Merge remote-tracking branch 'upstream/main'
apoosrini Feb 17, 2025
0e1660a
Updated workshop to 24.2
apoosrini Feb 17, 2025
e196139
Update 7-vector-search.md
apoosrini Feb 17, 2025
46908c2
Feedback fixes
apoosrini Feb 20, 2025
c55c641
Merge remote-tracking branch 'upstream/main'
apoosrini Mar 24, 2025
e19dfe6
24.2 updates
apoosrini Mar 24, 2025
4dbd096
Update OCI console pages in common lab
apoosrini Mar 25, 2025
4c6fecb
Updated screenshots with latest OCI console
apoosrini May 5, 2025
aa51740
Fixed the changes raised in PR
apoosrini May 5, 2025
fdf55d7
Merge remote-tracking branch 'upstream/main'
apoosrini May 5, 2025
31ea210
Merge remote-tracking branch 'upstream/main'
apoosrini May 12, 2025
eda7f01
acknowledgements update
apoosrini May 12, 2025
dde1d04
Merge remote-tracking branch 'upstream/main'
apoosrini May 13, 2025
9e5b1c8
Fixed bug with AI attributes
apoosrini May 13, 2025
3012354
Merge remote-tracking branch 'upstream/main'
apoosrini May 30, 2025
98e03c3
Moved Gen AI config to a common lab
apoosrini May 30, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions common-242/2-configure-oci/2-configure-oci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
# Configure a Generative AI Service in APEX

## Introduction

To use the native GenAI features in APEX, you must configure a Generative AI service in APEX. To configure a Generative AI service, you will first need to obtain an API key from your preferred AI provider. You can either choose **OCI Generative AI** or **OpenAI** as your AI provider.


In this lab, you use OCI Generative AI as the AI provider to build a conversational chatbot. To use the OCI Generative AI Service in APEX, you need to first configure the OCI API keys. In Oracle Cloud Infrastructure (OCI), API keys are used for secure authentication when accessing OCI resources through REST APIs.

OCI API keys consist of two parts: a **Public key** and a **Private key**. You use the OCI console to generate the Private/Public key pair.

**Note:**
- OCI Generative AI service is available in limited regions. To see if your cloud region supports OCI Generative AI service, visit the [documentation](https://docs.oracle.com/en-us/iaas/Content/generative-ai/overview.htm#regions).

- The screenshots in this workshop are taken using Dark Mode in APEX 24.2

Estimated Time: 10 Minutes

### Objectives

In this lab, you:

- Generate API Keys using OCI Console

### Downloads

If you are stuck or missed out on completing the previous labs, don't worry! Click [here](https://c4u04.objectstorage.us-ashburn-1.oci.customer-oci.com/p/EcTjWk2IuZPZeNnD_fYMcgUhdNDIDA6rt9gaFj_WZMiL7VvxPBNMY60837hu5hga/n/c4u04/b/livelabsfiles/o/labfiles%2Fnyc-starter-app.zip) to download the export file, which contains everything completed until Lab 2. To run the app, follow the steps described in the **Appendix Lab**:
- [Task 1: Import the App into an APEX Workspace](?lab=8-appendix&type=OCIGenAI#Task1:ImporttheAppintoanAPEXWorkspace)
- [Task 2: Update Web Credentials in Oracle APEX and Configure Generative AI](?lab=8-appendix&type=OCIGenAI#Task2:UpdateWebCredentialsinOracleAPEXandConfigureGenerativeAI)

## Task 1: Generate API Keys using OCI Console

Note: If you already have an OCI key pair, you may skip this lab.

To Generate the API Keys using OCI Console:

1. Login into your OCI Account.

![Add API Key](images/oci-login.png " ")

2. Click **Profile** at the top-right corner and select your username.

![Profile Menu](images/profile.png " ")

3. Switch to the **Tokens and keys** tab. Click **Add API key**.

![Tokens and keys page](images/add-api-key.png " ")

4. The Add API Key dialog is displayed. Select **Generate API Key Pair** to create a new key pair.

5. Click **Download Private Key**. A *.pem* file is saved to your local device. You do not need to download the public key.

*Note: You will use this private key while configuring a Generative AI service in the upcoming lab.*

6. Click **Add**.

![Profile Menu](images/add.png " ")

7. The key is added, and the Configuration File Preview is displayed. Copy and save the configuration file snippet from the text box into a notepad. You will use this information while configuring a Generative AI service in APEX.

![Profile Menu](images/configuration-preview.png " ")

## Task 2: Configure Generative AI Service

To use the Generative AI service in APEX, you need to first configure it at the workspace level.

1. From the App Builder, navigate to **Workspace Utilities** > **All Workspace Utilities**.

![Workspace homepage](images/ws-utilities.png ' ')

2. Select **Generative AI**.

![Workspace Utilities page](images/select-genai.png ' ')

3. Click **Create** to configure a Generative AI Service.

![Gen AI services page](images/create-genai.png ' ')

4. For this workshop, if you prefer to use OCI Generative AI Service as the AI provider, enter/select the following:

- AI Provider: **OCI Generative AI Service**
- Name: **OCI Gen AI**
- Static ID: **oci\_gen\_ai**
- Compartment ID: *Enter your OCI Compartment ID*. Refer to the [Documentation](https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/contactingsupport_topic-Locating_Oracle_Cloud_Infrastructure_IDs.htm#:~:text=Finding%20the%20OCID%20of%20a,displayed%20next%20to%20each%20compartment.) to fetch your Compartment ID. If you have only one compartment, then use the OCID from the configuration file you saved in Task 1 of this lab.
- Region: **us-chicago-1** (Currently, the OCI Generative AI Service is only available in limited regions)
- Model ID: **meta.llama-3.3-70b-instruct** (The pre-trained models are frequently deprecated. Refer to the [documentation](https://docs.oracle.com/en-us/iaas/Content/generative-ai/pretrained-models.htm#pretrained-models) for the latest pre-trained models.)
- Used by App Builder: Toggle the button to turn it **ON**. Note that the Base URL is auto generated.

![Gen AI services page](images/oci-gen-ai-details.png ' ')

- Credential: **Create New**

- **OCI User ID**: Enter the OCID of the Oracle Cloud user Account. You can find the OCID in the Configuration File Preview generated during the API Key creation.
Your OCI User ID looks similar to **ocid1.user.oc1..aaaaaaaa\*\*\*\*\*\*wj3v23yla**

- **OCI Private Key**: Open the private key (.pem file) downloaded in the previous task. Copy and paste the API Key.

![Private key file](images/private-key.png " ")

- **OCI Tenancy ID**: Enter the OCID for Tenancy. Your Tenancy ID looks similar to **ocid1.tenancy.oc1..aaaaaaaaf7ush\*\*\*\*cxx3qka**

- **OCI Public Key Fingerprint**: Enter the Fingerprint ID. Your Fingerprint ID looks similar to **a8:8e:c2:8b:fe:\*\*\*\*:ff:4d:40**

Click **Test Connection**.

![Gen AI services page](images/oci-test-connection.png ' ')

5. If the connection is successful, click **Create**.
If unsuccessful, verify if you have configured the IAM Policy on OCI correctly. Refer to the [Identity and Access Management](https://livelabs.oracle.com/pls/apex/r/dbpm/livelabs/run-workshop?p210_wid=624&p210_wec) workshop for more details.

![Gen AI services page](images/oci-genai-create.png " ")

## Summary
Congratulations! You've completed the lab.

You now know how to generate an API Key using OCI console and configure a Generative AI service in APEX.

You may now **proceed to the next lab**.



## Acknowledgments
- **Author** - Apoorva Srinivas, Senior Product Manager
- **Last Updated By/Date** - Apoorva Srinivas, Senior Product Manager, February 2025
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/api-keys.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/app-builder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/code-edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/domain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/oci-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added common-242/2-configure-oci/images/web-creds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
92 changes: 92 additions & 0 deletions common-242/3-configure-oci-keys/3-configure-oci-keys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Configure OCI API Keys and a Bucket

## Introduction

In this lab, you learn how to configure the OCI API keys and create buckets in OCI object storage. In Oracle Cloud Infrastructure (OCI), API keys are used for secure authentication when accessing OCI resources through REST APIs, and a bucket refers to a logical container used to store and manage data objects within an Object Storage service.

OCI API keys have two parts: a **Public key** and a **Private key**. You use the OCI console to generate the Private/Public key pair.

Estimated Time: 10 Minutes

### Objectives

In this lab, you:

- Generate API Keys using OCI Console.

- Create a Bucket in OCI Object Storage.

## Task 1: Generate API Keys using OCI Console

To Generate the API Keys using OCI Console:

1. Login into your OCI Account.

![Add API Key](images/oci-login.png " ")

2. Click **My Profile** at the top-right corner and select **User settings**.

![Profile Menu](images/profile.png " ")

3. Under **Tokens and keys** tab and click **Add API key**.

![Add API Key](images/api-keys.png " ")

4. The Add API key dialog is displayed. Select **Generate API key pair** to create a new key pair.

5. Click **Download private key**. A **.pem** file will be saved to your local device. You do not need to download the public key.

>*Note: You will use this private key while configuring the web credentials in Oracle APEX in the upcoming lab.*

6. Click **Add**.

![Profile Menu](images/add-api-key.png " ")

7. The key is added, and the Configuration file preview is displayed. Copy and save the configuration file snippet from the text box into a notepad. You will use this information to create Oracle APEX Web Credentials.

![Profile Menu](images/configuration-preview.png " ")

## Task 2: Create a Bucket in OCI Object Storage

To create a Bucket using OCI Console, login to your OCI Account.

1. To access the Object Storage service, click on the menu icon **(☰)** at the top-left corner.

![Navigate to storage](images/navigate-to-storage.png " ")

2. Under Storage, select **Buckets**.

![Select Bucket](images/select-bucket.png " ")

3. Select the compartment where you want to create the Bucket. You can choose an existing compartment or create a new one if needed. Now, select **Create Bucket**.

![Select Bucket](images/create-bucket.png " ")

4. Enter/select the following:

- Bucket Name: **OCIDocAI**

- Default Storage Tier: **Standard**

Click **Create**.

![Select Bucket](images/bucket-details.png " ")

5. Navigate to **OCIDocAI** Bucket.

![Select Bucket](images/bucket.png " ")

6. Copy and save **Bucket Name** and **Namespace** from the bucket details into a notepad. You will use this information to upload an invoice to OCI Object Storage using Invoke API.

![Select Bucket](images/bucket-created.png " ")

## Summary

You now know how to generate API Keys and create Bucket using the OCI console.

You may now proceed to the next lab.

## Acknowledgements

- **Author(s)** - Roopesh Thokala, Senior Product Manager; Ankita Beri, Product Manager
- **Last Updated By/Date** - Ankita Beri, Product Manager, May 2025
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 5 additions & 3 deletions nyc-genai-lab/0-intro/0-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ Estimated Time: 60 minutes
- If you choose OCI Gen AI as your AI provider, the prerequisites are as follows:
- A paid Oracle Cloud Infrastructure (OCI) account or a FREE Oracle Cloud account with $300 credits for 30 days to use on other services. Read more about it at: [oracle.com/cloud/free/](https://www.oracle.com/cloud/free/). The OCI account must be created in or subscribed to one of the regions that supports OCI Generative AI Service. Currently, OCI Generative AI Service is supported in the following regions:

- US Midwest (Chicago)
- Germany Central (Frankfurt)
- UK South (London)
- Brazil East (Sao Paulo)
- Germany Central (Frankfurt)
- Japan Central (Osaka)
- UAE East (Dubai)
- UK South (London)
- US Midwest (Chicago)


- OCI Generative AI service is available in limited regions. To see if your cloud region supports OCI Generative AI service, visit the [documentation](https://docs.oracle.com/en-us/iaas/Content/generative-ai/overview.htm#regions).

Expand Down
16 changes: 4 additions & 12 deletions nyc-genai-lab/3-configure-oci/3-configure-oci.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,19 @@ To Generate the API Keys using OCI Console:

![Profile Menu](images/profile.png " ")

3. Select a Compartment and click on the domain name.
3. Switch to the **Tokens and keys** tab. Click **Add API key**.

![Domain List](images/domain.png " ")
![Tokens and keys page](images/add-api-key.png " ")

4. Select **Users** from the left navigation menu. Select and click on the username for which you would like to create the API key.

![User list](images/select-user.png " ")

4. Under Resources at the bottom-left, select **API Keys** and click **Add API Key**.

![Add API Key](images/api-keys.png " ")

5. The Add API Key dialog is displayed. Select **Generate API Key Pair** to create a new key pair.
4. The Add API Key dialog is displayed. Select **Generate API Key Pair** to create a new key pair.

5. Click **Download Private Key**. A *.pem* file is saved to your local device. You do not need to download the public key.

*Note: You will use this private key while configuring a Generative AI service in the upcoming lab.*

6. Click **Add**.

![Profile Menu](images/add-api-key.png " ")
![Profile Menu](images/add.png " ")

7. The key is added, and the Configuration File Preview is displayed. Copy and save the configuration file snippet from the text box into a notepad. You will use this information while configuring a Generative AI service in APEX.

Expand Down
Binary file modified nyc-genai-lab/3-configure-oci/images/add-api-key.png
Binary file added nyc-genai-lab/3-configure-oci/images/add.png
Binary file modified nyc-genai-lab/3-configure-oci/images/profile.png