Effect CommunityEC
Effect Community6mo ago
3 replies
Afonso Matos

Suggestion for `embedMany` Method on `AiEmbeddingModel`

There should be an embedMany on the AiEmbeddingModel, so we can avoid doing this:

const model = yield* AiEmbeddingModel.AiEmbeddingModel;
const embeddings = yield* Effect.forEach(chunks, model.embed, { batching: true, concurrency: "unbounded" });
Was this page helpful?