Skip to content

Class: LlamaEmbeddingContext

Defined in: evaluator/LlamaEmbeddingContext.ts:52

See

Using Embedding tutorial

Properties

onDispose

ts
readonly onDispose: EventRelay<void>;

Defined in: evaluator/LlamaEmbeddingContext.ts:57

Accessors

disposed

Get Signature

ts
get disposed(): boolean

Defined in: evaluator/LlamaEmbeddingContext.ts:129

Returns

boolean


model

Get Signature

ts
get model(): LlamaModel

Defined in: evaluator/LlamaEmbeddingContext.ts:133

Returns

LlamaModel

Methods

getEmbeddingFor()

ts
getEmbeddingFor(input: 
  | string
  | LlamaText
  | Token[]): Promise<LlamaEmbedding>

Defined in: evaluator/LlamaEmbeddingContext.ts:78

Parameters

ParameterType
input| string | LlamaText | Token[]

Returns

Promise<LlamaEmbedding>


dispose()

ts
dispose(): Promise<void>

Defined in: evaluator/LlamaEmbeddingContext.ts:120

Returns

Promise<void>