#488 Using refactored similarity search functions for api calls