Shepherd: A Critic for Language Model Generation