MCPcopy Index your code
hub / github.com/Effect-TS/effect / embedMany

Function embedMany

packages/ai/ai/src/EmbeddingModel.ts:245–251  ·  view source on GitHub ↗
(inputs: ReadonlyArray<string>, options?: {
      readonly concurrency?: Types.Concurrency | undefined
    })

Source from the content-addressed store, hash-verified

243 }
244
245 const embedMany = (inputs: ReadonlyArray<string>, options?: {
246 readonly concurrency?: Types.Concurrency | undefined
247 }) =>
248 Effect.forEach(inputs, embed, {
249 batching: true,
250 concurrency: options?.concurrency
251 })
252
253 return EmbeddingModel.of({
254 embed: (input) =>

Callers 2

makeBatchedResolverFunction · 0.85
makeFunction · 0.85

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected