In today’s data-driven world, the ability to ask questions and get immediate answers from your database is a game-changer. Oracle Select AI is a revolutionary developer assistant that allows both beginners and experts to interact with private enterprise data using natural language. By bridging the gap between Large Language Models (LLMs) and your specific database, Select AI makes it possible to derive value from both structured tables and unstructured text.
👉 Why Metadata is Important for Select AI
How Select AI Works: The Magic of Prompt Augmentation
Prompt augmentation bridges the gap between
natural language and SQL by enriching a user's plain English question with
specific database
metadata before it is processed by a
Large Language Model (LLM). This process ensures the AI
has the necessary context to understand a unique database schema and generate
accurate, executable code.\
Phase 1: Metadata Integration: Select AI automatically adds database metadata—such as table names, column names, data types, and comments—to your prompt.
Phase 2: Prompt Construction: This "augmented prompt" provides the LLM with the context it needs to understand your unique schema.
Phase 3: SQL Generation: The LLM uses its general reasoning to generate a syntactically correct SQL query specific to your database.
The Core Components of Select AI
To deliver this seamless experience, Select AI relies on several tightly integrated components:
·
AI Profiles: These are predefined configurations created using the dbms_cloud_ai package. A
profile specifies the AI provider (like OCI Gen AI or OpenAI), the
specific model to use (e.g., GPT-4o), and the Object List of tables the
AI is allowed to see.
LLM Providers: Select AI is flexible, supporting a wide range of providers including OCI Generative AI, OpenAI, Azure, Cohere, Google Gemini, and Anthropic.
AI Vector Search: For handling unstructured data, Select AI integrates with 23ai AI Vector Search to perform semantic similarity searches based on the "meaning" of the data rather than just keywords.
o
run_sql: The default action that generates and executes a query.
o
show_sql: Displays the generated code for review.
o
explain_sql: Provides a step-by-step natural language breakdown
of what the SQL query is doing.
o
narrate: Sends the query results back to the LLM to generate a
conversational summary of the data.
Select AI isn't just for querying tables. It includes advanced features that address modern enterprise needs:
Retrieval Augmented Generation (RAG) RAG allows you to give an LLM new, private knowledge from documents like PDFs or blog posts without needing to "fine-tune" the model. Select AI automates the creation of vector indexes and the retrieval of relevant text chunks to provide authoritative answers based on your internal knowledge base.Security and Privacy First
Security is built into the
architecture. Select AI enforces all existing Oracle security policies
and data access rules for every query. While most actions only share metadata,
it is important to note that the narrate action is the exception—it sends the actual rowset to the
LLM to create a summary. For highly sensitive environments, Oracle offers the
ability to use private endpoints or privately hosted models to ensure
data never leaves your controlled network.