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