Ranking options for search.

interface RankingOptions {
    ranker?: "auto" | "default-2024-11-15";
    score_threshold?: number;
}

Properties

ranker?: "auto" | "default-2024-11-15"

The ranker to use for the file search.

score_threshold?: number

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.