Introduction
Learn about LlamaIndex and Google Cloud C4A for RAG applications
Configure Google Cloud firewall rules for LlamaIndex
Create a Google Cloud C4A virtual machine for LlamaIndex
Install and configure LlamaIndex on a Google Cloud C4A virtual machine
Build and test a browser-based RAG application with LlamaIndex
Next Steps
In this section, you’ll create a Google Cloud C4A Arm-based virtual machine (VM). You’ll use the c4a-standard-4 machine type, which provides four vCPUs and 16 GB of memory. This VM will host your browser-based LlamaIndex RAG application.
To create a virtual machine based on the C4A instance type in the console:
C4A, then select c4a-standard-4 for Machine type.
Configuring machine type to C4A in Google Cloud Console
allow-llamaindex-port to link the VM to the firewall rule from the previous section and allow inbound access to port 8000 for the browser-based LlamaIndex RAG application and port 22 for SSH access.After the instance starts, select SSH next to the VM in the instance list to open a browser-based terminal session.
Connecting to a running C4A VM using SSH
A new browser window opens with a terminal connected to your VM.
Terminal session connected to the VM
You’ve now provisioned a Google Cloud C4A VM and connected to it using SSH.
Next, you’ll install LlamaIndex, Ollama, ChromaDB, and the required dependencies on your VM.