/** * Shared cosine similarity utility. * * Previously duplicated in 5 independent implementations: * - memory/intelligence.ts (ReasoningBank.cosineSim) * - mcp-tools/neural-tools.ts (cosineSimilarity) * - mcp-tools/embeddings-tools.ts (cosineSimilarity) * - mcp-tools/coherence/types.ts + coherence-check.ts (both since deleted * along with the rest of the uncalled coherence_* family) * * This is the single canonical implementation. Accepts number[] or * Float32Array. Handles dimension mismatches gracefully (uses the shorter * length) and returns 0 for zero-magnitude vectors. */ /** * Compute cosine similarity between two vectors. * * Returns a value in [-1, 1]. Returns 0 when either vector is empty or * has zero magnitude. */ export declare function cosineSimilarity(a: number[] | Float32Array, b: number[] | Float32Array): number; //# sourceMappingURL=cosine-similarity.d.ts.map