export declare const DEFAULT_RRF_K = 60; export declare const DEFAULT_VECTOR_K = 64; export interface RankedList { /** * Ids ordered best → worst. Rank is the 1-based index. Ids within a single * list are expected to be unique; duplicates accumulate score. */ readonly ids: readonly string[]; /** Per-list weight in the fusion; default 1 (co-equal). */ readonly weight?: number; } /** Raw cosine similarity in [-1, 1]. Zero-norm, length-mismatch, or non-finite result → 0 (never NaN/throw). */ export declare function cosineSimilarity(a: Float32Array, b: Float32Array): number; /** * Reciprocal Rank Fusion. score(id) = Σ_lists weight / (k + rank). An id absent * from a list contributes 0 (RRF subsumes the union of the lists). Rank-based, so * it is immune to the score-scale incompatibility between IDF and cosine. */ export declare function fuseRRF(lists: readonly RankedList[], opts?: { readonly k?: number; }): Map; //# sourceMappingURL=vector.d.ts.map