{"record":{"id":"d20ac0aeae75643e","repo":"ruvnet/ruflo","slug":"reasoningbank-real-embeddings-unavailable-using","errorCode":null,"errorMessage":"[ReasoningBank] Real embeddings unavailable, using hash-based fallback","messagePattern":"\\[ReasoningBank\\] Real embeddings unavailable, using hash-based fallback","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/hooks/src/reasoningbank/index.ts","lineNumber":258,"sourceCode":"          dimensions: this.config.dimensions,\n          hnswM: this.config.hnswM,\n          hnswEfConstruction: this.config.hnswEfConstruction,\n          maxEntries: this.config.maxShortTerm + this.config.maxLongTerm,\n          persistenceEnabled: true,\n          persistencePath: this.config.dbPath,\n          embeddingGenerator: (text: string) => this.embeddingService.embed(text),\n        });\n\n        await this.agentDB.initialize();\n        this.useRealBackend = true;\n\n        // Try to use real embedding service\n        if (EmbeddingServiceImpl && !this.config.useMockEmbeddings) {\n          try {\n            this.embeddingService = new RealEmbeddingService(this.config.dimensions);\n            await (this.embeddingService as RealEmbeddingService).initialize();\n          } catch (e) {\n            console.warn('[ReasoningBank] Real embeddings unavailable, using hash-based fallback');\n          }\n        }\n\n        await this.loadPatterns();\n        console.log(`[ReasoningBank] Initialized with AgentDB + HNSW (M=${this.config.hnswM}, efConstruction=${this.config.hnswEfConstruction})`);\n      } else {\n        throw new Error('Dependencies not available');\n      }\n\n      this.initialized = true;\n      this.emit('initialized', {\n        shortTermCount: this.shortTermPatterns.size,\n        longTermCount: this.longTermPatterns.size,\n        useRealBackend: this.useRealBackend,\n      });\n    } catch (error) {\n      // Fallback to in-memory only mode\n      console.warn('[ReasoningBank] AgentDB not available, using in-memory mode');","sourceCodeStart":240,"sourceCodeEnd":276,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/hooks/src/reasoningbank/index.ts#L240-L276","documentation":"Error \"[ReasoningBank] Real embeddings unavailable, using hash-based fallback\" thrown in ruvnet/ruflo.","triggerScenarios":"Thrown at v3/@claude-flow/hooks/src/reasoningbank/index.ts:258 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install the embeddings provider dependency to enable real embeddings; hash-based fallback reduces recall quality."],"exampleFix":null,"handlingStrategy":null,"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-14T05:17:10.506Z"}