Multi-model · embeddings + text-generation · on-device
Two models, one pipeline, zero server. all-MiniLM-L6-v2 turns a small knowledge base into vectors and finds the facts closest to your question; MobileLLM-R1 then reasons over only those facts — showing its working — instead of guessing from memory. This is retrieval-augmented generation with a reasoning model in the generator seat, entirely on-device.
Two models load independently: MiniLM is ~23 MB, MobileLLM-R1 ~676 MB (q4, cached after first load).
Retriever · all-MiniLM-L6-v2
Reasoner · MobileLLM-R1-360M
feature-extraction, mean-pooled + normalised) maps each fact and the question to a 384-dim vector.Change a fact and the retrieval changes; ask something the facts don't cover and a good grounded model declines. Everything — both models, the vectors, the similarity — runs on your device.