Namespace: LLama
The embedder for LLama, which supports getting embeddings from text.
public class LLamaEmbedder : System.IDisposable
Inheritance Object → LLamaEmbedder
Implements IDisposable
public LLamaEmbedder(ModelParams params)
params ModelParams
Get the embeddings of the text.
public Single[] GetEmbeddings(string text, int threads, bool addBos, string encoding)
text String
threads Int32
Threads used for inference.
addBos Boolean
Add bos to the text.
encoding String
public void Dispose()