1 write to Vector
Microsoft.Extensions.AI.Abstractions (1)
Embeddings\Embedding{T}.cs (1)
17Vector = vector;
18 references to Vector
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\EmbeddingGeneratorExtensions.cs (2)
65/// resulting <see cref="Embedding{T}"/>'s <see cref="Embedding{T}.Vector"/> property. 74return embedding.Vector;
Microsoft.Extensions.AI.Abstractions.Tests (8)
Embeddings\EmbeddingTests.cs (8)
29Assert.Equal(floats, e.Vector.ToArray()); 34Assert.True(MemoryMarshal.TryGetArray(e.Vector, out ArraySegment<float> array)); 49Assert.Equal(e.Vector.ToArray(), result.Vector.ToArray()); 63Assert.Equal(e.Vector.ToArray(), result.Vector.ToArray()); 76Assert.Equal(e.Vector.ToArray(), result.Vector.ToArray());
Microsoft.Extensions.AI.AzureAIInference.Tests (2)
AzureAIInferenceEmbeddingGeneratorTests.cs (2)
132Assert.Equal(1536, e.Vector.Length); 133Assert.Contains(e.Vector.ToArray(), f => !f.Equals(0));
Microsoft.Extensions.AI.Integration.Tests (2)
QuantizationEmbeddingGenerator.cs (2)
49ReadOnlySpan<float> vector = embedding.Vector.Span; 82ReadOnlySpan<float> vector = embedding.Vector.Span;
Microsoft.Extensions.AI.Ollama.Tests (2)
OllamaEmbeddingGeneratorTests.cs (2)
97Assert.Equal(384, e.Vector.Length); 98Assert.Contains(e.Vector.ToArray(), f => !f.Equals(0));
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAIEmbeddingGeneratorTests.cs (2)
170Assert.Equal(1536, e.Vector.Length); 171Assert.Contains(e.Vector.ToArray(), f => !f.Equals(0));