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