{"record":{"id":"5dd85233c5f73c4b","repo":"ruvnet/ruflo","slug":"agentic-flow-embedding-failed-message","errorCode":null,"errorMessage":"Agentic-flow embedding failed: ${message}","messagePattern":"Agentic-flow embedding failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/embeddings/src/embedding-service.ts","lineNumber":744,"sourceCode":"\n    try {\n      // Use agentic-flow's optimized embedder (has its own internal cache)\n      const embedding = await this.embedder.embed(text);\n\n      // Store in our cache as well\n      this.cache.set(text, embedding);\n\n      const latencyMs = performance.now() - startTime;\n      this.emitEvent({ type: 'embed_complete', text, latencyMs });\n\n      return {\n        embedding,\n        latencyMs,\n      };\n    } catch (error) {\n      const message = error instanceof Error ? error.message : 'Unknown error';\n      this.emitEvent({ type: 'embed_error', text, error: message });\n      throw new Error(`Agentic-flow embedding failed: ${message}`);\n    }\n  }\n\n  async embedBatch(texts: string[]): Promise<BatchEmbeddingResult> {\n    await this.initialize();\n\n    this.emitEvent({ type: 'batch_start', count: texts.length });\n    const startTime = performance.now();\n\n    // Check cache for each text\n    const cached: Array<{ index: number; embedding: Float32Array }> = [];\n    const uncached: Array<{ index: number; text: string }> = [];\n\n    texts.forEach((text, index) => {\n      const cachedEmbedding = this.cache.get(text);\n      if (cachedEmbedding) {\n        cached.push({ index, embedding: cachedEmbedding });\n        this.emitEvent({ type: 'cache_hit', text });","sourceCodeStart":726,"sourceCodeEnd":762,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/embeddings/src/embedding-service.ts#L726-L762","documentation":"The underlying agentic-flow embedder threw while embedding the text (model load failure, WASM error, invalid input, etc.). The service emits an embed_error event and re-raises with this uniform wrapper so callers see which layer failed; the embedded message carries the root cause.","triggerScenarios":"Thrown at v3/@claude-flow/embeddings/src/embedding-service.ts:744 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped message from agentic-flow and fix the reported cause.","Re-run agentic-flow embeddings init if the local model is missing or corrupt."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}