Skip to content

Embedding

Namespace: LLama.Types

1
public class Embedding : System.IEquatable`1[[LLama.Types.Embedding, LLamaSharp, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectEmbedding
Implements IEquatable<Embedding>

Properties

Object

1
public string Object { get; set; }

Property Value

String

Model

1
public string Model { get; set; }

Property Value

String

Data

1
public EmbeddingData[] Data { get; set; }

Property Value

EmbeddingData[]

Usage

1
public EmbeddingUsage Usage { get; set; }

Property Value

EmbeddingUsage

Constructors

Embedding(String, String, EmbeddingData[], EmbeddingUsage)

1
public Embedding(string Object, string Model, EmbeddingData[] Data, EmbeddingUsage Usage)

Parameters

Object String

Model String

Data EmbeddingData[]

Usage EmbeddingUsage

Methods

ToString()

1
public string ToString()

Returns

String

PrintMembers(StringBuilder)

1
protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

1
public int GetHashCode()

Returns

Int32

Equals(Object)

1
public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(Embedding)

1
public bool Equals(Embedding other)

Parameters

other Embedding

Returns

Boolean

<Clone>$()

1
public Embedding <Clone>$()

Returns

Embedding

Deconstruct(String&, String&, EmbeddingData[]&, EmbeddingUsage&)

1
public void Deconstruct(String& Object, String& Model, EmbeddingData[]& Data, EmbeddingUsage& Usage)

Parameters

Object String&

Model String&

Data EmbeddingData[]&

Usage EmbeddingUsage&