bug fix for embeddings

bug fix to nearest neighbor computation for embeddings command line tool