API reference · Kjarni 0.2.7

Interface: LoadOptions

kjarni-wasm • Docs


kjarni-wasm / LoadOptions

Which models Kjarni.load loads. Name only the ones you need.

Properties

chat?

optional chat: ModelSource

A local language model. A .kjq file.

Defined in

index.ts:30


chatModelId?

optional chatModelId: string

Chat only: the registry id whose prompt template should be used.

Defined in

index.ts:32


classifier?

optional classifier: ModelSource

Sentiment, emotion, toxicity. A .kjq file.

Defined in

index.ts:26


encoder?

optional encoder: ModelSource

Embeddings and semantic similarity. A .kjq file.

Defined in

index.ts:24


onProgress()?

optional onProgress: (capability, loaded, total) => void

Called as each model is fetched, for progress UI.

Parameters

• capability: Capability

• loaded: number

• total: number

Returns

void

Defined in

index.ts:34


reranker?

optional reranker: ModelSource

Cross-encoder reranking. A .kjq file.

Defined in

index.ts:28

Kjarni runs the same engine on every platform: