class

OpenAI::RankingOptions

Inherits JSON::Serializable < Reference < Object

Constructors

new(ranker : RankerVersionType | Nil = nil, score_threshold : Float64 | Nil = nil, hybrid_search : HybridSearchOptions | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

hybrid_search

Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.

Source
hybrid_search=(hybrid_search : HybridSearchOptions | Nil)

Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.

Source
ranker

The ranker to use for the file search.

Source
ranker=(ranker : RankerVersionType | Nil)

The ranker to use for the file search.

Source
score_threshold

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.

Source
score_threshold=(score_threshold : Float64 | Nil)

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.

Source