"use strict";
// src/orchestrator/rag/EmbeddingProvider.ts
// v1.13.0 — Codebase RAG.
//
// Provider contract for text-to-vector embedding. Mirrors the
// MemoryProvider pattern from src/memory/MemoryProvider.ts so the
// rest of the system can swap providers with one env var.
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractEmbeddingProvider = void 0;
/**
 * Convenience base class. Subclasses implement `embed` + `isAvailable`
 * + `model` + `dim` + `name`; `embedBatch` reuses the loop.
 */
class AbstractEmbeddingProvider {
    async embedBatch(texts) {
        const out = [];
        for (const t of texts)
            out.push(await this.embed(t));
        return out;
    }
}
exports.AbstractEmbeddingProvider = AbstractEmbeddingProvider;
