Improved sqrt-cosine similarity measurement | Synapse