Create a virtual environment
Terminal
and create a python virtual environment.Set up Vertex AI Search datastore
Set environment variables
Install libraries
Update the datastore ID
datastore_id
in the code with your actual Vertex AI Search datastore ID.Run Agent
vertexai=True
to enable Vertex AI endpointprojects/{project_id}/locations/{location}/collections/default_collection/dataStores/{datastore_id}