4 references to InvalidOperationException
Microsoft.Extensions.AI.Abstractions (4)
Embeddings\EmbeddingGeneratorExtensions.cs (4)
147
Throw.
InvalidOperationException
("Embedding generator returned a null collection of embeddings.");
152
Throw.
InvalidOperationException
($"Expected the number of embeddings ({embeddings.Count}) to match the number of inputs (1).");
158
Throw.
InvalidOperationException
("Embedding generator generated a null embedding.");
199
Throw.
InvalidOperationException
($"Expected the number of embeddings ({embeddings.Count}) to match the number of inputs ({inputsCount}).");