Table of Contents

Class TextEmbeddingsRequest

Namespace
AutoGen.Ollama
Assembly
AutoGen.Ollama.dll
public class TextEmbeddingsRequest
Inheritance
TextEmbeddingsRequest
Inherited Members

Properties

KeepAlive

controls how long the model will stay loaded into memory following the request (default: 5m)

[JsonPropertyName("keep_alive")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? KeepAlive { get; set; }

Property Value

string

Model

name of model to generate embeddings from

[JsonPropertyName("model")]
public string Model { get; set; }

Property Value

string

Options

additional model parameters listed in the documentation for the Modelfile such as temperature

[JsonPropertyName("options")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ModelReplyOptions? Options { get; set; }

Property Value

ModelReplyOptions

Prompt

text to generate embeddings for

[JsonPropertyName("prompt")]
public string Prompt { get; set; }

Property Value

string