openai_struct/models/
file_search_ranking_options.rs

1/*
2 * OpenAI API
3 *
4 * The OpenAI REST API. Please see pub https://platform.openai.com/docs/api-reference for more details.
5 *
6 * OpenAPI spec pub version: 2.3.0
7 *
8 * Generated pub by: https://github.com/swagger-api/swagger-codegen.git
9 */
10
11/// pub FileSearchRankingOptions : The ranking options for the file search. If not specified, the file search tool will use the `auto` ranker and a score_threshold of 0.  See the [file search tool documentation](/docs/assistants/tools/file-search#customizing-file-search-settings) for more information.
12
13#[allow(unused_imports)]
14use serde_json::Value;
15
16#[derive(Debug, Serialize, Deserialize)]
17pub struct FileSearchRankingOptions {
18    #[serde(rename = "ranker")]
19    pub ranker: Option<crate::models::FileSearchRanker>,
20    /// The score threshold for the file search. All values must be a floating point number between 0 and 1.
21    #[serde(rename = "score_threshold")]
22    pub score_threshold: f32,
23}