# Encode query into a vector, model is an instance of