Member Junction
    Preparing search index...

    Interface RerankerConfiguration

    Configuration for agent reranking behavior. Stored as JSON in AIAgent.RerankerConfiguration column. When null or disabled, vector search results are used directly without reranking.

    interface RerankerConfiguration {
        contextFields?: string[];
        enabled: boolean;
        fallbackOnError: boolean;
        minRelevanceThreshold: number;
        rerankerModelId: string;
        rerankPromptID?: string;
        retrievalMultiplier: number;
    }
    Index

    Properties

    contextFields?: string[]

    Optional: Additional entity fields to include when building rerank document context. Example: ['Keywords', 'Type'] to include note type and keywords in ranking context.

    enabled: boolean

    Master switch for reranking. When false, reranking is disabled.

    fallbackOnError: boolean

    Whether to fallback to original vector search results when reranker fails. When true: on error, returns unranked vector search results. When false: on error, throws an exception. Default: true

    minRelevanceThreshold: number

    Minimum relevance score (0.0-1.0) for reranked results to be included. Results below this threshold are filtered out. Default: 0.5

    rerankerModelId: string

    ID of the AIModel with type='Reranker' to use for reranking.

    rerankPromptID?: string

    Optional: AIPrompt ID for LLM-based reranking. Only used when the reranker's DriverClass is 'LLMReranker'.

    retrievalMultiplier: number

    Multiplier for initial retrieval count. If agent wants N notes, fetch N * retrievalMultiplier candidates, then rerank to top N. Default: 3