4 references to OllamaEmbeddingGenerator
Microsoft.Extensions.AI.Ollama (1)
OllamaEmbeddingGenerator.cs (1)
32
:
this
(new Uri(Throw.IfNull(endpoint)), modelId, httpClient)
Microsoft.Extensions.AI.Ollama.Tests (3)
OllamaEmbeddingGeneratorIntegrationTests.cs (1)
12
new
OllamaEmbeddingGenerator
(endpoint, "all-minilm") :
OllamaEmbeddingGeneratorTests.cs (2)
21
Assert.Throws<ArgumentException>("modelId", () => new
OllamaEmbeddingGenerator
(new Uri("http://localhost"), " "));
52
using IEmbeddingGenerator<string, Embedding<float>> chatClient = new
OllamaEmbeddingGenerator
(endpoint, model);