create module for search-based inference