Table of Contents

Class EmbedRequestBody

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

The actual embedding request body for batch processing.

public class EmbedRequestBody
Inheritance
EmbedRequestBody
Inherited Members
Extension Methods

Properties

Content

The content to embed (singular).

[JsonPropertyName("content")]
public Content? Content { get; set; }

Property Value

Content

Model

The model to use for embedding.

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

Property Value

string

OutputDimensionality

Optional reduced dimension for output embedding.

[JsonPropertyName("outputDimensionality")]
public int? OutputDimensionality { get; set; }

Property Value

int?

TaskType

Optional task type for the embeddings.

[JsonPropertyName("taskType")]
public TaskType? TaskType { get; set; }

Property Value

TaskType?

Title

Optional title for retrieval document task type.

[JsonPropertyName("title")]
public string? Title { get; set; }

Property Value

string