# VertexAISearch

data class VertexAISearch(val dataStoreSpecs: List<VertexAISearchDataStoreSpec>? = null, val datastore: String? = null, val engine: String? = null, val filter: String? = null, val maxResults: Int? = null)

Retrieve from Vertex AI Search datastore or engine for grounding. datastore and engine are mutually exclusive.

## Constructors

VertexAISearch
Link copied to clipboard
constructor(dataStoreSpecs: List<VertexAISearchDataStoreSpec>? = null, datastore: String? = null, engine: String? = null, filter: String? = null, maxResults: Int? = null)

## Properties

datastore
Link copied to clipboard
val datastore: String? = null
dataStoreSpecs
Link copied to clipboard
val dataStoreSpecs: List<VertexAISearchDataStoreSpec>? = null

Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used.

engine
Link copied to clipboard
val engine: String? = null

Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`

filter
Link copied to clipboard
val filter: String? = null

Optional. Filter strings to be passed to the search API.

maxResults
Link copied to clipboard
val maxResults: Int? = null

Optional. Number of search results to return per query. The default value is 10. The maximum allowed value is 10.