Skip to content

Commit

Permalink
WMSID: 11620 - First commit for PLSQL RAG Livelab (#133)
Browse files Browse the repository at this point in the history
First commit for PLSQL RAG Livelab

More commits can come tomorrow as rest of the team access it and makes updates while testing.
  • Loading branch information
rrumale authored May 16, 2024
1 parent c90d50c commit f576611
Show file tree
Hide file tree
Showing 47 changed files with 861 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plsql-rag-23ai/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# oracle-ai-vector-search-live-labs
LiveLabs for RAG with AI Vector Search using PLSQL
Binary file added plsql-rag-23ai/introduction/images/rag_image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions plsql-rag-23ai/introduction/introduction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# AI Vector Search - Building Secure RAG applications with Oracle AI Vector Search and PLSQL

## About this Workshop

Retrieval Augmented Generation (RAG) plays a pivotal role in Generative AI, offering significant advantages to Gen AI applications. Here are three compelling reasons why integrating RAG into your Gen AI setup is paramount:

1. Guarding against Misinformation: Large Language Models (LLMs) may generate inaccurate or irrelevant responses if they lack training on specific prompts. Re-training LLMs to align with desired responses incurs substantial costs.
2. Safeguarding Confidentiality: Enterprises often deal with sensitive data and seek to harness the capabilities of Gen AI with LLMs economically.
3. Real-time Responsiveness: Enterprises rely on processing streaming data promptly, necessitating LLMs to provide rapid responses.
4. RAG addresses these challenges by enabling the inclusion of vital context alongside prompts provided to LLMs. In our laboratory scenario, this context comprises business information stored in Oracle Database 23ai as vectors.
5. Leveraging Oracle PLSQL & the Oracle AI Vector Search functionality extend your application capabilities seamless retrieval of context.


![RAG image](images/rag_image.png)

In this workshop, you'll construct a straightforward yet robust RAG application utilizing Oracle AI Vector Search using PLSQL code. This application serves as a versatile blueprint applicable across various use cases, with Oracle Database 23ai serving as an optimal vector store for storing relevant context.

Estimated Time: 15 min

### **About Oracle AI Vector Search**

Oracle AI Vector Search is a feature of Oracle Database 23ai. It allows the searching of AI vectors in the database. Oracle AI Vector Search supports fast search with a number of indexing strategies and can handle very large amounts of vector data.

AI Vector Search makes it possible for LLMs to query private business data using a natural language interface and helps LLMs provide more accurate and relevant results. In addition, AI Vector Search allows developers to easily add semantic search capabilities to both new applications and existing applications

### Objectives

The labs in this workshop focus on the following:
* Get familiar with the new Vector Datatype & PLSQL packages for manipulating vector data and operations
* Using the PLSQL for developing applications with Large Language Models (LLMs)
* Using Oracle AI Vector Search to store and search vectors in Oracle Database 23ai
* Access to popular LLMs and genrate output
* Run a complete sample appliciation to implement all learnings

### Prerequisites

- An Oracle LiveLabs Account

## Learn More

See below for more information on Oracle Database 23ai and Oracle AI Vector Search

* [Oracle Database 23ai Documentation](https://docs.oracle.com/en/database/oracle/oracle-database/)
* [Oracle AI Vector Search User's Guide](https://docs.oracle.com/en/database/oracle/oracle-database/23/vecse/index.html)
* [Oracle AI Vector Search Blog](https://blogs.oracle.com/database/post/oracle-announces-general-availability-of-ai-vector-search-in-oracle-database-23ai)

You may now [proceed to the next lab](#next).

## Acknowledgements
* **Authors** - Milton Wan, Vijay Balebail, Douglas Hood
* **Last Updated By/Date** - Milton Wan, May 2024
Binary file added plsql-rag-23ai/lab1/images/aidemofolder.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 plsql-rag-23ai/lab1/images/browser.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 plsql-rag-23ai/lab1/images/cellwithcode.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 plsql-rag-23ai/lab1/images/clickrun.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 plsql-rag-23ai/lab1/images/ignorewarning1.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 plsql-rag-23ai/lab1/images/livelabsshkey.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 plsql-rag-23ai/lab1/images/ocid.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 plsql-rag-23ai/lab1/images/openaikey.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 plsql-rag-23ai/lab1/images/openjupyterlab.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 plsql-rag-23ai/lab1/images/opennotebook.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 plsql-rag-23ai/lab1/images/opennotebooklab1.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 plsql-rag-23ai/lab1/images/openragnotebook.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.
Binary file added plsql-rag-23ai/lab1/images/ragdesign.jpg
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 plsql-rag-23ai/lab1/images/ragdesign.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 plsql-rag-23ai/lab1/images/ragnotebookopen.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 plsql-rag-23ai/lab1/images/ragwithoracle23ai.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 plsql-rag-23ai/lab1/images/refresh.jpg
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 plsql-rag-23ai/lab1/images/runjupyter.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 plsql-rag-23ai/lab1/images/selectcell.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 plsql-rag-23ai/lab1/images/selectcodesnippet.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.
Binary file added plsql-rag-23ai/lab1/images/step0.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 plsql-rag-23ai/lab1/images/step1.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 plsql-rag-23ai/lab1/images/zoom.png
Loading

0 comments on commit f576611

Please sign in to comment.