<human>:  Where did the concept of chivalry originate?
<bot>: Chivalry is a code of conduct that was developed in the Middle Ages. It was based on the idea that a knight should protect the weak and defend the defenseless. The code of chivalry was used to help knights in battle, and it was also used to help them in their personal lives.