Quick Start
Choose a deployment path to install the AI Optimizer on a developer workstation, on premises, or in a cloud environment.
The Walkthrough is a great way to install and familiarize yourself with the AI Optimizer and its features in a containerized, development environment.
Prerequisites
Every deployment requires a connection to Oracle AI Database, including Oracle AI Database Free. The local client and all-in-one container provide a setup page for configuring this connection.
Install the tool required by your deployment path:
- uv for bare-metal installation
- A container runtime, such as Docker or Podman, for container installation
The features you use determine the remaining requirements:
| Feature | Requirement |
|---|---|
| Agents and flows | Access to a language model |
| Vector Search | Access to an embedding model |
| NL2SQL | SQLcl installed where the Server runs and available on PATH |
The all-in-one container includes SQLcl. Language and embedding models can use third-party APIs or run on premises.
*Oracle recommends running on-premises models on hardware with GPUs.Deployment Options
Available deployment options:
Bare-Metal Installation
To run the AI Optimizer on bare-metal:
-
Download and extract the latest release into a new directory:
Latest Release: TAR.GZ archive
For example:
curl -LO https://github.com/oracle/ai-optimizer/releases/latest/download/ai-optimizer-src.tar.gzmkdir ai-optimizertar zxf ai-optimizer-src.tar.gz -C ai-optimizercd ai-optimizer -
Create the project environment and install the application:
uv sync --all-extras -
(Optional) Create an environment file to pre-configure the application:
cp src/.env.example src/.env.devEdit
src/.env.devas needed. You can supply the required Oracle AI Database connection in this file or enter it on the local setup page for the current client process. See Environment Variables for details. -
Start the application:
uv run python src/entrypoint.py client -
Navigate to
http://localhost:8501. -
Configure the AI Optimizer.
Container Installation
To run the AI Optimizer in a container, use the following podman commands. You can substitute docker for podman.
-
Download and extract the latest release into a new directory:
Latest Release: TAR.GZ archive
For example:
curl -LO https://github.com/oracle/ai-optimizer/releases/latest/download/ai-optimizer-src.tar.gzmkdir ai-optimizertar zxf ai-optimizer-src.tar.gz -C ai-optimizercd ai-optimizer -
Build the container image.
notemacOS Silicon users may need to specify
--arch amd64podman build -f src/Dockerfile -t localhost/ai-optimizer-aio:dev .
-
Start the container:
podman run -v ai-optimizer-data:/app/data -p 8501:8501 -it --rm localhost/ai-optimizer-aio:dev -
Navigate to
http://localhost:8501. -
Complete the required Oracle AI Database setup page. A successful configuration is stored in the
ai-optimizer-datacontainer volume. -
Configure the AI Optimizer.
Oracle Cloud Infrastructure
The included OpenTofu Infrastructure as Code (IaC) can deploy the AI Optimizer and its supporting infrastructure in Oracle Cloud Infrastructure (OCI). It can provision an Autonomous Database or connect the deployment to an existing Oracle database. See Infrastructure as Code for deployment instructions.
Kubernetes
The AI Optimizer can be deployed into a Kubernetes cluster using a Helm chart. For more information, see Kubernetes / Helm.