Table of Contents

Class OllamaTextEmbeddingService

Namespace
AutoGen.Ollama
Assembly
AutoGen.Ollama.dll
public class OllamaTextEmbeddingService : ITextEmbeddingService
Inheritance
OllamaTextEmbeddingService
Implements
Inherited Members

Constructors

OllamaTextEmbeddingService(HttpClient)

public OllamaTextEmbeddingService(HttpClient client)

Parameters

client HttpClient

Methods

GenerateAsync(TextEmbeddingsRequest, CancellationToken)

public Task<TextEmbeddingsResponse> GenerateAsync(TextEmbeddingsRequest request, CancellationToken cancellationToken = default)

Parameters

request TextEmbeddingsRequest
cancellationToken CancellationToken

Returns

Task<TextEmbeddingsResponse>