each chunk → tokenize · hash words + char-bigrams into 128 buckets · L2-normalize → unit vector. fully deterministic, runs in <1 ms per chunk. real systems use neural models (text-embedding-3-small, nomic-embed, voyage) — they produce richer 768–3072-d vectors but the math downstream is identical.
rebuild the index to compute embeddings