← All examples · Home

05. Text retrieval (M5)

End-to-end offline text search: documents in, queries in, results out — all on-device (runs on CPU fallback if WebGPU is unavailable). Uses the bundled hashingEmbedder (zero-dep, lexical, offline). For semantic search, swap in transformersEmbedder — same API.

ready.