Multi-model · embeddings + text-generation · WebAssembly (CPU)
Two models, one pipeline, zero server. MiniLM turns your knowledge base into vectors and finds the passages closest to the question; Qwen2.5-0.5B then answers only from those passages and cites them. This is retrieval-augmented generation — the pattern behind most "chat with your docs" products — running entirely on the CPU.
Two models load independently. Both are small on the CPU; MiniLM is ~30 MB, Qwen ~530 MB.
Retriever · MiniLM
Generator · Qwen2.5-0.5B
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.