FileSearch

@Serializable
data class FileSearch(val fileSearchStoreNames: List<String>? = null, val metadataFilter: String? = null, val topK: Int? = null)

The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. This data type is not supported in Vertex AI.

Constructors

Link copied to clipboard
constructor(fileSearchStoreNames: List<String>? = null, metadataFilter: String? = null, topK: Int? = null)

Properties

Link copied to clipboard

Required. The names of the file_search_stores to retrieve from. Example: fileSearchStores/my-file-search-store-123

Link copied to clipboard
val metadataFilter: String? = null

Optional. Metadata filter to apply to the semantic retrieval documents and chunks.

Link copied to clipboard
val topK: Int? = null

Optional. The number of semantic retrieval chunks to retrieve.