Quick Start
The AI Optimizer can be installed on a developer's desktop, an on-premises data center, or a cloud environment. It can be run either on bare-metal, within a container, or in a Kubernetes cluster using a Helm chart.
The Walkthrough is a great way to install and familiarize yourself with the AI Optimizer and its features in a containerized, development environment.
Prerequisites
- uv (for running bare-metal)
- A container runtime, such as Docker or 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
Deployment Options
Available deployment options:
Bare-Metal Installation
The server and all-in-one installations support Python 3.11 and 3.12.
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. 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:
The commands in this section work in a macOS/Linux shell or PowerShell 7. 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 for convenience:
- Linux/macOS
- PowerShell
alias podman=docker
Set-Alias podman docker
-
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:latest .
-
Start the Container:
podman run -p 8501:8501 -it --rm localhost/ai-optimizer-aio:latest -
Navigate to
http://localhost:8501. -
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.
Kubernetes
The AI Optimizer can be deployed into a Kubernetes cluster using a Helm chart. For more information, see Kubernetes / Helm.