How to create a chatbot that dynamically selects between database and PDF search based on user input?

Paritosh Raval 5 Reputation points
2024-02-19T10:37:55.36+00:00

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.
Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,339 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.