Table of Contents

Class EmbedResponse

Namespace
OllamaSharp.Models
Assembly
OllamaSharp.dll

The response from the /api/embed endpoint

public class EmbedResponse
Inheritance
EmbedResponse
Inherited Members

Properties

Embeddings

An array of embeddings for the input text

[JsonPropertyName("embeddings")]
public List<float[]> Embeddings { get; set; }

Property Value

List<float[]>

LoadDuration

The time spent in nanoseconds loading the model

[JsonPropertyName("load_duration")]
public long? LoadDuration { get; set; }

Property Value

long?

PromptEvalCount

The number of tokens in the input text

[JsonPropertyName("prompt_eval_count")]
public int? PromptEvalCount { get; set; }

Property Value

int?

TotalDuration

The time spent generating the response

[JsonPropertyName("total_duration")]
public long? TotalDuration { get; set; }

Property Value

long?