Table of Contents

Class VertexEmbeddingInstance

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

One text to embed with the Vertex AI predict method.

public class VertexEmbeddingInstance
Inheritance
VertexEmbeddingInstance
Inherited Members
Extension Methods

Properties

Content

The text to embed.

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

Property Value

string

MimeType

MIME type of the content.

[JsonPropertyName("mimeType")]
public string? MimeType { get; set; }

Property Value

string

TaskType

The task the embedding will be used for. The predict API uses snake_case for this field.

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

Property Value

TaskType?

Title

Title of the document, for RETRIEVAL_DOCUMENT.

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

Property Value

string