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
Create a firewall rule in Google Cloud console to expose port 8000 for the browser-based LlamaIndex RAG application.
To configure a firewall rule:
Create a firewall rule in Google Cloud console
allow-llamaindex-port, then select the network you want to bind to your virtual machine.
Configuring the allow-llamaindex-port firewall rule
8000. Port 8000 is used by the FastAPI server that backs the browser-based LlamaIndex RAG application.
Setting the LlamaIndex browser application port in the firewall rule
22 to allow SSH access to the VM.You’ve now created a firewall rule that exposes port 8000 for the browser-based LlamaIndex RAG application and port 22 for SSH. You’ll attach this firewall rule to your virtual machine in the next section.
Next, you’ll create a Google Cloud C4A virtual machine and connect to it using SSH.