From f22583e84ef6355badabfeb731c77eb7f61869ac Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 13 Jan 2026 18:34:15 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-13T18:34:15Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts index 2d666f9dea..ece26338f3 100644 --- a/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts +++ b/v3/@claude-flow/cli/src/mcp-tools/neural-tools.ts @@ -235,13 +235,20 @@ export const neuralTools: MCPTool[] = [ .sort((a, b) => b.confidence - a.confidence) .slice(0, topK); + // Generate real embedding for the input + const startTime = performance.now(); + const embedding = await generateEmbedding(inputText, 128); + const latency = Math.round(performance.now() - startTime); + return { success: true, + _realEmbedding: !!realEmbeddings, modelId: model?.id || 'default', input: inputText, predictions, - embedding: generateEmbedding(128).slice(0, 8), - latency: Math.floor(Math.random() * 50) + 10, + embedding: embedding.slice(0, 8), // Preview of embedding + embeddingDims: embedding.length, + latency, }; }, },