struct
AI::Google::Tools::FileSearch
- AI::Google::Tools::FileSearch
- Struct
- Value
- Object
Overview
File Search tool.
Enables Retrieval Augmented Generation (RAG) via the Gemini File Search tool.
Defined in:
ai/google/google_tools.crConstant Summary
-
ID =
"google.file_search" -
NAME =
"file_search"
Constructors
Instance Method Summary
- #args : Hash(String, JSON::Any)
-
#file_search_store_names : Array(String)
File Search store resource names.
- #id : String
-
#metadata_filter : String | Nil
Metadata filter to apply to the file search retrieval documents.
- #name : String
-
#top_k : Int32 | Nil
Number of file search retrieval chunks to retrieve.
- #type : String
Constructor Detail
def self.new(file_search_store_names : Array(String), top_k : Int32 | Nil = nil, metadata_filter : String | Nil = nil)
#
Instance Method Detail
def file_search_store_names : Array(String)
#
File Search store resource names. Example: "fileSearchStores/my-file-search-store-123"
def metadata_filter : String | Nil
#
Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax.