Configuring a local model in APEX Running on VirtualBox VM
With Ollama

Search for a command to run...
With Ollama

Context is one of the most important things when working with AI. That's kind of the agent "memory" during the session. A key part of the context giving the agent instructions on what to use for speci

A new Data Source was included in this release, you can see it when including a new component, it's called "Sample Data" Some components like maps, charts and Calendar have this source type now, that

This is a great combination for something the used to take some effort on writing some functions to execute actions on specific rows of an IR, like using a hidden page item, assigning the PK value of

Creation of a parallel translated app is no longer the only way to handle multiple languages in APEX. Now under Globalization Attributes, we can select "Text Message-Based" as Translation Method. On

Recently, I created an APP using APEXlang, (check here). I asked the agent to create a lookup table including columns to store colors and icons, useful to work with status for example. The agent no on

Now that APEX 26.1 is here, I'd like to test a lot of things using an agent to generate Applications, but it's always nice to save some coins on the way. So I want to install a couple of local models for that.
I'm going to use Ollama, so I went to Download Ollama and got the version for my the OS I'm using (Windows).
Installation is really simple, using a wizard. After that, you just can go to a browser and check Ollama servers is running in localhost under port 11434.
I'm stalling 2 small models that seems to be good enough to start and can be executed within my hardware, and doing so takes just these lines:
ollama pull deepseek-r1:8b
ollama pull llama3.1:8b
and then using Ollama list we can see all the models installed
Now, I want to use it inside the VM, so I checked the network configurations in VirtualBox and there is an IP address from the Virtual Host-Only ethernet adapter that is manually configured, so that one will be static.
Then in the WM browser, if we insert that IP and the Ollama server port, it works.
After testing that, then let's go to APEX. Under APP Builder -> Workspace Utilities. Go to Generative AI section, and then click the "Create" button on the upper right.
In the Select list, pick Ollama as service provider.
Fill the info in the form like this, and click "Test Connection"
Name: Ollama
Used by App Builder: Enabled (You can change this later)
Default for New Apps: Enabled (You can change this later)
Base URL:HTTP://YOUR#VB#IP:11434
Credential: keep the option - Create New -
API Key: Ollama
Static ID: Automatically filled (ollama)
AI Model: llama3.1:8b
Then click "Test Connection". After a successful test, click "Create"
Now we have a Generative AI Service with a local model attached to your APEX instance
