human
What's the difference between a compass and a magnet?
assistant
A compass is used to determine direction, while a magnet is used to attract metal objects. Compasses are typically made of a material that can be magnetized, such as iron or steel, while magnets are composed of materials like neodymium or samarium-cobalt alloys.