Guided Decoding and Its Critical Role in Retrieval-Augmented Generation