struct

AI::Google::Tools::FileSearch

Inherits Struct < Value < Object

File Search tool.

Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.

Constants

ID = "google.file_search"
NAME = "file_search"

Constructors

new(file_search_store_names : Array(String), top_k : Int32 | Nil = nil, metadata_filter : String | Nil = nil)
Source

Instance methods

args
Source
file_search_store_names

File Search store resource names. Example: "fileSearchStores/my-file-search-store-123"

Source
metadata_filter

Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax.

Source
name
Source
top_k

Number of file search retrieval chunks to retrieve.

Source
type
Source