In a way, you can find a reference to a "Collective Consciousness" in Asimov's "Foundation's Edge" and while there is a character that is (somewhat) removed from it, she is not the main character in the book. Also it is inferred that the Mule may have also been a part of Gaia (the collective).