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
Parameter | Type |
---|---|
input | string | LlamaText | Token [] |
Returns
Defined in
evaluator/LlamaEmbeddingContext.ts:74
dispose()
ts
dispose(): Promise<void>
Returns
Promise
<void
>