The conversation between human and AI assistant.
[|Human|] When was Kyoto the capital of Japan?
[|AI|] The emperors of Japan ruled from Kyoto from 794 as the new seat of Japan's imperial court for eleven centuries until 1869.
[|Human|] 
When was Kyoto the capital of Japan?