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