Skip to main content
Module

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

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Go to Latest
interface FileSearchTool.FileSearch.RankingOptions
import { type FileSearchTool } from "https://deno.land/x/openai@v4.62.0/resources/beta/assistants.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.