use case · multi-model
Two models, one pipeline, zero server. A GTE-small embedder turns your knowledge base into vectors and finds the passages closest to the question; Gemma 3 270M then answers only from those passages and cites them. This is retrieval-augmented generation — the pattern behind "chat with your docs" products — running entirely on-device.
Two models load independently: GTE-small is ~34 MB, Gemma is ~1.05 GB fp32 on the CPU path (~200 MB q4f16 on WebGPU), cached after first load.
Retriever · GTE-small
Generator · Gemma 3 270M
feature-extraction, mean-pooled + normalised) maps each passage and the question to a 384-dim vector in a shared space.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.