Member Junction
    Preparing search index...

    Interface VectorSearchResult<TMetadata>

    Search result returned from vector similarity operations

    interface VectorSearchResult<TMetadata = Record<string, unknown>> {
        key: string;
        metadata?: TMetadata;
        score: number;
    }

    Type Parameters

    • TMetadata = Record<string, unknown>
    Index

    Properties

    Properties

    key: string

    The unique key of the matched vector

    metadata?: TMetadata

    Optional metadata associated with the matched vector

    score: number

    Similarity score (0-1 for cosine similarity, where 1 is most similar)