Skip to content

Embedding Generator Get Service Returns Null For Unknown Key

This example assumes using Jina; is in scope and apiKey contains your Jina API key.

1
2
3
4
using var client = CreateTestClient();
IEmbeddingGenerator<string, Embedding<float>> generator = client;

var result = generator.GetService<EmbeddingGeneratorMetadata>(serviceKey: "unknown");