So, how is consciousness generated?

Not simply by reading every word ever written by a conscious being and learning to reproduce them with high probability.

At least, that’s certainly not how I got here.

Think of the poor Xerox machines.