use method

Adds a middleware factory to the pipeline.

Implementation

EmbeddingGeneratorBuilder use(
    EmbeddingGenerator Function(EmbeddingGenerator) factory) {
  _factories.add(factory);
  return this;
}