There’s no way to do it directly, but here’s a relatively low effort way to do this (just use cosine similarity instead of distance):