ruvnet/ruflo · error

Agentic-flow embedding failed: ${message}

Error message

Agentic-flow embedding failed: ${message}

What it means

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.

Source

Thrown at v3/@claude-flow/embeddings/src/embedding-service.ts:744

    try {
      // Use agentic-flow's optimized embedder (has its own internal cache)
      const embedding = await this.embedder.embed(text);

      // Store in our cache as well
      this.cache.set(text, embedding);

      const latencyMs = performance.now() - startTime;
      this.emitEvent({ type: 'embed_complete', text, latencyMs });

      return {
        embedding,
        latencyMs,
      };
    } catch (error) {
      const message = error instanceof Error ? error.message : 'Unknown error';
      this.emitEvent({ type: 'embed_error', text, error: message });
      throw new Error(`Agentic-flow embedding failed: ${message}`);
    }
  }

  async embedBatch(texts: string[]): Promise<BatchEmbeddingResult> {
    await this.initialize();

    this.emitEvent({ type: 'batch_start', count: texts.length });
    const startTime = performance.now();

    // Check cache for each text
    const cached: Array<{ index: number; embedding: Float32Array }> = [];
    const uncached: Array<{ index: number; text: string }> = [];

    texts.forEach((text, index) => {
      const cachedEmbedding = this.cache.get(text);
      if (cachedEmbedding) {
        cached.push({ index, embedding: cachedEmbedding });
        this.emitEvent({ type: 'cache_hit', text });

View on GitHub (pinned to fa13ee4ad6)

Solutions

  1. Inspect the wrapped message from agentic-flow and fix the reported cause.
  2. Re-run agentic-flow embeddings init if the local model is missing or corrupt.
Defensive patterns

Strategy: try-catch

When it happens

Trigger: Thrown at v3/@claude-flow/embeddings/src/embedding-service.ts:744 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18). Data as JSON: /api/errors/5dd85233c5f73c4b. Report an issue: GitHub.