ProjectsOpen source
Valence
A macOS app that turns any molecule into short, accurate fact cards, retold by a local AI model. Nothing goes to a cloud AI.
What it is#
Search any molecule and get short, surprising fact cards next to a 3D model you can rotate. Every fact comes from PubChem or Wikipedia, and a model running on your Mac retells it.
How it’s built#
- Grounded by construction. The model picks sentences from the sources, forced into a JSON schema, so it cannot invent facts. Free-written cards made claims up; I measured that and redesigned the pipeline.
- Local inference on Apple Silicon through mistral.rs, with memory-aware model loading added in my own fork.
- Evaluated, not eyeballed. A 50-molecule review set with snapshot tests, and a harness that reports latency and accuracy against product targets.
- Tauri 2 desktop app with a Rust core, an offline SQLite cache, and a resumable model download checked by sha256.
Early development. Apple Silicon, macOS 13 or later.