<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SardarIftikharKhan</title>
    <description>The latest articles on DEV Community by SardarIftikharKhan (@aidentech).</description>
    <link>https://dev.to/aidentech</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4084806%2F00a68143-4854-4c68-84de-fb68eec81f6a.png</url>
      <title>DEV Community: SardarIftikharKhan</title>
      <link>https://dev.to/aidentech</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aidentech"/>
    <language>en</language>
    <item>
      <title>Our hospital chatbot cheated at its own exams — on purpose</title>
      <dc:creator>SardarIftikharKhan</dc:creator>
      <pubDate>Sun, 15 Nov 2026 06:38:12 +0000</pubDate>
      <link>https://dev.to/aidentech/our-hospital-chatbot-cheated-at-its-own-exams-on-purpose-2fg0</link>
      <guid>https://dev.to/aidentech/our-hospital-chatbot-cheated-at-its-own-exams-on-purpose-2fg0</guid>
      <description>&lt;p&gt;When a hospital rolls out an HIS like InterSystems TrakCare, the knowledge lives in three places: classroom sessions, a Moodle full of training videos, and a pile of assessments everyone must pass. Six months later that knowledge is rotting in recordings nobody replays and PDFs nobody opens.&lt;/p&gt;

&lt;p&gt;We wanted the opposite: ask a chat icon, get the right answer — in English or Arabic. So we built one. And to train it, we did something slightly ridiculous.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://tk.aidentech.com/" rel="noopener noreferrer"&gt;Try the live demo →&lt;/a&gt;&lt;/strong&gt; — training environment only, no PHI, runs on free open models and may time out under load.&lt;/p&gt;

&lt;h2&gt;
  
  
  The exam heist
&lt;/h2&gt;

&lt;p&gt;The full story (with the confession) lives &lt;a href="https://aidentech.com/blog/chatbot-aces-trakcare-tot.html" rel="noopener noreferrer"&gt;on our blog&lt;/a&gt;. The engineering core:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;A robot drives a &lt;strong&gt;real, logged-in Chrome tab&lt;/strong&gt; by speaking Chrome DevTools Protocol, and clicks through the Moodle assessments by itself. All &lt;strong&gt;36&lt;/strong&gt; of them — nobody's thumb has time for that by hand.&lt;/li&gt;
&lt;li&gt;The loophole: each assessment's &lt;strong&gt;"Print to PDF" of a perfect attempt contains the correct answers verbatim&lt;/strong&gt;. Complete the exam once, and the write-up &lt;em&gt;is&lt;/em&gt; the answer key.&lt;/li&gt;
&lt;li&gt;36 PDFs parsed down to &lt;code&gt;QA_BANK.md&lt;/code&gt;: &lt;strong&gt;433 verified question–answer pairs&lt;/strong&gt;. A self-solving dataset — the act of cheating generated the ground truth.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  43 videos in, searchable knowledge out
&lt;/h2&gt;

&lt;p&gt;The other half of the treasure was video. A few network-tab requests turned Moodle's BrightCove embeds into direct MP4s: &lt;strong&gt;38 short how-tos&lt;/strong&gt; (register a patient, overbook an appointment, move a patient on the floor plan) plus &lt;strong&gt;five hour-long live trainer recordings&lt;/strong&gt;. A faster-whisper script — small model, int8 quantization, CPU-only — burned through all of them, produced timestamped JSON segments, and we distilled those into eleven topic files. My CPU core filed a formal complaint and kept going.&lt;/p&gt;

&lt;h2&gt;
  
  
  The retrieval engine that refuses to bluff
&lt;/h2&gt;

&lt;p&gt;Most people's "RAG pipeline" means embeddings, a vector store, and a monthly invoice. Ours means &lt;strong&gt;BM25&lt;/strong&gt; — the old information-retrieval workhorse, reimplemented by hand — because the whole corpus is ~1,100 chunks. It fits in a process, it's instant, and we can give it opinions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Source-trust tiers.&lt;/strong&gt; A Q/A pair stamped "reviewed and correct" from a finished assessment outranks any stray transcript line. Official workbooks get a 1.2× boost, video distillations 1.1×, and the glossary is gospel at 1.15×.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Arabic.&lt;/strong&gt; The deploying hospitals are largely Arabic-speaking, and Arabic doesn't stem with English rules. So the bot normalizes (alef variants → ا, ى → ي, ة → ه), strips the definite article (المواعيد → مواعيد), and consults a 100+ entry clinical synonym map (موعد ⇒ appointment, طوارئ ⇒ emergency, صيدلية ⇒ pharmacy, كاشير ⇒ cashier).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ask in Arabic, retrieve in English, answer in Arabic.&lt;/p&gt;

&lt;h2&gt;
  
  
  Serving it
&lt;/h2&gt;

&lt;p&gt;A small Node server on an unguessable port behind a Cloudflare tunnel, a soft-touch LLM proxy (temperature 0.3), and four bilingual hint chips with inline stills for the common questions. The whole harness — CDP drivers, answer-key JSON, whisper pipeline, BM25 core, FAQ layer, test battery — is maybe &lt;strong&gt;two thousand lines of actual Node. No vector database. No GPU. No SaaS.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live demo: &lt;a href="https://tk.aidentech.com/" rel="noopener noreferrer"&gt;https://tk.aidentech.com/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Full story with screenshots: &lt;a href="https://aidentech.com/blog/chatbot-aces-trakcare-tot.html" rel="noopener noreferrer"&gt;Chatbot aces TrakCare TOT by cheating at its own exams!&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;More from the blog: &lt;a href="https://aidentech.com/blog/" rel="noopener noreferrer"&gt;https://aidentech.com/blog/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're rolling out TrakCare — or any HIS — and dread the training phase, talk to us before your next rollout. The 433 question–answer pairs are already written.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>healthcare</category>
      <category>rag</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Test</title>
      <dc:creator>SardarIftikharKhan</dc:creator>
      <pubDate>Wed, 19 Aug 2026 11:24:00 +0000</pubDate>
      <link>https://dev.to/aidentech/test-936</link>
      <guid>https://dev.to/aidentech/test-936</guid>
      <description>&lt;p&gt;TEST&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
