Skip to content

Commit

Permalink
WMS ID: 11619 LiveLabs ID: 3927 (#119)
Browse files Browse the repository at this point in the history
* New repo for RAG and Oracle AI Vector Search

Files for RAG and Oracle AI Vector Search LiveLabs

* Only available in green button

Removing folder for running on your own tenancy.  Only green button for the lab. for now.

* Added links to Oracle 23ai documentation

* Added step to copy ocid to jupyter clipboard

ocid copied to clipboard

* Small edit to prep-env

save to saved
  • Loading branch information
mw-orcl authored May 2, 2024
1 parent e5ab74f commit 361d526
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
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 langchain-rag-23ai/lab1/rag1.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Let's import the libraries.

![Run code in Jupyter](images/selectcodecellrun.png)

You may get a warning message as shown above. You can ignore this and click **Run** to proceed.

```python
# Import libraries and modules

Expand Down Expand Up @@ -251,10 +253,10 @@ Note: Embedding models are used to vectorize data. To learn more about embedding

**Choose an LLM to generate your response**

You have 3 choices in this lab. Choose only one, but you can go back and choose a different one to see its response. Just go back to the LLM cell and run it. Note: For OpenAI, you need to get an API key from openai.com.
You have 3 choices in this lab. Choose only one, but you can go back and choose a different one to see its response. Just go back to the LLM cell and run it. Note: For OpenAI, you CANNOT run this in the LiveLabs environment. This sample code is for informational purposes so you can run this example in your own environment.

* Choice 1 - OCI GenAI LLM with meta.llama-2.70b-chat
* Choice 2 - OpenAI ChatGPT 3.5 (Requires OpenAI API key)
* Choice 2 - OpenAI ChatGPT 3.5 (CANNOT run in this LiveLabs environment)
* Choice 3 - OCI GenAI LLM with Cohere Command

Note: To learn more about using other LLMs and accessing LLMs with secure API keys, see the LiveLabs on LLMs for Oracle AI Vector Search.
Expand Down Expand Up @@ -384,5 +386,5 @@ You may now [proceed to the next lab](#next).


## Acknowledgements
* **Authors** - Vijay Balebail, Milton Wan, Doug Hood, Rajeev Rumale
* **Authors** - Vijay Balebail, Milton Wan, Douglas Hood, Rajeev Rumale
* **Last Updated By/Date** - Milton Wan, April 2024
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.
10 changes: 7 additions & 3 deletions langchain-rag-23ai/prepare-env/prep-env.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ In this lab, you will:

## Task 1: Retrieve the Compartment OCID

1. On LiveLabs before launching remote desktop, copy the Compartment OCID and save it, then Launch Remote Desktop.
1. On LiveLabs before launching remote desktop, you should have copied the Compartment OCID and saved it.

![LiveLabs launch lab](images/lllaunchlab.png)

2. Once your noVNC session has started open the **.env** file from the terminal with vi editor in the /home/oracle/AIdemo directory.
2. Once your noVNC session has started copy your OCID to the noVNC Clipboard.

![LiveLabs launch lab](images/copyocid.png)

3. Open the **.env** file from the terminal with vi editor in the /home/oracle/AIdemo directory.

![vi editor](images/vienvpwd.png)

3. In vi editor, position the cursor right after the variable COMPARTMENT_OCID=

4. Hit **ESC** key in vi and type the **i** key to go to insert mode. Insert the OCID you copied to the variable COMPARTMENT_OCID. If there is already a value there, remove it and add yours as shown.
4. Hit **ESC** key in vi and type the **i** key to go to edit mode. Delete the existing key if there is one. Insert the OCID you copied to the Clipboard to COMPARTMENT_OCID=.

5. Hit **ESC** key again, and type **:wq** to save the .env file.

Expand Down

0 comments on commit 361d526

Please sign in to comment.