How AI actually processes your prompt under the hood