Stanislav Lem's Golem XIV published in his book Imaginary Magnitude https://www.amazon.com/Imaginary-Magnitude-Stanislaw-Lem/dp/... It might be more philosophy of AI than science fiction. It takes form of series of lectures that superintelligent (singularity level AI) gives to humanity before it goes away.
It has many ideas that I have never seen expressed anywhere outside the book.