17.7.1 Understanding Generative AI Support in APEX

Learn about Generative AI Service support in APEX.

About Generative AI Services

APEX stores Generative AI Service information as a Generative AI object (or Generative AI Service) on the Generative AI Services page in Workspace Utilities. Since Generative AI Services are stored at the workspace-level, they are visible and available to all applications in the workspace. Generative AI Services support many commercial Generative AI products including Open AI, OCI Generative AI Service, and Cohere.

When you create a Generative AI Service, APEX stores the AI Service key as a Web Credential. The Generative AI Service actually stores information about the AI Service being used.

If you export an application that uses Generative AI Service, the export file omits the actual Web Credential secret from the Web Credential definition. When importing the export file, you must set the Web Credential secret manually or set it using an API.

Administrator Controls

Instance administrators can manage support for AI Services at the workspace or instance-level. To learn more, see Editing Workspace Information and Managing Support for AI Services for an Instance in Oracle APEX Administration Guide.

About Enabling a Generative AI in App Builder

When you create a Generative AI Service, enabling the Used by App Builder setting makes the following features available:

  • An integrated Generative AI option in the Create Application Wizard.
  • Generative AI support (APEX Assistant) in all APEX Code Editors.

Note:

Only one Generative AI Service at a time can be configured with the Used by App Builder setting enabled.

See Creating an App Using Generative AI and Using APEX Assistant.

Including Generative AI in Runtime Apps

You can include AI in your applications by creating a dynamic action which opens the AI Assistant. The actual steps involved can be as simple as hooking a button to the dynamic action.

See Including Generative AI in Applications.