context similarity evaluation api and implementation refactoring,
integration test for ctx similarity eval added