{"record":{"id":"65e578bf90c49375","repo":"ruvnet/ruflo","slug":"failed-to-initialize-agentic-flow-embeddings-err","errorCode":null,"errorMessage":"Failed to initialize agentic-flow embeddings.${errorDetail} Ensure agentic-flow is installed and ONNX model is downloaded: npx agentic-flow@alpha embeddings init","messagePattern":"Failed to initialize agentic-flow embeddings\\.(.+?) Ensure agentic-flow is installed and ONNX model is downloaded: npx agentic-flow@alpha embeddings init","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/embeddings/src/embedding-service.ts","lineNumber":703,"sourceCode":"\n      for (const p of absolutePaths) {\n        if (existsSync(p)) {\n          possiblePaths.push(p);\n        }\n      }\n    } catch {\n      // fs/path module not available\n    }\n\n    // Try each path\n    for (const modulePath of possiblePaths) {\n      if (await createEmbedder(modulePath)) {\n        return;\n      }\n    }\n\n    const errorDetail = lastError?.message ? ` Last error: ${lastError.message}` : '';\n    throw new Error(\n      `Failed to initialize agentic-flow embeddings.${errorDetail} ` +\n      `Ensure agentic-flow is installed and ONNX model is downloaded: ` +\n      `npx agentic-flow@alpha embeddings init`\n    );\n  }\n\n  async embed(text: string): Promise<EmbeddingResult> {\n    await this.initialize();\n\n    // Check our LRU cache first\n    const cached = this.cache.get(text);\n    if (cached) {\n      this.emitEvent({ type: 'cache_hit', text });\n      return {\n        embedding: cached,\n        latencyMs: 0,\n        cached: true,\n      };","sourceCodeStart":685,"sourceCodeEnd":721,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/embeddings/src/embedding-service.ts#L685-L721","documentation":"Thrown when agentic-flow embeddings cannot initialize. Defense: verify agentic-flow is installed and the ONNX model is downloaded (npx agentic-flow@alpha embeddings init) before selecting this provider.","triggerScenarios":"Thrown at v3/@claude-flow/embeddings/src/embedding-service.ts:703 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run npx agentic-flow@alpha embeddings init to download the ONNX model.","Install agentic-flow and confirm it is resolvable from this package.","Choose another provider ('transformers' or 'openai' with apiKey) if agentic-flow cannot be installed."],"exampleFix":null,"handlingStrategy":"fallback","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"}