Skip to content

LLamaEmbedder

Namespace: LLama

The embedder for LLama, which supports getting embeddings from text.

1
public class LLamaEmbedder

Inheritance ObjectLLamaEmbedder

Constructors

LLamaEmbedder(LLamaParams)

1
public LLamaEmbedder(LLamaParams params)

Parameters

params LLamaParams

Methods

GetEmbeddings(String, Int32, Boolean)

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

Parameters

text String

n_thread Int32

add_bos Boolean

Returns

Single[]