Skip to content

Embeddings

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

1
2
3
4
5
await using var container = await Environment.PrepareAsync(TestModels.Embeddings);

var embeddingResponse = await container.Client.EmbedAsync(
    model: TestModels.Embeddings,
    input: "hello");