Class OllamaTextEmbeddingService
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
TextEmbeddingsRequestcancellationToken
CancellationToken