/** * Memory Bridge — shared helpers: error logging, embedding validation, * limits, automem config and usage/feedback weights. Split out of * memory-bridge.ts, which re-exports the public symbols. */ /** * R1: surface swallowed errors when DEBUG/MONOMIND_DEBUG is on. The bridge * has ~12 `} catch { return null; }` sites that collapse SQLITE_BUSY, * EACCES, disk-full, and schema mismatches into "no matches" with zero * diagnostic. Behavior contract (return null on failure) is unchanged; * observability is added. Caller passes the bridge fn name + the thrown * value so the log is greppable per call site. */ export declare function logBridgeError(label: string, err: unknown): void; export declare function safeParseEmbedding(raw: string | null | undefined): number[] | null; export declare const BRIDGE_EMBEDDING_MODEL = "Alibaba-NLP/gte-modernbert-base"; export declare const BRIDGE_EMBEDDING_DIMS = 768; export declare const BRIDGE_MAX_KEY_LEN: number; export declare const BRIDGE_MAX_VALUE_LEN: number; export declare const MAX_TAGS = 32; export declare const MAX_TAG_LEN = 64; export declare const DEFAULT_SEARCH_THRESHOLD = 0.3; export declare function capResultContent(content: string): string; export declare function getAutomemConfig(): { dedupThreshold: number; staleDays: number; feedbackInfluence: number; }; export declare const FEEDBACK_EWMA_ALPHA = 0.1; export declare function entryWeights(metadata: unknown): { feedback: number; frequency: number; }; /** Blend learned usefulness into a GENUINE embedding-similarity score. * Cognee guard: never applied to keyword-fallback scores — those carry no * real relevance signal, and blending there lets a high-feedback stale entry * outrank relevant matches and self-reinforce (rich-get-richer). */ export declare function blendScore(cosineSim: number, weights: { feedback: number; frequency: number; }, influence: number): number; export declare function generateId(prefix: string): string; //# sourceMappingURL=memory-bridge-core.d.ts.map