Documentation · Documentation

What each language can do

Which Kjarni capabilities are available from Rust, the command line, C#, Python, Go, C and C++, and the browser.

CapabilityRustCLIC#PythonGoC / C++Browser
Embeddings and similarity✓✓✓✓✓✓✓
Text classification (sentiment, emotion, toxicity)✓✓✓✓✓✓✓
Reranking (cross-encoder)✓✓✓✓✓✓✓
Index and search: keyword (BM25), semantic, hybrid✓✓✓✓✓✓✓ ¹
Chat with a local LLM, streaming✓✓✓✓✓✓✓
Summarization✓✓✓✓✓✓–
Translation✓✓✓✓✓✓–
Speech-to-text (Whisper)✓✓✓✓✓✓–
Image search by description (CLIP)✓ ²✓✓✓✓✓–
Text generation (GPT-2 family)✓✓–––––
IChatClient and IEmbeddingGenerator (Microsoft.Extensions.AI)✓ ³

C and C++ use the same library: kjarni.h is the C API and kjarni.hpp is a C++23 header-only wrapper over it with a class for each capability marked.

  1. In-memory index built in the page, through the lower-level WasmSearch and WasmIndexBuilder classes rather than the high-level Kjarni class.
  2. Behind the image-io cargo feature. The released native libraries, and so every binding, include it.
  3. The Kjarni.Extensions.AI package, .NET 8. Tool calling is not supported yet.

Kjarni runs the same engine on every platform: