Realms
2026-07-09

CunAI

Offline-first semantic search engine for the ancient Sumerian language, built on the complete ePSD2 dictionary and corpus.

Native App
Semantic Search
Mobile
Released
π’Ύπ’Š¬ dub-sar: written in clay, searched in silicon.
Banner
CunAI

Technical Details

Hybrid search engine

Type and lexical results over headwords, attested forms, and glosses appear instantly, with diacritic-insensitive input (gestu finds Ε‹eΕ‘tug). Press Enter and semantic vector discovery fuses in: English queries like "ceremonial offering to the gods" surface Sumerian concepts no keyword match would find.


Indexing four millennia on a T4

The corpus pipeline was built in Python on Google Colab: a T4 GPU ran SentenceTransformers to embed thousands of ePSD2 documents into 213k corpus vectors, which are baked into a local usearch index. An exact SIMD scan answers queries in tens of milliseconds with perfect recall. Desktop uses 768-d f16 vectors; Android ships a Matryoshka-truncated 256-d int8 index to stay lean.


Local inference in Rust

Query embedding runs inside the Tauri shell via ONNX Runtime (ort) with the EmbeddingGemma-300m model. Its sentence_embedding output reproduces the original corpus pipeline at cosine 0.991 or higher, so query and corpus share one vector space without re-embedding.
No API calls, no telemetry.


Cuneiform-first rendering

Transliterations map to Unicode cuneiform through the ePSD2 sign list plus a complete Unicode sign-name table of 1,234 signs, including compounds. 97.6% of lemmas and 92.8% of written forms render as glyphs, and a partial rendering is never shown. A browsable sign list covers 2,000+ ePSD2 signs.


Asset delivery

Semantic search needs the embedding model plus the prebuilt index. On first run the app downloads both in the background with resume support and sha256 verification; the lexical dictionary works fully offline out of the box.

dub-sar, the scribe. Written in clay, searched in silicon.

213k
corpus vectors, embedded on a Colab T4
2,000+
browsable ePSD2 signs with rendered glyphs
97.6%
of lemmas render as Unicode cuneiform
~10ms
exact SIMD vector scan, perfect recall
CunAI Semantic deep search on Android
Semantic deep search

English concepts like "ceremonial offering to the gods" resolve to Sumerian lemmas no keyword could reach.

CunAI Dictionary entries on Android
Dictionary entries

Senses with attestation counts and written forms with per-form cuneiform, straight from ePSD2.

CunAI Hybrid fusion on Android
Hybrid fusion

Instant lexical matches and semantic discoveries ranked together in one result list.

EmbeddingGemma-300m via ONNX Runtime in Rust Β· usearch vector index Β· ePSD2 / Oracc data (CC BY-SA 4.0) Β· fully offline after a one-time asset download

Videos