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