diff --git a/select-ai/README.md b/select-ai/README.md new file mode 100644 index 0000000..70466f0 --- /dev/null +++ b/select-ai/README.md @@ -0,0 +1,42 @@ +# About Select AI + +**Select AI** — a feature of **Oracle Autonomous AI Database** — supports building AI-enabled applications and tools that leverage large language models (LLMs) and transformers from a wide range of AI providers or privately hosted AI models. + +Using SQL, PL/SQL, and Python APIs, Select AI allows you to query data using natural language prompts against your database data, leverage retrieval-augmented generation (RAG) for LLM responses grounded in your trusted data sources, and generate synthetic data, among other capabilities. + +For natural language-to-SQL (NL2SQL) generation, you can ask questions like: +*“Show me last quarter’s top-selling products.”* +Select AI — using your selected LLM — converts the question into SQL and runs it securely against your database. You can view the generated SQL, produce an explanation of each query step, automatically run the query, or receive a natural-language narration of the results. + +Select AI serves as a productivity tool for experienced SQL developers and empowers non-experts to extract insights without needing to understand database schemas or SQL syntax. + +--- + +## Key Features + +- **Retrieval-augmented generation (RAG)** using AI Vector Search for precise, context-aware answers +- **Synthetic data generation** for safer, scalable development and testing +- **Text translation and summarization** capabilities +- **Select AI Agents** to build, orchestrate, and run AI agents that automate end-to-end, data-driven workflows + +--- + +## Resources + +- [Autonomous AI Database Select AI](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/select-ai-about.html) +- [Getting Started with Select AI](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/select-ai-get-started.html) +- [DBMS_CLOUD_AI](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/dbms-cloud-ai-package.html) +- [DBMS_CLOUD_AI_AGENT](https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/dbms-cloud-ai-agent-package.html) +- [Blog: Chat with Your Data in Autonomous Database Using Generative AI](https://blogs.oracle.com/ai-and-database/post/chat-with-your-data-in-autonomous-database-using-generative-ai) +- [LiveLabs: Develop Apps Using GenAI, Autonomous Database, and React](https://apexapps.oracle.com/pls/apex/dbpm/r/livelabs/view-workshop?wid=3863) +- [LiveLabs: Develop AI RAG Apps with Autonomous Database Select AI](https://apexapps.oracle.com/pls/apex/dbpm/r/livelabs/view-workshop?wid=4007) +- [Ask Oracle – sample Oracle APEX application](https://github.com/oracle-devrel/oracle-autonomous-database-samples/tree/main/apex/Ask-Oracle) + +--- + +## Folder Structure + +- **sql/** +- **python/** +- **r/** +- **notebooks/** diff --git a/select-ai/notebooks/.gitkeep b/select-ai/notebooks/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/select-ai/notebooks/.gitkeep @@ -0,0 +1 @@ + diff --git a/select-ai/python/.gitkeep b/select-ai/python/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/select-ai/python/.gitkeep @@ -0,0 +1 @@ + diff --git a/select-ai/python/SelectAI4Py -0- Prerequisites and Setup.dsnb b/select-ai/python/SelectAI4Py -0- Prerequisites and Setup.dsnb new file mode 100644 index 0000000..da582cc --- /dev/null +++ b/select-ai/python/SelectAI4Py -0- Prerequisites and Setup.dsnb @@ -0,0 +1 @@ +[{"layout":"jupyter","isRunnable":true,"template":null,"templateConfig":null,"isEditable":true,"name":"SelectAI4Py -0- Prerequisites and Setup","description":null,"type":"low","paragraphs":[{"col":0,"visualizationConfig":null,"hideInIFrame":false,"selectedVisualization":null,"title":null,"message":[],"enabled":true,"result":{"startTime":1760327449267,"interpreter":"md.low","endTime":1760327449718,"results":[],"taskStatus":"SUCCESS","forms":"[]","status":"SUCCESS"},"sizeX":0,"hideCode":true,"width":0,"hideResult":true,"dynamicFormParams":"{}","row":0,"hasTitle":false,"hideVizConfig":true,"hideGutter":true,"relations":[],"forms":"[]"},{"col":0,"visualizationConfig":null,"hideInIFrame":false,"selectedVisualization":"html","title":null,"message":["%md","# Oracle Select AI for Python: Setting up the environment","","This notebook prepares your Autonomous Database instance to use Oracle Select AI for Python.","","This setup must be completed before using NL2SQL, RAG, Synthetic Data Generation, and other Select AI features.","","#### What is Select AI?","","Select AI enables SQL, PL/SQL, and Python access to Large Language Models (LLMs) and transformers from a range of AI providers from your database. ","It supports SQL query generation from natural language prompts against your database data (NL2SQL), retrieval augmented generation (RAG), and synthetic data generation (SDG), among other features. ","","See this video<\/a> for an introduction to Select AI.","","#### Setup Overview","","To configure Select AI, both the ADMIN and a non-ADMIN users are required. You will need to specify access credentials to the AI provider(s) you want to use and, for RAG, cloud storage. ","Note that you can also use private endpoints to host your LLMs. ","","**ADMIN Tasks:**","- Grant permissions to OML users","- Configure network access (if needed)","","**Select AI User Tasks:**","- Create cloud authentication credentials","- Create AI profiles","- Create vector indexes as needed in support of RAG","","","> **Note:** This notebook includes examples based on OCI Generative AI Service. However multiple other AI providers are supported. ","Users must have an account with a compatible AI provider API and provide access to Autonomous Database via database credentials.","Consult the Select AI documentation<\/a> for details.","","Copyright (c) 2025 Oracle Corporation ","###### The Universal Permissive License (UPL), Version 1.0<\/a>","---"],"enabled":true,"result":{"startTime":1760327450070,"interpreter":"md.low","endTime":1760327450440,"results":[{"message":"

Oracle Select AI for Python: Setting up the environment<\/h1>\n

This notebook prepares your Autonomous Database instance to use Oracle Select AI for Python.<\/p>\n

This setup must be completed before using NL2SQL, RAG, Synthetic Data Generation, and other Select AI features.<\/p>\n

What is Select AI?<\/h4>\n

Select AI enables SQL, PL/SQL, and Python access to Large Language Models (LLMs) and transformers from a range of AI providers from your database.\nIt supports SQL query generation from natural language prompts against your database data (NL2SQL), retrieval augmented generation (RAG), and synthetic data generation (SDG), among other features.<\/p>\n

See this video<\/a> for an introduction to Select AI.<\/p>\n

Setup Overview<\/h4>\n

To configure Select AI, both the ADMIN and a non-ADMIN users are required. You will need to specify access credentials to the AI provider(s) you want to use and, for RAG, cloud storage.\nNote that you can also use private endpoints to host your LLMs.<\/p>\n

ADMIN Tasks:<\/strong><\/p>\n