Multi-model · embeddings + text-generation · on-device
Two models, one pipeline, zero server. MiniLM turns your knowledge base into vectors and finds the passages closest to the question; SmolLM2-135M then answers using only those passages and cites them. This is retrieval-augmented generation — the pattern behind most "chat with your docs" products — running entirely on-device.
Two models load independently: MiniLM is ~30 MB, SmolLM2-135M ~140 MB (q8, cached after first load).
Retriever · MiniLM
Generator · SmolLM2
feature-extraction, mean-pooled + normalised) maps each passage and the question to a 384-dim vector.Change a passage and the retrieval changes; ask something not covered and a good RAG answer declines. Everything — both models, the vectors, the similarity — runs on your device.