<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mansi Yadav on Medium]]></title>
        <description><![CDATA[Stories by Mansi Yadav on Medium]]></description>
        <link>https://medium.com/@yadavmansi0111207?source=rss-82139a19c6c8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*L34OOUFiBxk3iNNd</url>
            <title>Stories by Mansi Yadav on Medium</title>
            <link>https://medium.com/@yadavmansi0111207?source=rss-82139a19c6c8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 03:32:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@yadavmansi0111207/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[CareSaath: Building a Family Health Graph an AI Agent Can Act On]]></title>
            <link>https://medium.com/@yadavmansi0111207/caresaath-building-a-family-health-graph-an-ai-agent-can-act-on-12ac4afc9464?source=rss-82139a19c6c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ac4afc9464</guid>
            <dc:creator><![CDATA[Mansi Yadav]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 06:30:45 GMT</pubDate>
            <atom:updated>2026-10-19T06:30:45.370Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How I used FalkorDB and Gemini to answer “what is still pending before the doctor’s visit?”, with a source behind every claim.</em></p><h3>The problem every caregiver knows</h3><p>In most Indian families, one person quietly becomes the “health manager.” My idea for CareSaath started from that person: the sister who keeps track of her brother’s fever reports, or the daughter who manages her father’s lab tests.</p><p>Their records live everywhere: WhatsApp forwards, PDFs in a downloads folder, photos of paper slips from the clinic. The doctor says <em>“please bring the Typhidot report next time.”</em> Three weeks later, nobody can say whether it was ever handed over.</p><p>Before every visit, the same simple question comes up:</p><blockquote><strong><em>“What is still pending?”</em></strong></blockquote><p>And the only answer is scrolling through chats.</p><p>I built <strong>CareSaath</strong></p><h3>What CareSaath does</h3><ol><li><strong>Add a record.</strong> Paste text, or upload a PDF or photo of a report or doctor’s note.</li><li><strong>Review it.</strong> CareSaath suggests facts such as <em>“Request: Typhidot IgG IgM report”</em> or <em>“Appointment: 20 October, 11:00 AM.”</em> Nothing becomes evidence until a human confirms it.</li><li><strong>See what’s pending.</strong> The Today screen shows every follow-up with a derived status, like <em>Receipt not documented</em> or <em>Receipt documented</em>, plus the paragraph each status came from.</li><li><strong>Ask questions</strong> in English or Hinglish. Every claim in the answer has a source chip, and <strong>Show in graph</strong> highlights the exact path behind the answer.</li><li><strong>Prepare for the visit.</strong> You get a one-page printable sheet listing what’s done and what’s pending, and every line quotes the record it came from.</li></ol><p>Here is a real flow from my demo:</p><ul><li><strong>R1 (10 Oct)</strong>, Widal report advice: “Please bring the Typhidot IgG IgM report…”</li><li><strong>R2 (12 Oct)</strong>, Doctor visit note: asks for the Typhidot report <em>and</em> the CBC report, and confirms the next appointment.</li><li><strong>R3 (14 Oct)</strong>, Phone advice: asks for a home temperature chart.</li><li><strong>R4 (16 Oct)</strong>, Clinic note: “The Typhidot report was received.”</li><li><strong>R5 (18 Oct)</strong>, Clinic note: “The temperature chart was received.”</li></ul><p>After five records, CareSaath says: <strong>only the CBC report is still pending.</strong> It also shows <em>why</em>, with sources.</p><h3>Why a graph, and not just a table?</h3><p>My first instinct was a simple table with a done column. But health records don&#39;t behave like that:</p><ul><li><strong>The same item gets requested more than once.</strong> In my demo, two different documents ask for the same Typhidot report. In a table, that becomes two rows, or one row that loses history.</li><li><strong>“Done” needs evidence.</strong> A checkbox can’t tell you <em>who</em> said it was received, <em>when</em>, or in <em>which</em> document.</li><li><strong>New records should update only what they touch.</strong> When the clinic confirms one report, nothing else should silently change.</li></ul><p>These are all relationship questions, so I modeled them as a graph in <strong>FalkorDB</strong>.</p><h3>The graph model</h3><pre>(Person)-[:HAS_DOCUMENT]-&gt;(Document {status: draft|confirmed})<br>(Document)-[:HAS_SPAN]-&gt;(EvidenceSpan)          // one citable paragraph<br>(EvidenceSpan)-[:REQUESTS]-&gt;(FollowUp)<br>(EvidenceSpan)-[:DOCUMENTS_RECEIPT]-&gt;(Receipt)-[:FULFILLS]-&gt;(FollowUp)<br>(EvidenceSpan)-[:CONFIRMS]-&gt;(Appointment)<br>(Document)-[:CAUSED]-&gt;(Change)                  // what moved, what stayed</pre><p>The key idea is the <strong>EvidenceSpan</strong>: every fact in the graph points back to an exact paragraph of an exact document. That is what makes citations possible.</p><h3>Lesson 1: Derive status, don’t store it</h3><p>There is <strong>no </strong><strong>done: true anywhere</strong> in CareSaath. A follow-up counts as settled only if the graph can walk this path:</p><pre>FollowUp ← FULFILLS ← Receipt ← DOCUMENTS_RECEIPT ← EvidenceSpan ← HAS_SPAN ← Document {status:&#39;confirmed&#39;}</pre><p>In Cypher, the core of it looks like this:</p><pre>MATCH (p:Person {id:$pid})-[:HAS_FOLLOWUP]-&gt;(f:FollowUp)<br>OPTIONAL MATCH (rs:EvidenceSpan)-[:REQUESTS]-&gt;(f)<br>OPTIONAL MATCH (rd:Document {status:&#39;confirmed&#39;})-[:HAS_SPAN]-&gt;(rs)<br>WITH p, f, collect(DISTINCT {span_id:rs.id, doc_id:rd.id, date:rd.date}) AS requested_by<br>OPTIONAL MATCH (f)&lt;-[:FULFILLS]-(r:Receipt)&lt;-[:DOCUMENTS_RECEIPT]-(es:EvidenceSpan)<br>               &lt;-[:HAS_SPAN]-(ed:Document {status:&#39;confirmed&#39;})<br>RETURN f.label, requested_by, collect(DISTINCT {span_id:es.id, date:r.date}) AS receipts</pre><p>This gave me three things for free:</p><ul><li><strong>A draft can never close anything.</strong> An unconfirmed document breaks the path.</li><li><strong>Repeat requests reopen items.</strong> If the newest request is newer than the receipt, the item is pending again.</li><li><strong>Every status comes with its evidence.</strong> The same query returns the spans, so the UI can show “requested in D02-P1, received in D04-P1.”</li></ul><h3>Lesson 2: Update only the connected item</h3><p>When a record is confirmed, CareSaath MERGEs on a normalized follow-up key (for example fu:typhidot_igg_igm_report). So a new record attaches its evidence only to the item it belongs to.</p><p>Before and after every confirm, I snapshot the derived statuses, diff them, and write a <strong>Change</strong> node. That powers the “What changed” card:</p><blockquote><em>✅ Typhidot IgG IgM report: not documented → documented • CBC report: unchanged • Home temperature chart: unchanged</em></blockquote><p>The <strong>Why?</strong> view shows the request and the receipt side by side, with the full graph path between them. For a caregiver, “nothing else changed” is just as important as “this changed.”</p><h3>Lesson 3: Make the agent’s tools graph queries</h3><p>The Ask screen uses <strong>Gemini with function calling</strong>, but Gemini never sees the database and never writes Cypher. It can only call four read-only tools, and each tool is bound to one person’s graph before the model is asked anything:</p><ul><li>retrieve_patient_context</li><li>list_unresolved_followups</li><li>latest_change</li><li>inspect_source_span</li></ul><p>Every claim Gemini returns must carry (doc_id, span_id) citations. A server-side function, validate_sources(), checks every citation against the evidence the tools actually returned, and <strong>drops anything else</strong>. If the model invents a source, the user sees a claim with no source chip, never a fake citation.</p><p>If Gemini is unavailable, slow, or returns bad JSON, a deterministic rules engine answers from the same graph tools. The UI shows an <strong>AI</strong> or <strong>Rules</strong> badge so the user always knows which engine answered.</p><p>And both engines refuse medical questions. Ask <em>“What medicine should he take?”</em> and CareSaath answers: <em>“CareSaath only explains what the records say, so that is a question for their doctor.”</em></p><h3>Lesson 4: Show the path, not just the answer</h3><p>The <strong>Show in graph</strong> button takes the spans an answer cited, resolves them to the documents, follow-ups, receipts and appointments they connect to, and highlights that subgraph on the live graph view. Everything else is dimmed.</p><p>That was the moment the project felt right to me. The answer stops being a black box and becomes a path you can see and click.</p><h3>The stack</h3><p>Part Tech App (web) Flutter, deployed on Vercel API + agent Python, FastAPI, deployed on Vercel Context graph FalkorDB Cloud + Cypher, one graph per person LLM Gemini: tool calling for Ask, transcription for photos</p><p>Privacy is structural: <strong>each family member gets their own isolated FalkorDB graph</strong> (person_&lt;id&gt;), and a small registry graph holds only the list of profiles.</p><h3>What was hard (honest version)</h3><ul><li><strong>Gemini on the free tier.</strong> I hit a role: tool format error and later 504 timeouts. I fixed the message format, switched to a lighter Flash model, and kept the rules-engine fallback so the app never breaks.</li><li><strong>Messy OCR.</strong> Uploading photos of real lab reports produced a 60-node graph full of noise. That taught me why <strong>human review must be the gate</strong>: the extractor suggests, the person decides.</li><li><strong>No multi-query transactions.</strong> A confirm writes several queries. If it fails half-way, the orphan nodes are made <em>invisible</em> (every read requires a confirmed document), but they are not rolled back.</li><li><strong>My FalkorDB Cloud instance disappeared</strong> mid-hackathon while idle. Recreating it and updating the environment variables took a while, but it was a good lesson in keeping config clean.</li></ul><h3>What I learned</h3><ol><li><strong>Graphs are great for “why” questions.</strong> Status, history and provenance all came from traversals, not extra columns.</li><li><strong>Citations need enforcement, not prompting.</strong> Asking an LLM to cite sources is not enough. Validating citations against tool output on the server is what makes them trustworthy.</li><li><strong>Human-in-the-loop is a feature.</strong> For health data, “nothing counts until you confirm it” builds more trust than any accuracy number.</li><li><strong>Small, honest scope wins.</strong> CareSaath doesn’t diagnose anything. It just never lets a caregiver walk into a visit without knowing what is pending.</li></ol><h3>What’s next</h3><ul><li>Better extraction for more document types and Indian languages</li><li>Voice input in Hindi</li><li>Login, plus sharing a profile with family members</li><li>Reminders before appointments for pending items</li></ul><p><em>FalkorDB. All demo data is fictional. CareSaath is not a diagnostic tool.</em></p><p>#FalkorDB #GraphHacks #WeMakeDevs #KnowledgeGraph #AIAgents #Gemini #Flutter #FastAPI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12ac4afc9464" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero-Fee Micropayments on Polkadot Hub: Reimagining Stablecoin Streaming]]></title>
            <link>https://medium.com/@yadavmansi0111207/zero-fee-micropayments-on-polkadot-hub-reimagining-stablecoin-streaming-7540428b0cb7?source=rss-82139a19c6c8------2</link>
            <guid isPermaLink="false">https://medium.com/p/7540428b0cb7</guid>
            <dc:creator><![CDATA[Mansi Yadav]]></dc:creator>
            <pubDate>Fri, 20 Mar 2026 16:41:32 GMT</pubDate>
            <atom:updated>2026-03-20T16:42:17.518Z</atom:updated>
            <content:encoded><![CDATA[<p>Zero-Fee Micropayments on Polkadot Hub: Reimagining Stablecoin Streaming</p><h3>PVM / Native Functionality</h3><p>What if sending money continuously didn’t cost anything?</p><p>Not “almost nothing.”<br><strong>Literally zero fees for the recipient.</strong></p><p>That’s the idea behind <strong>Zero-Fee Micropayments on Polkadot Hub</strong> — a system where stablecoins like USDT and USDC can be streamed in real time, while gas fees are invisibly handled in the background.</p><h3>The Problem</h3><p>In today’s Web3 ecosystem, even the smallest transaction comes with a cost.</p><ul><li>Micropayments become inefficient</li><li>Subscriptions feel expensive</li><li>Payroll streaming isn’t scalable</li></ul><p>Even stablecoins — designed for stability — are still bound by <strong>gas fees</strong>.</p><p>This creates friction in exactly the use cases that should be seamless.</p><h3>The Vision</h3><p>We asked a simple question:</p><blockquote>Can we eliminate gas fees for users without compromising decentralization?</blockquote><p>Our answer: <strong>Yes — by turning yield into a subsidy layer.</strong></p><p>How It Works</p><p>At its core, the system combines <strong>real-time payment streaming</strong> with <strong>on-chain yield generation</strong>.</p><p>Instead of charging users for gas:</p><ul><li>We <strong>generate yield from staking</strong></li><li>Add <strong>ad-slot revenue</strong></li><li>Include <strong>subsidy pool contributions</strong></li></ul><p>And use that to pay gas fees on behalf of users.</p><h3>Core Architecture</h3><p>The system is built with three powerful layers:</p><h3>1. Smart Contracts (EVM on Polkadot Hub)</h3><ul><li><strong>MicropaymentStream.sol</strong> → Streams payments like Sablier</li><li><strong>SubsidyPool.sol</strong> → Covers gas using yield</li><li><strong>StablecoinBridge.sol</strong> → Connects staking + cross-chain</li></ul><h3>2. Precompile Integrations (Game Changer)</h3><p>We deeply integrated Polkadot’s native precompiles:</p><ul><li><strong>Staking Precompile (0x801)</strong><br>→ Fetches real validator rewards<br>→ Converts them into usable gas subsidies</li><li><strong>Assets Precompile (0x802)</strong><br>→ Uses native USDT (Asset ID 1984) &amp; USDC (1337)<br>→ No need for wrapped tokens</li><li><strong>XCM Precompile (0x800)</strong><br>→ Enables cross-chain asset movement</li></ul><p>This isn’t just EVM compatibility — <br>it’s <strong>true Polkadot-native execution</strong>.</p><h3>3. Agentic Relayer</h3><p>A Python-based intelligent relayer:</p><ul><li>Monitors blockchain events</li><li>Predicts optimal gas windows (ML-based)</li><li>Executes transactions when cheapest</li><li>Keeps yield flowing continuously</li></ul><p>Think of it as an <strong>autonomous gas optimizer</strong>.</p><h3>Yield-Powered Economy</h3><p>Instead of users paying fees:</p><p>SourceRoleStaking RewardsPrimary gas subsidyAd RevenueSecondary supportSubsidy PoolStability buffer</p><p>This creates a <strong>self-sustaining economic loop</strong>:</p><blockquote><em>Yield → Subsidy → Zero Fees → More Usage → More Yield</em></blockquote><h3>User Experience</h3><p>We didn’t stop at backend innovation.</p><h3>Live Stream Visualizer</h3><ul><li>Real-time animated payment flow</li><li>Particles moving from sender → receiver</li><li>Speed = payment rate</li></ul><h3>Yield Analytics Dashboard</h3><ul><li>TVL vs Gas Saved</li><li>Real-time APY</li><li>Subsidy efficiency metrics</li></ul><h3>Seamless UX</h3><ul><li>No gas worries</li><li>No hidden complexity</li><li>Just stream money like data</li></ul><h3>Security First</h3><ul><li>Reentrancy protection</li><li>CEI pattern enforced</li><li>SafeERC20 usage</li><li>Fail-safe XCM execution</li><li>Authorized relayer controls</li></ul><p>We ensured that <strong>zero fees ≠ zero security</strong>.</p><h3>Built on Polkadot Hub (Paseo Testnet)</h3><ul><li>Native USDT (Asset ID: 1984)</li><li>Full precompile utilization</li><li>Cross-chain ready</li></ul><p>This project fully aligns with <strong>Track 2: Native Functionality</strong>, showcasing what Polkadot can truly do beyond traditional EVM chains.</p><h3>Why This Matters</h3><p>This isn’t just a hackathon project.</p><p>It’s a glimpse into the future of:</p><ul><li>Subscription payments</li><li>Streaming salaries</li><li>Micro-transactions in gaming</li><li>Real-time DeFi</li></ul><p>Where <strong>users don’t think about gas at all.</strong></p><h3>What’s Next?</h3><ul><li>Expand to more parachains via XCM</li><li>Improve relayer intelligence</li><li>Integrate real-world payment use cases</li><li>Scale subsidy mechanisms</li></ul><h3>Final Thoughts</h3><p>Zero-fee transactions have always felt like a dream in Web3.</p><p>But by combining:</p><ul><li>Native Polkadot precompiles</li><li>Real staking yield</li><li>Smart economic design</li></ul><p>We’re turning that dream into reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7540428b0cb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>