3 references to OllamaEmbeddingGenerator
Microsoft.Extensions.AI.Ollama.Tests (3)
OllamaEmbeddingGeneratorTests.cs (3)
20
Assert.Throws<ArgumentNullException>("endpoint", () => new
OllamaEmbeddingGenerator
((string)null!));
27
using OllamaEmbeddingGenerator generator =
new
("http://localhost");
80
using IEmbeddingGenerator<string, Embedding<float>> generator = new
OllamaEmbeddingGenerator
("http://localhost:11434", "all-minilm", httpClient);