/** * brain-memory — Vector-only recall engine (no graph dependency) * * Pure vector + FTS5 recall with RRF fusion for `engine: "vector"` mode. * Supports: vector search, FTS5 search, RRF fusion, cross-encoder reranking. */ import { type DatabaseSyncInstance } from "@photostructure/sqlite"; import type { BmConfig, BmNode, BmEdge } from "../types"; import type { EmbedFn } from "../engine/embed"; import type { ScopeFilter } from "../scope/isolation"; export interface VectorRecallResult { nodes: BmNode[]; edges: BmEdge[]; tokenEstimate: number; diagnostics?: { vectorCount: number; bm25Count: number; fusedCount: number; intent: string; }; } export declare class VectorRecaller { private db; private cfg; private embed; constructor(db: DatabaseSyncInstance, cfg: BmConfig); setEmbedFn(fn: EmbedFn): void; recall(query: string, scopeFilter?: ScopeFilter): Promise; /** Reciprocal Rank Fusion: RRF(d) = Σ 1/(k + rank_d) */ private rrfFusion; private estimateTokens; } //# sourceMappingURL=vector-recall.d.ts.map