4 instantiations of EmbeddingGenerationOptions
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\EmbeddingGenerationOptions.cs (1)
22new()
Microsoft.Extensions.AI.Abstractions.Tests (3)
Embeddings\EmbeddingGenerationOptionsTests.cs (3)
14EmbeddingGenerationOptions options = new(); 26EmbeddingGenerationOptions options = new(); 47EmbeddingGenerationOptions options = new();
28 references to EmbeddingGenerationOptions
Microsoft.Extensions.AI (6)
Embeddings\CachingEmbeddingGenerator.cs (2)
29IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default) 115protected abstract string GetCacheKey(TInput value, EmbeddingGenerationOptions? options);
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
77protected override string GetCacheKey(TInput value, EmbeddingGenerationOptions? options)
Embeddings\LoggingEmbeddingGenerator.cs (1)
49public override async Task<GeneratedEmbeddings<TEmbedding>> GenerateAsync(IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
76public override async Task<GeneratedEmbeddings<TEmbedding>> GenerateAsync(IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Utilities\AIJsonUtilities.Defaults.cs (1)
55[JsonSerializable(typeof(EmbeddingGenerationOptions))]
Microsoft.Extensions.AI.Abstractions (6)
Embeddings\DelegatingEmbeddingGenerator.cs (1)
58public virtual Task<GeneratedEmbeddings<TEmbedding>> GenerateAsync(IEnumerable<TInput> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default) =>
Embeddings\EmbeddingGenerationOptions.cs (3)
15/// <summary>Produces a clone of the current <see cref="EmbeddingGenerationOptions"/> instance.</summary> 16/// <returns>A clone of the current <see cref="EmbeddingGenerationOptions"/> instance.</returns> 21public virtual EmbeddingGenerationOptions Clone() =>
Embeddings\EmbeddingGeneratorExtensions.cs (1)
24EmbeddingGenerationOptions? options = null,
Embeddings\IEmbeddingGenerator.cs (1)
37EmbeddingGenerationOptions? options = null,
Microsoft.Extensions.AI.Abstractions.Tests (9)
Embeddings\EmbeddingGenerationOptionsTests.cs (6)
14EmbeddingGenerationOptions options = new(); 18EmbeddingGenerationOptions clone = options.Clone(); 26EmbeddingGenerationOptions options = new(); 39EmbeddingGenerationOptions clone = options.Clone(); 47EmbeddingGenerationOptions options = new(); 59EmbeddingGenerationOptions? deserialized = JsonSerializer.Deserialize(json, TestJsonSerializerContext.Default.EmbeddingGenerationOptions);
TestEmbeddingGenerator.cs (2)
15public Func<IEnumerable<string>, EmbeddingGenerationOptions?, CancellationToken, Task<GeneratedEmbeddings<Embedding<float>>>>? GenerateAsyncCallback { get; set; } 19public Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
TestJsonSerializerContext.cs (1)
20[JsonSerializable(typeof(EmbeddingGenerationOptions))]
Microsoft.Extensions.AI.Integration.Tests (2)
CallCountingEmbeddingGenerator.cs (1)
21IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
QuantizationEmbeddingGenerator.cs (1)
38IEnumerable<string> values, EmbeddingGenerationOptions? options, CancellationToken cancellationToken)
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
62public async Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)
Microsoft.Extensions.AI.OpenAI (2)
OpenAIEmbeddingGenerator.cs (2)
106public async Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default) 134private OpenAI.Embeddings.EmbeddingGenerationOptions? ToOpenAIOptions(EmbeddingGenerationOptions? options)
Microsoft.Extensions.AI.Tests (2)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (2)
15public Func<IEnumerable<string>, EmbeddingGenerationOptions?, CancellationToken, Task<GeneratedEmbeddings<Embedding<float>>>>? GenerateAsyncCallback { get; set; } 19public Task<GeneratedEmbeddings<Embedding<float>>> GenerateAsync(IEnumerable<string> values, EmbeddingGenerationOptions? options = null, CancellationToken cancellationToken = default)