This page shows you how to use the Vertex AI SDK to run RAG Engine tasks.
Prepare your Google Cloud console
To use RAG Engine, 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 RAG Engine
Copy and paste this sample code into the Google Cloud console to run RAG Engine.
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 RAG Engine API.
- To learn more about grounding, see Grounding overview.
- To learn more about RAG Engine, see Use RAG Engine.
- To learn more about grounding and RAG, see Ground responses using RAG.