You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>Registers a singleton embedding generator in the <see cref="IServiceCollection"/>.</summary>
27
29
/// <typeparam name="TInput">The type from which embeddings will be generated.</typeparam>
28
30
/// <typeparam name="TEmbedding">The type of embeddings to generate.</typeparam>
29
31
/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param>
30
32
/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> that represents the underlying backend.</param>
33
+
/// <param name="lifetime">The service lifetime for the client. Defaults to <see cref="ServiceLifetime.Singleton"/>.</param>
31
34
/// <returns>An <see cref="EmbeddingGeneratorBuilder{TInput, TEmbedding}"/> that can be used to build a pipeline around the inner generator.</returns>
32
35
/// <remarks>The generator is registered as a singleton service.</remarks>
/// <summary>Registers a keyed singleton embedding generator in the <see cref="IServiceCollection"/>.</summary>
62
68
/// <typeparam name="TInput">The type from which embeddings will be generated.</typeparam>
63
69
/// <typeparam name="TEmbedding">The type of embeddings to generate.</typeparam>
64
70
/// <param name="serviceCollection">The <see cref="IServiceCollection"/> to which the generator should be added.</param>
65
71
/// <param name="serviceKey">The key with which to associated the generator.</param>
66
72
/// <param name="innerGeneratorFactory">A callback that produces the inner <see cref="IEmbeddingGenerator{TInput, TEmbedding}"/> that represents the underlying backend.</param>
73
+
/// <param name="lifetime">The service lifetime for the client. Defaults to <see cref="ServiceLifetime.Singleton"/>.</param>
67
74
/// <returns>An <see cref="EmbeddingGeneratorBuilder{TInput, TEmbedding}"/> that can be used to build a pipeline around the inner generator.</returns>
68
75
/// <remarks>The generator is registered as a singleton service.</remarks>
0 commit comments