A Unified Generative Framework for Retrieval and Question Answering with Large Language Models delframeframeworklanlangmodmodemodelmodelsramringtrie