Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUvfa52a91eb88e
diff --git a/v3/@claude-flow/embeddings/src/hyperbolic.ts b/v3/@claude-flow/embeddings/src/hyperbolic.ts
index 93ed134dc1..99495e9a1d 100644
--- a/v3/@claude-flow/embeddings/src/hyperbolic.ts
+++ b/v3/@claude-flow/embeddings/src/hyperbolic.ts
@@ -209,8 +209,12 @@ export function mobiusAdd(
throw new Error('Vectors must have same dimension');
}
- const normASq = a.reduce((sum, v) => sum + v * v, 0);
- const normBSq = b.reduce((sum, v) => sum + v * v, 0);
+ let normASq = 0;
+ let normBSq = 0;
+ for (let i = 0; i < a.length; i++) {
+ normASq += a[i] * a[i];
+ normBSq += b[i] * b[i];
+ }
// <a, b>
let dotAB = 0;