Building a Cutting-Edge Conversational Assistant: Insights From MapAI's Lead Engineer
Thomas Fion, the Engineering lead behind our healthcare data analytics assistant, shares insights on how his team is revolutionizing insight generation with generative AI.
As the volume of healthcare data grows exponentially, so does the potential for powerful and in-depth insights. But it also increases the complexity of sifting through noise to identify what’s relevant. Traditional tools struggle to keep pace with the growing input, leaving teams frustrated by the need for higher levels of expertise to generate meaningful insights, correct inefficient processes, and resolve fragmented outputs.
MapAI™, Komodo Health’s generative AI analytics assistant, offers a solution by integrating advanced GenAI models with our trusted Healthcare Map™ to provide personalized and informative responses to healthcare queries. Embedded within the MapLab™ ecosystem, MapAI allows users to engage with complex healthcare data through simple, conversational language. It answers questions related to disease landscapes, patient journeys, and HCP/HCO trends by filtering out irrelevant data and focusing on what matters most. The tool also emphasizes transparency, providing clear visibility into both the data and the methodologies behind its insights, ensuring users can rely on accurate, trusted information from our Healthcare Map.
How We Did It: Building a Conversational Model
We began by developing an internal AI conversational engine as a service, integrated directly into the Komodo platform and its data services. This engine employed a central intelligence agent to understand the intent behind each question, allowing it to effectively delegate tasks to specialized GenAI agents capable of querying our extensive Healthcare Map. We experimented with several open-source foundational models, including Llama 3.1, Mistral 7B, and Phi-3, to identify the most suitable option for each specific use case. The MapAI engine leverages the appropriate model to orchestrate our APIs and address user intents, automatically ensuring the latest data recency, quality, and tenancy based on user subscriptions.
Our API-first approach enables rapid agent development and seamless integration with our platform’s comprehensive set of APIs, which manage user medical definitions, resource libraries, and access to the industry's most extensive source of patient-centric insights. To streamline the deployment and orchestration of these models, we implemented frameworks like LangChain and LangGraph and utilized state-of-the-art GenAI techniques such as multiagent graphs, fine-tuning based on API specifications and numerous sample scenarios, and advanced prompting methods like RAG (retrieval-augmented generation) for inference of user resources.
In building MapAI, our primary goal and challenge were to create two distinct interaction modes: a guided, democratized mode, where users can easily explore and analyze our Healthcare Map while also being able to edit their drafts side by side; and an expert mode, where users can start from a more advanced point in their analysis and jump directly into KPIs or visualizations.
MapAI in Action: Exploring Recent Breast Cancer Trends With MapAI Assistant
Let’s put MapAI in action to look at some recent trends in breast cancer. Rates of breast cancer are rising in patients under 50, and the guidelines for screening have recently been updated for this group. We asked MapAI to gather insights on this cohort:
Given the rapid evolution of generative AI, we focused on automating the entire large language model (LLM) lifecycle, enabling the adoption of future foundational models, and orchestrating and training strategies using frameworks like MLflow. In future versions, MapAI will cover all of MapLab’s capabilities, including dataset generation and dashboard creation. MapAI already streamlines workflows and delivers insights across the enterprise, but future updates will introduce multiuser conversations, where shared resources, follow-ups, and team comments will further enhance and accelerate the dashboard creation process.
By harnessing generative AI and prioritizing user experience, MapAI has redefined what's possible in healthcare data analysis, enabling teams to extract valuable insights from complex datasets with unprecedented ease and speed — up to 10 times faster than existing solutions. Tasks that once required extensive technical expertise and months of effort are now accomplished in minutes, using simple, natural language queries that generate actionable insights and visualizations.
As data scientists, we are just beginning to tap into the full potential of this technology. The future promises even greater advancements as we introduce new interaction models and collaborative features. At Komodo Health, we take pride in leading this revolution, empowering healthcare professionals to make data-driven decisions more easily and confidently.
Learn more about MapAI, or the importance of data quality in new AI tools.
To see more articles like this, follow Komodo Health on X, LinkedIn, or YouTube, and visit Insights on our website.