2 types derived from Embedding
Microsoft.Extensions.AI.Abstractions (2)
Embeddings\BinaryEmbedding.cs (1)
15public sealed class BinaryEmbedding : Embedding
Embeddings\Embedding{T}.cs (1)
12public sealed class Embedding<T> : Embedding
286 references to Embedding
Microsoft.Extensions.AI (16)
Embeddings\AnonymousDelegatingEmbeddingGenerator.cs (1)
16where TEmbedding : Embedding
Embeddings\CachingEmbeddingGenerator.cs (1)
18where TEmbedding : Embedding
Embeddings\ConfigureOptionsEmbeddingGenerator.cs (1)
16where TEmbedding : Embedding
Embeddings\ConfigureOptionsEmbeddingGeneratorBuilderExtensions.cs (1)
34where TEmbedding : Embedding
Embeddings\DistributedCachingEmbeddingGenerator.cs (1)
28where TEmbedding : Embedding
Embeddings\DistributedCachingEmbeddingGeneratorBuilderExtensions.cs (1)
33where TEmbedding : Embedding
Embeddings\EmbeddingGeneratorBuilder.cs (1)
16where TEmbedding : Embedding
Embeddings\EmbeddingGeneratorBuilderEmbeddingGeneratorExtensions.cs (1)
28where TEmbedding : Embedding
Embeddings\EmbeddingGeneratorBuilderServiceCollectionExtensions.cs (4)
27where TEmbedding : Embedding 49where TEmbedding : Embedding 77where TEmbedding : Embedding 101where TEmbedding : Embedding
Embeddings\LoggingEmbeddingGenerator.cs (1)
30where TEmbedding : Embedding
Embeddings\LoggingEmbeddingGeneratorBuilderExtensions.cs (1)
38where TEmbedding : Embedding
Embeddings\OpenTelemetryEmbeddingGenerator.cs (1)
27where TEmbedding : Embedding
Embeddings\OpenTelemetryEmbeddingGeneratorBuilderExtensions.cs (1)
33where TEmbedding : Embedding =>
Microsoft.Extensions.AI.Abstractions (133)
Embeddings\DelegatingEmbeddingGenerator.cs (1)
22where TEmbedding : Embedding
Embeddings\Embedding.cs (1)
24/// <summary>Initializes a new instance of the <see cref="Embedding"/> class.</summary>
Embeddings\EmbeddingGeneratorExtensions.cs (2)
135where TEmbedding : Embedding 180where TEmbedding : Embedding
Embeddings\GeneratedEmbeddings.cs (1)
15where TEmbedding : Embedding
Embeddings\IEmbeddingGenerator{TInput,TEmbedding}.cs (1)
29where TEmbedding : Embedding
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.BinaryEmbedding.g.cs (12)
100DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 102Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 103Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 110AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 120DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 122Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 123Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 130AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 140DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 142Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 143Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 150AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.Embedding.g.cs (23)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding>? _Embedding; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding> Embedding 24get => _Embedding ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.Embedding)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding> Create_Embedding(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.Embedding>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.Embedding> 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.Embedding>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 60Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("Dimensions", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.EmbeddingByte.g.cs (15)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 170global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 176string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 181global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.EmbeddingDouble.g.cs (15)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 170global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 176string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 181global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.EmbeddingHalf.g.cs (15)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 170global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 176string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 181global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.EmbeddingInt32.g.cs (15)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 170global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 176string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 181global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.EmbeddingSByte.g.cs (15)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 170global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 176string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 181global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.EmbeddingSingle.g.cs (15)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 170global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 176string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 181global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
156if (type == typeof(global::Microsoft.Extensions.AI.Embedding))
Utilities\AIJsonUtilities.Defaults.cs (1)
115[JsonSerializable(typeof(Embedding))]
Microsoft.Extensions.AI.Abstractions.Tests (100)
Embeddings\EmbeddingTests.cs (2)
121Embedding? result = JsonSerializer.Deserialize<Embedding>(Json, AIJsonUtilities.DefaultOptions);
Generated\361d1da7f942c932\TestJsonSerializerContext.BinaryEmbedding.g.cs (12)
98DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 100Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 120Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 140Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
Generated\361d1da7f942c932\TestJsonSerializerContext.EmbeddingByte.g.cs (15)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 98Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 118Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 138Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 168global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 174string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 179global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\361d1da7f942c932\TestJsonSerializerContext.EmbeddingDouble.g.cs (15)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 98Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 118Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 138Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 168global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 174string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 179global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\361d1da7f942c932\TestJsonSerializerContext.EmbeddingSByte.g.cs (15)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 98Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 118Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 138Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 168global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 174string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 179global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\361d1da7f942c932\TestJsonSerializerContext.EmbeddingSingle.g.cs (15)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 98Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 118Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 138Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 168global::System.DateTimeOffset? __value_CreatedAt = ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt; 174string __value_ModelId = ((global::Microsoft.Extensions.AI.Embedding)value).ModelId; 179global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties;
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
150if (type == typeof(global::Microsoft.Extensions.AI.Embedding))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestJsonSerializerContext.Embedding.g.cs (23)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding>? _Embedding; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding> Embedding 22get => _Embedding ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.Embedding)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding> Create_Embedding(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.Embedding>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.Embedding> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.Embedding> 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.Embedding>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 58Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("Dimensions", InstanceMemberBindingFlags, null, typeof(int), global::System.Array.Empty<global::System.Type>(), null), 96DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 98Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 118Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
TestEmbeddingGenerator.cs (1)
15where TEmbedding : Embedding
TestJsonSerializerContext.cs (1)
34[JsonSerializable(typeof(Embedding))] // Used in EmbeddingTests
Microsoft.Extensions.AI.Tests (16)
Generated\361d1da7f942c932\TestJsonSerializerContext.EmbeddingSingle.g.cs (15)
96DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 98Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).CreatedAt = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("CreatedAt", InstanceMemberBindingFlags, null, typeof(global::System.DateTimeOffset?), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 118Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).ModelId = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.Embedding), 138Getter = static obj => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.Embedding)obj).AdditionalProperties = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.Embedding).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null), 169global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.Extensions.AI.Embedding)value).CreatedAt, NullableDateTimeOffset); 170writer.WriteString(PropName_ModelId, ((global::Microsoft.Extensions.AI.Embedding)value).ModelId); 172global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::Microsoft.Extensions.AI.Embedding)value).AdditionalProperties, AdditionalPropertiesDictionary);
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
15where TEmbedding : Embedding
Microsoft.Extensions.DataIngestion.Tests (1)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestEmbeddingGenerator.cs (1)
15where TEmbedding : Embedding
Microsoft.Extensions.VectorData.Abstractions (20)
IKeywordHybridSearchable.cs (1)
51/// If you're using <see cref="IEmbeddingGenerator"/> directly in your code, that type returns an <see cref="Embedding"/> (for example, <c>Embedding{float}</c>),
IVectorSearchable.cs (1)
50/// If you're using <see cref="IEmbeddingGenerator"/> directly in your code, that type returns an <see cref="Embedding"/> (for example, <c>Embedding{float}</c>),
ProviderServices\EmbeddingGenerationDispatcher.cs (5)
20/// for a specific <see cref="Embedding"/> subtype. 31where TEmbedding : Embedding 35/// Gets the <see cref="Embedding"/> type that this instance supports. 49public abstract Task<IReadOnlyList<Embedding>> GenerateEmbeddingsAsync(VectorPropertyModel vectorProperty, IEnumerable<object?> values, CancellationToken cancellationToken); 55public abstract Task<Embedding> GenerateEmbeddingAsync(VectorPropertyModel vectorProperty, object? value, CancellationToken cancellationToken);
ProviderServices\EmbeddingGenerationDispatcher{TEmbedding}.cs (3)
21where TEmbedding : Embedding 35public override Task<IReadOnlyList<Embedding>> GenerateEmbeddingsAsync(VectorPropertyModel vectorProperty, IEnumerable<object?> values, CancellationToken cancellationToken) 39public override Task<Embedding> GenerateEmbeddingAsync(VectorPropertyModel vectorProperty, object? value, CancellationToken cancellationToken)
ProviderServices\VectorPropertyModel.cs (8)
100where TEmbedding : Embedding 112where TEmbedding : Embedding 134public Task<IReadOnlyList<Embedding>> GenerateEmbeddingsAsync(IEnumerable<object?> values, CancellationToken cancellationToken) 144public Task<Embedding> GenerateEmbeddingAsync(object? value, CancellationToken cancellationToken) 152internal virtual async Task<IReadOnlyList<Embedding>> GenerateEmbeddingsCoreAsync<TEmbedding>(IEnumerable<object?> values, CancellationToken cancellationToken) 153where TEmbedding : Embedding 179internal virtual async Task<Embedding> GenerateEmbeddingCoreAsync<TEmbedding>(object? value, CancellationToken cancellationToken) 180where TEmbedding : Embedding
ProviderServices\VectorPropertyModel{TInput}.cs (2)
37internal override async Task<IReadOnlyList<Embedding>> GenerateEmbeddingsCoreAsync<TEmbedding>(IEnumerable<object?> values, CancellationToken cancellationToken) 51internal override async Task<Embedding> GenerateEmbeddingCoreAsync<TEmbedding>(object? value, CancellationToken cancellationToken)