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?
optionalchat:ModelSource
A local language model. A .kjq file.
Defined in
chatModelId?
optionalchatModelId:string
Chat only: the registry id whose prompt template should be used.
Defined in
classifier?
optionalclassifier:ModelSource
Sentiment, emotion, toxicity. A .kjq file.
Defined in
encoder?
optionalencoder:ModelSource
Embeddings and semantic similarity. A .kjq file.
Defined in
onProgress()?
optionalonProgress: (capability,loaded,total) =>void
Called as each model is fetched, for progress UI.
Parameters
• capability: Capability
• loaded: number
• total: number
Returns
void
Defined in
reranker?
optionalreranker:ModelSource
Cross-encoder reranking. A .kjq file.
Defined in
Kjarni runs the same engine on every platform: