Initial work on similarity endpoint