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

rUva55c2da14d86
diff --git a/v3/@claude-flow/cli/src/ruvector/vector-db.ts b/v3/@claude-flow/cli/src/ruvector/vector-db.ts
index d6dd97207b..ee0ebe55f2 100644
--- a/v3/@claude-flow/cli/src/ruvector/vector-db.ts
+++ b/v3/@claude-flow/cli/src/ruvector/vector-db.ts
@@ -208,38 +208,6 @@ export async function loadRuVector(): Promise<boolean> {
return false;
}
-/**
- * Generate a simple hash-based embedding (internal helper)
- */
-function generateHashEmbedding(text: string, dimensions: number = 768): Float32Array {
- const embedding = new Float32Array(dimensions);
- const normalized = text.toLowerCase().trim();
-
- // Simple hash function
- let hash = 0;
- for (let i = 0; i < normalized.length; i++) {
- hash = ((hash << 5) - hash) + normalized.charCodeAt(i);
- hash = hash & hash; // Convert to 32bit integer
- }
-
- // Generate pseudo-random embedding based on hash
- for (let i = 0; i < dimensions; i++) {
- embedding[i] = Math.sin(hash * (i + 1) * 0.001) * 0.5 + 0.5;
- }
-
- // Normalize
- let norm = 0;
- for (let i = 0; i < dimensions; i++) {
- norm += embedding[i] * embedding[i];
- }
- norm = Math.sqrt(norm);
- for (let i = 0; i < dimensions; i++) {
- embedding[i] /= norm;
- }
-
- return embedding;
-}
-
/**
* Check if ruvector is available
*/