Code
cookbook/models/google/gemini/vertexai_search.py
Usage
Set up Vertex AI Search datastore
Create a Vertex AI Search datastore in Google Cloud Console and note the datastore ID.
Update the datastore ID
Replace
datastore_id in the code with your actual Vertex AI Search datastore ID.Information
- Requires setting up a Vertex AI Search datastore in Google Cloud Console
- Must use
vertexai=Trueto enable Vertex AI endpoint - The datastore ID format:
projects/{project_id}/locations/{location}/collections/default_collection/dataStores/{datastore_id}