Skip to content

Commit

Permalink
WMS ID: 11620 - correction and text alignment (#164)
Browse files Browse the repository at this point in the history
correction and text alignment

Hiding private information in images
  • Loading branch information
rrumale committed Aug 21, 2024
1 parent a3dcfe1 commit 70b517f
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 32 deletions.
Binary file modified plsql-rag-23ai/lab0/images/add-api-key-fingerprint.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 modified plsql-rag-23ai/lab0/images/api-configfilepreview.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 modified plsql-rag-23ai/lab0/images/tenancy-ocid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 27 additions & 29 deletions plsql-rag-23ai/lab0/lab0.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

In this lab you will setup access from ADB to OCI GenAI service.

Oracle's GenAI service is an LLM service from Oracle Cloud Infrastructure (OCI). The OCI GenAI service provides access to several LLMs that you can pick from. To enable client applications to access these services, authentication is required. This is accomplished through public and private api keys. The public key is created in the user cloud account, while the corresponding private key is stored on the server where the application runs.

*Estimated Lab Time*: 10 minutes

### Objectives:
Expand All @@ -12,10 +14,6 @@ In this lab you will setup access from ADB to OCI GenAI service.
### Prerequisites:
* You need an Oracle Cloud tenancy and the ability to grant privileges to groups


## **Introduction**
Oracle's GenAI service is an LLM service from Oracle Cloud Infrastructure (OCI). The OCI GenAI service provides access to several LLMs that you can pick from. To enable client applications to access these services, authentication is required. This is accomplished through public and private api keys. The public key is created in the user cloud account, while the corresponding private key is stored on the server where the application runs.

## **Task 1:** Get your credential information to access OCI APIs
### Fingerprint and private key

Expand All @@ -39,7 +37,7 @@ Oracle's GenAI service is an LLM service from Oracle Cloud Infrastructure (OCI).

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

1. Click the **Add** button in the **Add API Key** dialog. The *Configuration File Preview* dialog opens. Follow the instructions in the **Note** to copy the contents of the text box into a file.
6. Click the **Add** button in the **Add API Key** dialog. The *Configuration File Preview* dialog opens. Follow the instructions in the **Note** to copy the contents of the text box into a file.

![](images/api-configfilepreview.png " ")

Expand Down Expand Up @@ -88,30 +86,30 @@ Note: This policy allows any database in the specified compartment to access OCI
2. Change directory to /home/oracle/AIdemo
3. Using an editor such as vi, edit and replace the credential information below with your information in the file create_credential.sql:

user\_ocid
tenancy\_ocid
compartment_ocid
private\_key - Important Note: Put the private key all on a single line.
fingerprint

```
<copy>
declare
jo json_object_t;
begin
jo := json_object_t();
jo.put('user_ocid','ocid1.user.oc1..aabbalbbaa1112233aabb...');
jo.put('tenancy_ocid','ocid1.tenancy.oc1..aaaaalbbbb1112233aaaab...');
jo.put('compartment_ocid','ocid1.compartment.oc1..ababalabab1112233ababa...');
jo.put('private_key','AAAaaaBBB11112222333...AAA111AAABBB222aaa1a...');
jo.put('fingerprint','01:1a:a1:aa:12:a1:12:1a:ab:12:01:ab:...');
dbms_vector.create_credential(
credential_name => 'GENAI_CRED',
params => json(jo.to_string));
end;
/
</copy>
```
* user\_ocid
* tenancy\_ocid
* compartment_ocid
* private\_key - *(Important Note: Put the private key all on a single line.)*
* fingerprint

```
<copy>
declare
jo json_object_t;
begin
jo := json_object_t();
jo.put('user_ocid','ocid1.user.oc1..aabbalbbaa1112233aabb...');
jo.put('tenancy_ocid','ocid1.tenancy.oc1..aaaaalbbbb1112233aaaab...');
jo.put('compartment_ocid','ocid1.compartment.oc1..ababalabab1112233ababa...');
jo.put('private_key','AAAaaaBBB11112222333...AAA111AAABBB222aaa1a...');
jo.put('fingerprint','01:1a:a1:aa:12:a1:12:1a:ab:12:01:ab:...');
dbms_vector.create_credential(
credential_name => 'GENAI_CRED',
params => json(jo.to_string));
end;
/
</copy>
```
4. Go to /home/oracle/AIdemo
5. sqlplus vector/vector@freepdb1
6. SQL> @dropcred.sql
Expand Down
4 changes: 2 additions & 2 deletions plsql-rag-23ai/prepare-setup/prepare-setup.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Prepare Setup

## Introduction
This lab will show you how to download the Oracle Resource Manager (ORM) stack zip file needed to setup the resource needed to run this workshop. This workshop requires a compute instance running the *Oracle Database 19c on LiveLabs* Marketplace image and a Virtual Cloud Network (VCN).
This lab will show you how to download the Oracle Resource Manager (ORM) stack zip file needed to setup the resource needed to run this workshop. This workshop requires a compute instance running the *Oracle Database 23ai on LiveLabs* Marketplace image and a Virtual Cloud Network (VCN).

*Estimated Lab Time:* 10 minutes

Expand Down Expand Up @@ -48,4 +48,4 @@ You may now [proceed to the next lab](#next).
## Acknowledgements
* **Author** - Rene Fontcha, LiveLabs Platform Lead, NA Technology
* **Contributors** - Meghana Banka
* **Last Updated By/Date** - Rene Fontcha, LiveLabs Platform Lead, NA Technology, October 2021
* **Last Updated By/Date** - Rajeev Rumale, Database Product Management, August 2024
2 changes: 1 addition & 1 deletion plsql-rag-23ai/workshops/freetier/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"title": "Prepare Setup",
"description": "How to download your ORM stack and update security rules for an existing VCN",
"publisheddate": "09/28/2020",
"publisheddate": "08/20/2024",
"filename": "../../prepare-setup/prepare-setup.md"
},
{
Expand Down

0 comments on commit 70b517f

Please sign in to comment.