FileSearchTool interface

A tool that searches for relevant content from uploaded files. Learn more about the file search tool.

Extends

Properties

description

Optional user-defined description for this tool or configuration.

filters

Filters to apply to the file search.

max_num_results

The maximum number of results to return. This number should be between 1 and 50 inclusive.

name

Optional user-defined name for this tool or configuration.

ranking_options

Ranking options for search.

type

The type of the file search tool. Always file_search.

vector_store_ids

The IDs of the vector stores to search.

Property Details

description

Optional user-defined description for this tool or configuration.

description?: string

Property Value

string

filters

Filters to apply to the file search.

filters?: Filters

Property Value

max_num_results

The maximum number of results to return. This number should be between 1 and 50 inclusive.

max_num_results?: number

Property Value

number

name

Optional user-defined name for this tool or configuration.

name?: string

Property Value

string

ranking_options

Ranking options for search.

ranking_options?: RankingOptions

Property Value

type

The type of the file search tool. Always file_search.

type: "file_search"

Property Value

"file_search"

vector_store_ids

The IDs of the vector stores to search.

vector_store_ids: string[]

Property Value

string[]