We present a novel framework for developing robust multi-source question-
answer systems by dynamically integrating Large Language Models with diverse data sources.
This framework leverages a multi-agent architecture to coordinate the retrieval and synthe-
sis of information from unstructured documents, like PDFs, and structured databases. Spe-
cialized agents, including SQL agents, Retrieval-Augmented Generation agents, and router
agents, dynamically select and execute the most suitable retrieval strategies for each query.
To enhance contextual relevance and accuracy, the framework employs adaptive prompt en-
gineering, fine-tuned to the specific requirements of each interaction. We demonstrate the
effectiveness of this approach in the domain of Contract Management, where answering com-
plex queries often demands seamless collaboration between structured and unstructured data.
The results highlight the framework’s capability to deliver precise, context-aware responses,
establishing a scalable solution for multi-domain question-answer applications.