Skip to content

Commit

Permalink
Included object storage images in Update set-up-help-chat.md (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
garimasharma024 authored Jul 11, 2024
1 parent 9a0cdc6 commit 7043e09
Showing 1 changed file with 32 additions and 14 deletions.
46 changes: 32 additions & 14 deletions analytics/sprint-run-heatwave-genai/set-up-help-chat.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,57 @@

This lab demonstrates to use the vector store functionality and use HeatWave Chat to create an AI-powered Help chat that refers to the HeatWave user guide to respond to HeatWave related queries. 

**Note**: This lab assumes that you’re familiar with the HeatWave database systems.
**Note**: This lab assumes that you’re familiar with the HeatWave Database Systems.

## Before You Begin

1. [Connect to your HeatWave Database System](https://docs.oracle.com/en-us/iaas/mysql-database/doc/compute-instance.html#GUID-6087DA45-06E0-44AD-9CAB-0FC37423A07A).
To run this quickstart, you need HeatWave Database System version `9.0.0 - Innovation` or higher. 
To run this quickstart, you need HeatWave Database System version `9.0.0 - Innovation` or higher.

1. If not already done, [add a HeatWave Cluster to your database system](https://docs.oracle.com/en-us/iaas/mysql-database/doc/adding-heatwave-cluster.html).
1. If not already done, [enable HeatWave Lakehouse on the database system](https://docs.oracle.com/en-us/iaas/mysql-database/doc/managing-heatwave-cluster.html#MYAAS-GUID-1E6279C0-B7DB-4110-975B-2812846E3CD7).
1. If not already done, [enable HeatWave Lakehouse on the database system](https://docs.oracle.com/en-us/iaas/mysql-database/doc/managing-heatwave-cluster.html#MYAAS-GUID-1E6279C0-B7DB-4110-975B-2812846E3CD7).

1. If not already done, enable the database system to access an OCI Object Storage bucket. For more information, see [Resource Principals](https://dev.mysql.com/doc/heatwave/en/mys-hw-resource-principal.html).

## Create an Object Storage Bucket  

1. Download the [HeatWave user guide PDF (A4) - 1.7Mb](https://downloads.mysql.com/docs/heatwave-en.a4.pdf).
1. Go to [cloud.oracle.com](cloud.oracle.com).
1. Open the navigation menu and click **Storage**.
1. Under **Object Storage & Archive Storage**, click **Buckets**.
1. In the [OCI Console](cloud.oracle.com), open the navigation menu and click **Storage**, and then click **Buckets** under **Object Storage & Archive Storage**.

![Open Storage Buckets page](images/storage_buckets.png)

1. Under **List Scope**, select a compartment from the list. All buckets in that compartment are listed in tabular form.
This is the compartment where the bucket you create is located.
1. Click **Create Bucket**. The **Create Bucket** dialog box appears.
1. In the **Bucket Name** field, enter`quickstart_bucket`.

1. Click **Create Bucket**.

![Open Storage Buckets page](images/create_bucket.png)

1. On the **Create Bucket** dialog box that appears, in the **Bucket Name** field, enter`quickstart_bucket`.

![Open Storage Buckets page](images/quickstart_bucket.png)

1. Click **Create**. The bucket is listed with all over buckets available in that compartment in tabular form.

## Upload the PDF File to the Object Storage Bucket

1. On the Buckets page, select `quickstart_bucket`. The buckets **Details** page appears.
1. Under **Objects**, click **Upload**. The **Upload Objects** dialog box appears.
1. In the **Object Name Prefix** field, enter `/quickstart`.
1. In the **Choose Files from your Computer**, click **select files** to upload the `heatwave-en.a4.pdf` which you downloaded in the previous section.
1. After the file upload is complete, click **Close** to close the **Upload Objects** dialog.
1. Under **Objects**, click **Upload**.

![Open Storage Buckets page](images/upload_button.png)

1. On the **Upload Objects** dialog box that appears, do the following:

1. In the **Object Name Prefix** field, enter `/quickstart`.
1. In the **Choose Files from your Computer**, click **select files** to upload the `heatwave-en.a4.pdf` which you downloaded in the previous section.
1. Click **Upload**.

![Open Storage Buckets page](images/upload_objects_dialog.png)

1. After the file upload is complete, click **Close** to close the **Upload Objects** dialog.

## Setting Up the Vector Store

1. From the terminal of your local machine, after you've connected to your DB system, create a new database:
1. After you've connected to your DB system, on your local machine, , create a new database:

```mysql
create database quickstart_db;
Expand Down

0 comments on commit 7043e09

Please sign in to comment.