Embedding Generator Get Service Returns Self This example assumes using Ollama; is in scope and apiKey contains your Ollama API key. 1 2 3 4using var client = new OllamaClient(); IEmbeddingGenerator<string, Embedding<float>> generator = client; var self = generator.GetService<OllamaClient>();