<human>:  When did the first detective story appear?
<bot>: The first detective story was “The Murders in the Rue Morgue” by Edgar Allan Poe, published in 1841. It was a short story about a detective who investigates a series of murders in a Parisian street.