Sample Apps
Practical AI in PL/SQL Made Easy
Section titled âPractical AI in PL/SQL Made EasyâThis is the sample APEX app shown in our UC Live webinar. It provides examples you can run and adapt. It covers simple text generation, structured output, reasoning, file analysis, and tool usage.
What it demonstrates
Section titled âWhat it demonstratesâEach page maps to a UC AI feature so you can see the input, the code, and the result side by side:
- Text generation â a basic prompt/response screen backed by
generate_text. The âhello worldâ of the SDK. - Structured output â the model returns JSON that conforms to a schema, ready to store in columns. See the Structured Output guide.
- Reasoning â shows how to enable and display the modelâs step-by-step reasoning for harder questions.
- File analysis â upload a PDF or image and ask questions about it (File Analysis guide).
- Tool usage â the model calls PL/SQL functions to read and act on data in the appâs tables (Tools guide).
Setup Instructions
Section titled âSetup Instructionsâ- You need to have UC AI already installed in your database schema (see Installation).
- Download the APEX app
- Then import the APEX app and install supporting objects.
- Configure your API keys as described in Installation â Set up API Keys.
- For OCI and Ollama modify the
reset_global_variablesprocedure inpame_pkgto set your credentials.