This page shows you how to use the Vertex AI SDK to run LlamaIndex on Vertex AI for RAG tasks.
Prepare your Google Cloud console
To use LlamaIndex on Vertex AI for RAG, do the following:
Run this command in the Google Cloud console to set up your project.
gcloud config set {project}
Run this command to authorize your login.
gcloud auth application-default login
Run LlamaIndex on Vertex AI for RAG
Copy and paste this sample code into the Google Cloud console to run LlamaIndex on Vertex AI for RAG.
Python
To learn how to install or update the Vertex AI SDK for Python, see Install the Vertex AI SDK for Python. For more information, see the Python API reference documentation.
What's next
- To learn more about the RAG API, see LlamaIndex on Vertex AI for RAG API.
- To learn more about grounding, see Grounding overview.
- To learn more about LlamaIndex on Vertex AI for RAG, see Use LlamaIndex on Vertex AI for RAG.
- To learn more about grounding and RAG, see Ground responses using RAG.