import { FileSearchTool } from "https://deno.land/x/openai@v4.61.1/resources/beta/assistants.ts";
const { FileSearch } = FileSearchTool;
Interfaces
The ranking options for the file search. If not specified, the file search tool
will use the |
import { type FileSearchTool } from "https://deno.land/x/openai@v4.61.1/resources/beta/assistants.ts";
const { FileSearch } = FileSearchTool;
Overrides for the file search tool.
Properties
The maximum number of results the file search tool should output. The default is
20 for gpt-4*
models and 5 for gpt-3.5-turbo
. This number should be between
1 and 50 inclusive.
Note that the file search tool may output fewer than max_num_results
results.
See the
file search tool documentation
for more information.
optional
ranking_options: FileSearch.RankingOptionsThe 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.