class

OpenAI::AssistantToolsFileSearchFileSearch

Inherits JSON::Serializable < Reference < Object

Overrides for the file search tool.

Constructors

new(max_num_results : Int64 | Nil = nil, ranking_options : FileSearchRankingOptions | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

max_num_results

The maximum number of results the file search tool should output. The default is 20 for gpt-4* models and 5 for gpt-3.5-turbo. This number should be between 1 and 50 inclusive.

Note that the file search tool may output fewer than max_num_results results. See the file search tool documentation for more information.

Source
max_num_results=(max_num_results : Int64 | Nil)

The maximum number of results the file search tool should output. The default is 20 for gpt-4* models and 5 for gpt-3.5-turbo. This number should be between 1 and 50 inclusive.

Note that the file search tool may output fewer than max_num_results results. See the file search tool documentation for more information.

Source
ranking_options
Source
ranking_options=(ranking_options : FileSearchRankingOptions | Nil)
Source