Adding CosineSimilarity option on ui and model.