generate model and generate comparison contexts