DEV Community

Day 11 of Building GoDavaii: The Unexpected Complexity of Drug Interaction Graphs

Drug interactions. Sounds like a straightforward database lookup, right? A list of Drug A + Drug B warnings. When I started GoDavaii, I honestly thought it would be the 'easy' part of our AI health platform. Medical schools might cover it in a week, but building a robust, AI-powered interaction checker for Indian families has consumed three months of intense modeling, and we're still deep in it. It's far from simple.

The Invisible Layers of Interaction

The real challenge isn't just knowing that Drug A interacts with Drug B. It's understanding the nuance. Consider a common scenario in many Indian households: someone takes a thyroid medication with their morning tea. Sounds harmless, but the tannins in tea can reduce the absorption of certain thyroid hormones by as much as 40%. Your family doctor, in a rushed 5-minute consultation, might not catch that specific habit. This isn't a simple 'drug + drug' problem; it's a 'drug + food + timing + cultural practice' problem, and these subtle, below-the-surface interactions are often the ones that cause long-term health issues or reduce medication efficacy.

Beyond English - The Polypharmacy & Linguistic Maze

Most global health AI platforms, like Epocrates or Medscape, operate purely in English. They're excellent for what they do, but they completely miss the 'next billion' users coming online in India. Imagine trying to explain subtle symptoms like 'ang dukhte' (a bit not good) in Tamil, or asking about a traditional 'Desi Ilaaj' (home remedy) and its potential cross-verification with allopathic medicines. This isn't just about translation; it's about cultural context, local dialects, and the sheer volume of linguistic variation across 22+ languages.

We're also dealing with widespread polypharmacy - a scenario where individuals, often older family members, take 3-5 different medicines daily, prescribed by different specialists who might not have a full view of the other prescriptions. Adding traditional remedies into that mix creates a matrix of interactions that no English-only, rule-based system can handle. Each added medication or home remedy exponentially increases the complexity of potential interactions, creating a unique challenge for our AI.

Architecting Trust: Our AI and Data Approach

To tackle this multi-layered problem, we're building a multimodal AI system. Our core interaction checker relies on a meticulously constructed knowledge graph. Here, nodes represent not just medicines and their active ingredients, but also specific food items, traditional herbs, and even environmental factors. Edges define the interaction types - pharmacokinetic, pharmacodynamic, additive, antagonistic - along with severity and the underlying mechanism. This deep, granular modeling ensures we're looking beyond surface-level warnings.

For language processing, we use frontier LLMs like Google's Gemini 2.5 Flash for the initial understanding of complex, natural language queries in local languages. This isn't just about translating a query; it's about interpreting nuances in symptom descriptions or the context of a 'Desi Ilaaj' query, then grounding that understanding against our structured medical knowledge graph. For 'Desi Ilaaj' specifically, our AI cross-verifies traditional ingredients with known allopathic compounds and their effects, flagging potential conflicts - a layer of safety no global competitor currently attempts. This entire architecture is designed as a preparation tool for families, helping them raise the questions that matter and catch what a brief doctor visit might miss, augmenting the doctor rather than replacing them. We're not about diagnoses; we're about preparedness.

This journey of building GoDavaii has taught me that the perceived 'simplicity' of health tech often hides immense, overlooked complexity, especially when building for a truly diverse user base. We placed Top 14 Global Finalist at Startup Flight Vietnam 2025, and while it was a great validation, the underlying data and language challenges are what truly keep us innovating.

Try GoDavaii's Drug Interaction Checker at godavaii.com - built for the interactions your doctor's 5-minute slot won't catch.

Top comments (0)