Skip to content

LLamaEmbedder

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


public class LLamaEmbedder : System.IDisposable

Inheritance ObjectLLamaEmbedder
Implements IDisposable

Constructors

LLamaEmbedder(LLamaParams)

public LLamaEmbedder(LLamaParams params)

Parameters

params LLamaParams

Methods

GetEmbeddings(String, Int32, Boolean, String)

public Single[] GetEmbeddings(string text, int n_thread, bool add_bos, string encoding)

Parameters

text String

n_thread Int32

add_bos Boolean

encoding String

Returns

Single[]

Dispose()

public void Dispose()