|
| 1 | +# Pre-requisites |
| 2 | + |
| 3 | +## Introduction |
| 4 | + |
| 5 | +In this lab, you can launch a pre-built demo of the semantic search and conversational search utilizing a RAG pipeline. |
| 6 | +To build it yourself step-by-step, you can skip to the next lab. |
| 7 | + |
| 8 | +Estimated Time: 15 minutes |
| 9 | + |
| 10 | +### Objectives |
| 11 | + |
| 12 | +In this lab, you will: |
| 13 | + |
| 14 | +- Deploy the Conversational Search Demo application via the Ressource Manager. |
| 15 | + |
| 16 | +The stack deploys a new VCN (if needed) a new cluster (if needed), the application (in a container inastance), and a load balancer. |
| 17 | + |
| 18 | +## Step 1: Prerequisites |
| 19 | + |
| 20 | +In this deployment, you can deploy a complete stack, creating a new VCN, new OpenSearch cluster, and deploying the app. The cluster takes some time to deploy, so if you already deployed the OpenSearch cluster in previous steps, you can opt to use the existing cluster. |
| 21 | + |
| 22 | +Confirm that the OpenSearch cluster is version 2.11. |
| 23 | + |
| 24 | +To use an OCI Generative AI connector with OCI Search with OpenSearch, you need a cluster configured to use OpenSearch version 2.11. |
| 25 | + |
| 26 | +By default, new clusters are configured to use version 2.11. To create a cluster, see Creating an OpenSearch Cluster. |
| 27 | + |
| 28 | +Please refer to **LAB2** **Task3** on how to connect to the OpenSearch Dashboard. |
| 29 | + |
| 30 | +You will also need a subscription to the Chicago or Frankfurt regions, which host the OCI GenAI infrastructure. |
| 31 | + |
| 32 | +## Step 2: Launch the Demo Stack |
| 33 | + |
| 34 | +The stack consists in a terraform script launched via Ressource Manager. |
| 35 | + |
| 36 | +Click the following link to get started: |
| 37 | + |
| 38 | +<a href="https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://objectstorage.us-chicago-1.oraclecloud.com/p/pzndeC45z4x_hSvQXWbmHETsui97i7ihHYd0U-Uahhjb8UWjxpzGpzjk3iCAcJAv/n/idehhejtnbtc/b/opensearch-demo-code/o/opensearch-convo.zip">Conversation Search Demo App Stack</a> |
| 39 | + |
| 40 | +## Step 3: Acknowledge Terms and Conditions |
| 41 | + |
| 42 | +First, acknowledge the Terms and Conditions for using the stack. |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +## Step 4: Select the Compartment |
| 48 | + |
| 49 | +Select the compartment to use. For this livelab, the `opensearch-livelab` compartment should be used, so the cluster can be re-used. |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +Click **Next** at the bottom of the page. |
| 54 | + |
| 55 | +## Step 5: Select the OpenSearch Cluster |
| 56 | + |
| 57 | +If you do not select any option, the stack will deploy a new VCN, a new OpenSearch cluster and the application. If you have stood up the OpenSearch cluster earlier, re-using will allow deploying the stack in a few minutes only, while a new cluster deployment may take up to 30min. |
| 58 | + |
| 59 | +Here we will re-use the cluster. |
| 60 | + |
| 61 | +**Click** the checkbox to **Use an Existing OpenSearch cluster*** |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +You will be prompted to enter the OCID of the OpenSearch cluster. |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | +## Step 6: Find the OpenSearch Cluster OCID |
| 70 | + |
| 71 | +- Duplicate your browser tab so you can easily return to the stack configuration, and in the new tab go to **Databases -> OpenSearch -> Clusters** to find the already deployed cluster |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +- **Select** the cluster `opensearch_cluster` created earlier. |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +- **Copy** the OCID of the cluster from the **Cluster Details**. |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +- **Paste** the OCID in the Demo Stack configuration tab |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +## Step 7: Configure Networking Information |
| 89 | + |
| 90 | +The application needs to be deployed in the same VCN and subnet as the cluster, so you will be prompted to enter the VCN and subnet information. |
| 91 | + |
| 92 | +**Note: It is important to select the correct VCN for the cluster, and the proper private and public subnets.** |
| 93 | + |
| 94 | +If you followed the labs from the start, you should only have 1 VCN in the compartment, as well as 1 private subnet and 1 public subnet. |
| 95 | + |
| 96 | +- Select the VCN. Make sure this is the VCN where the OpenSearch cluster was deployed. |
| 97 | + |
| 98 | +- Select the **private** subnet for the application. |
| 99 | + |
| 100 | +- Select the **public** subnet for the load balancer. |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +## Step 8: Deploy |
| 106 | + |
| 107 | +**Click** the **Next** button at the bottom of the page to start the deployment. |
| 108 | + |
| 109 | +The Stack will deploy and show logs |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | +## Step 9: Find the Application URL |
| 115 | + |
| 116 | +- Once done, the stack switches to green. |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | +- At this point, you can go look at the **outputs** to find the deployment URL |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | +- Alternatively you can scroll all the way down the logs to find the URL, or look for the load balancer (under Network -> Load Balancers) to find the public IP. |
| 125 | + |
| 126 | +- **Copy** the URL, and paste it in you browser |
| 127 | + |
| 128 | +## Step 10: Interact With the Application |
| 129 | + |
| 130 | +You should see the application interface in your browser. If it doesn't show right away, wait a minute or two. The application loads and embeds data at start up, which can take a couple minutes. |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | +The dataset here consists of file events from object storage. Files were uploaded, viewed and/or deleted by various users. Use the search to find out what files were uploaded, viewed or deleted, when and by whom. |
| 136 | + |
| 137 | +You can ask questions like: |
| 138 | + |
| 139 | +- Tell me about the files that were deleted. |
| 140 | +- Who uploaded file patient_3905? |
| 141 | +- Who viewed it? |
| 142 | +- Who deleted file patient_20926? |
| 143 | +- etc... |
| 144 | + |
| 145 | + |
| 146 | + |
| 147 | +To learn more about how this works, you can now proceed to the next lab, which guides you through the process the app uses step-by-step. |
| 148 | + |
| 149 | + |
| 150 | +## Acknowledgements |
| 151 | + |
| 152 | +* **Author** - Emmanuel Leroy |
| 153 | +* **Last Updated By/Date** - Emmanuel Leroy, September 2024 |
0 commit comments