Semantic search in Dart without the hand-written cosine loop A Flutter developer built vector_kit, a Dart library that accelerates semantic search by storing embeddings as a packed Float32List and using SIMD dot products, achieving 11x faster top-k cosine similarity queries over 20,000 documents compared to a naive List> loop. The library also offers an int8 quantized matrix that reduces memory from 29.3 MB to 7.6 MB while maintaining 100% recall@10 on the demo data. A packed matrix and SIMD dot products for top-k similarity, with the memory numbers spelled out. I had a Flutter app with about 20,000 short documents and a 384-dimension embedding for each one. Take the user's query embedding, find the five closest documents by cosine similarity, show them. On device, no server round trip. The first version is the obvious one. Embeddings in a List