Multi-model · embeddings + text-generation · on-device
Two models, one pipeline, zero server — the enterprise "chat with your handbook" pattern. MiniLM turns a policy document into vectors and finds the passages closest to the question; Granite 3.0 2B — IBM's RAG-tuned model — then answers only from those passages and cites them. Because it all runs on-device, the handbook and the questions never leave the browser.
Two models load independently: MiniLM is ~30 MB, Granite ~2.5 GB (q8, cached after first load).
Retriever · MiniLM
Generator · Granite 3.0 2B
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 in the handbook and a good RAG answer declines. Everything — both models, the vectors, the similarity — runs on your device.