Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/beta/mod.ts>FileSearchTool.FileSearch.RankingOptions

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface FileSearchTool.FileSearch.RankingOptions
import { type FileSearchTool } from "https://deno.land/x/openai@v4.69.0/resources/beta/mod.ts";
const { RankingOptions } = FileSearchTool.FileSearch;

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 for more information.

Properties

score_threshold: number

The score threshold for the file search. All values must be a floating point number between 0 and 1.

optional
ranker: "auto" | "default_2024_08_21"

The ranker to use for the file search. If not specified will use the auto ranker.