☁️ OCI Configuration
Oracle Cloud Infrastructure (OCI) can optionally be configured to enable additional AI Optimizer functionality including:
- Document Source for Splitting and Embedding from Object Storage
- Private Cloud Large Language and Embedding models from OCI Generative AI service
Configuration
OCI can either be configured through the AI Optimizer interface, a CLI Configuration File, or by using environment variables.
You will need to generate an API Key to obtain the required configuration values.
AI Optimizer Interface
To configure the Database from the AI Optimizer, navigate to Configuration -> OCI
:
OCI GenAI Services can be configured once OCI access has been confirmed:
Provide the values obtained by generating an API Key.
Config File
During startup, the AI Optimizer will look for and consume a CLI Configuration File for configuring OCI access.
In addition to the standard entries, two additional entries are required to enable OCI GenAI Services:
- service_endpoint: the URL endpoint for the OCI GenAI Service
- compartment_id: the compartment OCID of the OCI GenAI Service
Environment Variables
During start, the AI Optimizer will use environment variables to configure OCI. Environment variables will take precedence over the CLI Configuration file.
In addition to the standard environment variables, the following variables can be set to enable OCI GenAI Services:
- OCI_GENAI_SERVICE_ENDPOINT: the URL endpoint for the OCI GenAI Service
- OCI_GENAI_COMPARTMENT_ID: the compartment OCID of the OCI GenAI Service