Class: OpenAI::Models::Responses::FileSearchTool::RankingOptions
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::FileSearchTool::RankingOptions
- Defined in:
- lib/openai/models/responses/file_search_tool.rb
Overview
Defined Under Namespace
Modules: Ranker
Instance Attribute Summary collapse
-
#ranker ⇒ Symbol, ...
The ranker to use for the file search.
-
#score_threshold ⇒ Float?
The score threshold for the file search, a number between 0 and 1.
Instance Method Summary collapse
-
#initialize(ranker: nil, score_threshold: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see RankingOptions for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(ranker: nil, score_threshold: nil) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Responses::FileSearchTool::RankingOptions for more details.
Ranking options for search.
|
# File 'lib/openai/models/responses/file_search_tool.rb', line 88
|
Instance Attribute Details
#ranker ⇒ Symbol, ...
The ranker to use for the file search.
78 |
# File 'lib/openai/models/responses/file_search_tool.rb', line 78 optional :ranker, enum: -> { OpenAI::Responses::FileSearchTool::RankingOptions::Ranker } |
#score_threshold ⇒ Float?
The score threshold for the file search, a number between 0 and 1. Numbers closer to 1 will attempt to return only the most relevant results, but may return fewer results.
86 |
# File 'lib/openai/models/responses/file_search_tool.rb', line 86 optional :score_threshold, Float |