AI Product Manager Interview Question 2
Prepare for AI PM Interviews
We will keep on discussing AI PM Interview Questions asked recently → If you want to stay updated, you can consider Subscribing
You can also visit our previous post on
Question
You are a Product Manager and have been tasked to improve the discovery of available doctors in your hospital.
The underlying problem is that many users come on the hospitals website, browse through the directory of doctors but are not making an appointment.
Data for your Observation
Understanding the Problem
Looking at this data, it is very clear that users are also coming to the platform and showing intent to search.
Appointments are not happening because the website is not able to provide accurate results for search queries [Assumption — The appointment booking workflow is working fine]
Deep Dive & Possible Approaches -
Upon doing the query analysis, you were able to find that a large chunk of the user queries are coming in the form of natural language, such as:
There are two ways to solve the search problem -
Keyword-Based Search
This is a very traditional search method wherein keywords extracted from your search queries are matched with a catalogue of available doctors in your hospital. The underlying issues are -
The doctor’s catalogue will talk about the specialisation of the doctor, but the user queries talk about the symptoms
For example,
Though the user query & the doctor specialisation have the exact match, but the keyword search will not help in answering the user query
RAG enabled LLM-powered search
This is a modern approach where we will utilise the power of LLMs, i.e. superior language skills, reasoning abilities, while restricting the knowledge set to our latest doctor’s directory.
This modern approach will help us in searching effectively and solving the following aspects of our problem
Understanding of RAG-Based LLM Search
In order to achieve the stated goal using RAG following steps need to be followed.
Creation of dataset embeddings
As you might be aware, LLMs are trained on the world’s knowledge and not necessarily on the doctor’s directory of your hospital. Even if they were trained in your doctor’s directory, their understanding of it might not be the latest.
Hence, if we were to rely on generic LLMs, there are good chances that your revamped search will be worse off than the keyword match search.
Converting the user query in embeddings -
Finding the answer from the database using semantic search -
So once you have done that, then we need to measure the Search Relevance, how many people who are trying to search end up booking the appointment.
If you want to understand Embeddings in detail, you can read
Resources
About Me
Hey, I’m Shailesh Sharma! I help PMs and business leaders excel in Product, Strategy, and AI using First Principles Thinking. For more, check out my Live cohort course, PM Interview Mastery Course, Cracking Strategy, and other Resources