Skip to content

Class: LlamaEmbeddingContext

Properties

onDispose

ts
readonly onDispose: EventRelay<void>;

Defined in

evaluator/LlamaEmbeddingContext.ts:53

Accessors

disposed

ts
get disposed(): boolean

Returns

boolean

Defined in

evaluator/LlamaEmbeddingContext.ts:117

Methods

getEmbeddingFor()

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

Parameters

ParameterType
inputstring | LlamaText | Token[]

Returns

Promise<LlamaEmbedding>

Defined in

evaluator/LlamaEmbeddingContext.ts:74


dispose()

ts
dispose(): Promise<void>

Returns

Promise<void>

Defined in

evaluator/LlamaEmbeddingContext.ts:108