this concept already exists and is in practice at many companies that require knowledge driven results. https://arxiv.org/abs/2005.11401
They trained up their own LLM, but from the text it seems like it might be possible to use any LLaMA-style LM without retraining. Not sure though, need to give it a proper look.