10 references to GeneratedEmbeddings
Aspire.Azure.AI.OpenAI.Tests (1)
AspireAzureOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (1)
224return Task.FromResult(new GeneratedEmbeddings<Embedding<float>>(inputs.Select(i => new Embedding<float>(floats))));
Aspire.OpenAI.Tests (1)
AspireOpenAIClientBuilderEmbeddingGeneratorExtensionsTests.cs (1)
225return Task.FromResult(new GeneratedEmbeddings<Embedding<float>>(inputs.Select(i => new Embedding<float>(floats))));
Microsoft.Extensions.AI.Abstractions.Tests (3)
Embeddings\EmbeddingGeneratorExtensionsTests.cs (1)
58Task.FromResult<GeneratedEmbeddings<Embedding<float>>>(new(embeddings))
Embeddings\GeneratedEmbeddingsTests.cs (2)
19Assert.Throws<ArgumentNullException>("embeddings", () => new GeneratedEmbeddings<Embedding<float>>(null!)); 63var generatedEmbeddings = new GeneratedEmbeddings<Embedding<float>>(embeddings);
Microsoft.Extensions.AI.AzureAIInference (1)
AzureAIInferenceEmbeddingGenerator.cs (1)
92GeneratedEmbeddings<Embedding<float>> result = new(embeddings.Data.Select(e =>
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
40return new(from e in embeddings select QuantizeToBinary(e)) 73return new(from e in embeddings select QuantizeToHalf(e))
Microsoft.Extensions.AI.OpenAI (1)
OpenAIEmbeddingGenerator.cs (1)
118return new(embeddings.Select(e =>
Microsoft.Extensions.AI.Tests (1)
Embeddings\UseDelegateEmbeddingGeneratorTests.cs (1)
25null!, (values, options, innerGenerator, cancellationToken) => Task.FromResult(new GeneratedEmbeddings<Embedding<float>>(Array.Empty<Embedding<float>>()))));