I have developed two separate chatbots: one that searches data from my database and another that searches from PDF documents. Now, I want to create a unified chatbot that intelligently decides where to search based on the user's input.
Could someone please suggest approaches or algorithms for implementing this decision-making functionality in the chatbot?
As per example:
User Question --> Do some analysis --> (Search from PDF OR Search from DB) --> Provide output.