got examples of books where this is done ? I'm currently interested in reading some.
If I remember correctly, Peter Watts has a somewhat more realistic take on this in his Rifters trilogy (under the Novels section here: https://rifters.com/real/shorts.htm), where there's a brain in a box that sifts through loads of information and gives advice to political leaders. The trilogy as a whole is more... deep-sea cyberpunk than particularly centered on the brain in a box, though.
Not totally omniscient AI but running large ships and space stations - Imperial Radch trilogy by Ann Leckie
AIs with personality running almost every machine and helping rule the empire in the Culture series by Iain Banks.