langchain.js
    Preparing search index...

    Interface FileSearchRankingOptions

    Ranking options for file search results.

    interface FileSearchRankingOptions {
        hybridSearch?: FileSearchHybridSearchWeights;
        ranker?: "auto" | "default-2024-11-15";
        scoreThreshold?: number;
    }
    Index

    Properties

    Weights that control how reciprocal rank fusion balances semantic embedding matches versus sparse keyword matches when hybrid search is enabled.

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

    The ranker to use for the file search.

    • auto: Automatically select the best ranker
    • default-2024-11-15: Default ranker as of November 2024
    scoreThreshold?: number

    The score threshold for results (0-1). Numbers closer to 1 return only the most relevant results but may return fewer.