Member Junction
    Preparing search index...

    Interface RerankDocument

    A document to be reranked.

    interface RerankDocument {
        id: string;
        metadata?: Record<string, unknown>;
        originalScore?: number;
        text: string;
    }
    Index

    Properties

    id: string

    Unique identifier for the document (e.g., AIAgentNote.ID)

    metadata?: Record<string, unknown>

    Optional metadata to preserve through the reranking process. Use this to store the original entity reference for zero-copy retrieval.

    originalScore?: number

    Original similarity score from vector search (for reference/logging)

    text: string

    Primary text content to be compared against the query for relevance scoring