Skip to content

Embedding

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


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

Inheritance ObjectEmbedding
Implements IEquatable<Embedding>

Properties

Object

public string Object { get; set; }

Property Value

String

Model

public string Model { get; set; }

Property Value

String

Data

public EmbeddingData[] Data { get; set; }

Property Value

EmbeddingData[]

Usage

public EmbeddingUsage Usage { get; set; }

Property Value

EmbeddingUsage

Constructors

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

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

Parameters

Object String

Model String

Data EmbeddingData[]

Usage EmbeddingUsage

Methods

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(Embedding)

public bool Equals(Embedding other)

Parameters

other Embedding

Returns

Boolean

<Clone>$()

public Embedding <Clone>$()

Returns

Embedding

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

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

Parameters

Object String&

Model String&

Data EmbeddingData[]&

Usage EmbeddingUsage&