A school librarian from the United Kingdom was told to pull books that the school called “upsetting”—a list that one group said the school compiled by asking an artificial intelligence (AI) chatbot.