1 instantiation of EmbeddedProfile
Microsoft.Extensions.AI (1)
ChatRouting\SemanticRoutingChatClient.cs (1)
342
index[i] =
new
(_profiles[i].ClientIndex, embeddings[i].Vector.ToArray());
6 references to EmbeddedProfile
Microsoft.Extensions.AI (6)
ChatRouting\SemanticRoutingChatClient.cs (6)
57
private
EmbeddedProfile
[]? _index;
184
EmbeddedProfile
[] index = await EnsureIndexAsync(cancellationToken).ConfigureAwait(false);
206
foreach (
EmbeddedProfile
profile in index)
244
EmbeddedProfile
profile = index[matches[i].ProfileIndex];
301
private async Task<
EmbeddedProfile
[]> EnsureIndexAsync(CancellationToken cancellationToken)
333
var index = new
EmbeddedProfile
[_profiles.Length];