Details
This page shows version v0.0.0 (dev). The current version can be found here.

The Oracle AI Optimizer and Toolkit (the AI Optimizer) provides a streamlined environment where developers and data scientists can explore the potential of Generative Artificial Intelligence (GenAI).

By integrating Oracle AI Database Vector Search and SQLcl MCP with familiar Open Source Software (OSS), the AI Optimizer enables users to enhance existing Language Models through Retrieval Augmented Generation (RAG) and Natural Language to SQL (NL2SQL).

This method significantly improves the accuracy of AI models, helping to avoid common issues such as knowledge cut-off and hallucinations.

AI Optimizer integrations
Familiar OSS components*

* Project names and logos are shown for identification purposes only. Unless expressly stated, their use does not imply affiliation with, sponsorship by, or endorsement by Oracle or the respective project owners.

Features

The AI Optimizer brings together the capabilities you need to build, test, and refine GenAI solutions on the Oracle AI Database:

Getting Started

The AI Optimizer is available to install in your own environment, which may be a developer’s desktop, on-premises data center environment, or a cloud provider. It can be run either on bare-metal, within a container, or in a Kubernetes Cluster.

Prefer a Step-by-Step?

The Walkthrough is a great way to familiarize yourself with the AI Optimizer and its features in a development environment.

Prerequisites

  • Python 3.11 (for running Bare-Metal)
  • Container Runtime e.g. docker/podman (for running in a Container)
  • Access to a Chat Model, and an Embedding Model for RAG:
    • API Keys for Third-Party Models
    • On-Premises Models*
  • Oracle AI Database incl. Oracle AI Database Free

*Oracle recommends running On-Premises Models on hardware with GPUs. For more information, please review the AI Optimizer documentation.

What do I actually need?

The AI Optimizer will start without any AI model or database configured. However, to interact with language models, configure or enable a chat model. To persist settings across restarts and to enable features like RAG, NL2SQL and the Testbed, at a minimum a database should be configured.

Available deployment methods:

Bare-Metal Installation

To run the application on bare-metal, download the latest release:

  1. Uncompress the release in a new directory. For example:

    mkdir ai-optimizer
    tar zxf ai-optimizer-src.tar.gz -C ai-optimizer
    
    cd ai-optimizer
  2. Create and activate a Python Virtual Environment:

    cd ai-optimizer
    python3.11 -m venv .venv
    source .venv/bin/activate
    pip3.11 install --upgrade pip wheel uv
  3. Install the Python modules:

    uv pip install -e ".[all]"
  4. (Optional) Create an environment file to pre-configure the application:

    cp src/.env.example src/.env.dev

    Edit src/.env.dev as needed. See Environment Variables for details.

  5. Start the application:

    python src/entrypoint.py client
  6. Navigate to http://localhost:8501.

  7. Configure the AI Optimizer.

Container Installation

Same… but Different

The documentation will reference podman commands. If applicable to your environment, podman can be substituted with docker. If you are using docker, consider aliasing the podman command:

alias podman=docker.

To run the application in a container, download the latest release:

  1. Uncompress the release in a new directory. For example:

    mkdir ai-optimizer
    tar zxf ai-optimizer-src.tar.gz -C ai-optimizer
    
    cd ai-optimizer
  2. Build the ai-optimizer-aio image.

    Note: MacOS Silicon users may need to specify --arch amd64

    podman build -f src/Dockerfile -t ai-optimizer-aio .
  3. Start the Container:

    podman run -p 8501:8501 -it --rm ai-optimizer-aio
  4. Navigate to http://localhost:8501.

  5. Configure the AI Optimizer.

Oracle Cloud Infrastructure

The AI Optimizer can easily be deployed using Infrastructure as Code (IaC) into Oracle Cloud Infrastructure (OCI).

OCI deployment options include:

  • An Always-Free Installation
  • Simple Virtual Machine Installation
  • Advanced Oracle Kubernetes Engine

To get started, review the IaC documentation.