Package com.google.genai.types
Class FileSearch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.FileSearch
Tool to retrieve knowledge from the File Search Stores.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileSearch.Builderbuilder()Instantiates a builder for FileSearch.The names of the file_search_stores to retrieve from.static FileSearchDeserializes a JSON string to a FileSearch object.Metadata filter to apply to the file search retrieval documents.abstract FileSearch.BuilderCreates a builder with the same values as this instance.topK()The number of file search retrieval chunks to retrieve.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
FileSearch
public FileSearch()
-
-
Method Details
-
fileSearchStoreNames
The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` -
topK
The number of file search retrieval chunks to retrieve. -
metadataFilter
Metadata filter to apply to the file search retrieval documents. See https://google.aip.dev/160 for the syntax of the filter expression. -
builder
Instantiates a builder for FileSearch. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a FileSearch object.
-