OllamaEmbeddingGenerator Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an IEmbeddingGenerator<TInput,TEmbedding> for Ollama.
public ref class OllamaEmbeddingGenerator sealed : IDisposable, Microsoft::Extensions::AI::IEmbeddingGenerator<System::String ^, Microsoft::Extensions::AI::Embedding<float> ^>
public sealed class OllamaEmbeddingGenerator : IDisposable, Microsoft.Extensions.AI.IEmbeddingGenerator<string,Microsoft.Extensions.AI.Embedding<float>>
type OllamaEmbeddingGenerator = class
interface IEmbeddingGenerator<string, Embedding<single>>
interface IDisposable
Public NotInheritable Class OllamaEmbeddingGenerator
Implements IDisposable, IEmbeddingGenerator(Of String, Embedding(Of Single))
- Inheritance
-
OllamaEmbeddingGenerator
- Implements
Ollama |
Initializes a new instance of the OllamaEmbeddingGenerator class. |
Ollama |
Initializes a new instance of the OllamaEmbeddingGenerator class. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Generate |
Generates embeddings for each of the supplied |
IEmbedding |
Asks the IEmbeddingGenerator<TInput,TEmbedding> for an object of the specified type |
As |
Creates a new EmbeddingGeneratorBuilder<TInput,TEmbedding> using
|
Generate |
Generates embeddings for each of the supplied |
Generate |
Generates an embedding from the specified |
Get |
Asks the IEmbeddingGenerator<TInput,TEmbedding> for an object of type |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: