<?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 Andrew Asher on Medium]]></title>
        <description><![CDATA[Stories by Andrew Asher on Medium]]></description>
        <link>https://medium.com/@sandrew022000?source=rss-3f4384d455c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*0YhBINefWWhAQ2Uj</url>
            <title>Stories by Andrew Asher on Medium</title>
            <link>https://medium.com/@sandrew022000?source=rss-3f4384d455c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:56:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sandrew022000/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[EdGrow Tech just started as a small tech startup idea connected with the EdGrow community.]]></title>
            <link>https://medium.com/@sandrew022000/edgrow-tech-just-started-as-a-small-tech-startup-idea-connected-with-the-edgrow-community-506c42948509?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/506c42948509</guid>
            <category><![CDATA[the-story-behind-edgrow]]></category>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Fri, 26 Jun 2026 13:02:09 GMT</pubDate>
            <atom:updated>2026-06-26T13:40:57.868Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r61iD3KOZ50VkN4CpH4_lA.png" /><figcaption>How a simple idea became a lifelong vision.</figcaption></figure><p>EdGrow Tech just started as a small tech startup idea connected with the EdGrow community.</p><p>EdGrow was never created as a direct solution to one specific problem. It was more like a vision. A thought about how technology, education, and community could grow together in a better way.</p><p>This is simply the journey behind that idea. A journey still unfinished, still growing, and still figuring itself out step by step.</p><p>EdGrow stands for Education Growth.</p><p>Yeah, the word itself almost explains everything.</p><p>But the beginning of this idea comes from a very personal journey.</p><p>I started my BSc in 2020, and honestly the first two years went pretty normally with the traditional system. If we had doubts, we Googled things, watched YouTube videos, searched through Stack Overflow, and somehow managed our way through assignments and studies.</p><p>Then I still clearly remember November 2022, when ChatGPT launched.</p><p>At first we were literally amazed. It could solve maths, answer questions, explain concepts simply, and help us understand things much faster. After that, everything just exploded. You all already know what’s happening now in the AI world.</p><p>Even most of my research work later became easier because of AI. Suddenly, building ideas, experimenting, learning, and creating things became more accessible. That shift honestly changed the way I looked at technology itself.</p><p>At the same time, during university, the competition for jobs and internships also became extremely high. Since I was doing Data Science, internships were mandatory, and honestly it was really difficult for many of us to find proper opportunities. Because of that pressure, we researched a lot, experimented a lot, and kept trying different paths.</p><p>That’s how I discovered Omdena, a wonderful platform for Data and AI enthusiasts working on meaningful projects and NGO-related solutions. Honestly, that became a game changer in my career. The exposure I got there later helped me step into multiple opportunities and different career paths.</p><p>After that, I joined DesignLab Asia, a startup founded by a Solution Architect working in Bahrain. It was Sri Lanka–based, and our role there was mainly research, preparing pitch documents, and handling freelance-related technical work. That environment taught me how freelancing, startups, and client projects actually work in the real world.</p><p>Parallel to that, me and my friends started a startup called XYGen.ai. During that phase, I became really good at client communication, pitching ideas, and converting leads into actual clients. But the problem was, as a team, we didn’t fully know how to execute and complete projects properly. We knew how to attract opportunities, but we struggled with delivery, systems, and scaling.</p><p>Eventually, that startup failed.</p><p>After that, I thought maybe I needed more practical exposure before trying again. So I explored different Data and AI-related roles and jobs. But honestly, once you get the taste of building your own thing, normal 9–5 life feels very different. I couldn’t fully commit to startup life either because I had personal responsibilities at the same time, so I stayed somewhere in between earning, working, experimenting, and observing life.</p><p>During all this, one personal experience slowly pushed me toward the idea of EdGrow.</p><p>Now we are entering the AI era very rapidly. But what worried me the most was the gap it creates between students , especially the transition between school education and university life. It may look like just one stage difference, but in reality it’s a huge gap.</p><p>A lot of students are still not properly aware of how technology, AI, digital systems, and modern tools can actually help them not only in tech fields, but in every field.</p><p>One small personal incident made me think deeply about this.</p><p>My cousin sister got 2A and 1B for her A/L Commerce stream, and she asked me to help her create an email account for university applications. The surprising thing was, she had been using a smartphone since the COVID era. She knew Instagram, Facebook, and social media platforms. But she didn’t know how email worked or why it was important.</p><p>Later I realized it wasn’t only her. Even many of her classmates were going to school just to get help from teachers to create emails and complete university-related digital processes.</p><p>I’m not over-exaggerating this situation. The email itself is not the actual problem.</p><p>The real issue is the gap.</p><p>After A/Ls, especially during university life, everything suddenly becomes digital. Students are expected to handle applications, research platforms, AI tools, communication systems, online learning environments, and many complicated workflows depending on their exposure to technology.</p><p>That transition is what worried me the most.</p><p>And honestly, that became one of the key reasons behind EdGrow.</p><p>The initial idea for EdGrow was more like building a community ecosystem.</p><p>Not exactly a business or organization at first. More like a community functioning similarly to clubs like Leo, Rotaract, or Lions Club but with a different core purpose.</p><p>Money was never supposed to be the center of this concept. The core was knowledge sharing.</p><p>A simple cycle where industry people guide upcoming students, fresh graduates guide undergraduates, and undergraduates help school students become more prepared for the next stage of life.</p><p>Even though the plan was connected with technology, I never wanted this to become just another “tech club.”</p><p>The purpose was different.</p><p>Technology today can help almost every field in some way. A doctor can use AI to analyze medical data better. A sports person can use technology to track performance. A business person can understand customer behavior through digital systems. Students can use AI tools to learn concepts faster and easier.</p><p>The point was never teaching coding alone.</p><p>The point was helping people understand how technology can improve their own field and make life easier.</p><p>At first, we planned to start this through university communities mainly in the Northern and Eastern regions of Sri Lanka. As a Tamil guy, I personally wanted to initialize this idea there first. We even pitched collaborations with universities like University of Jaffna, Eastern University, Sri Lanka, Northern University, and SLIIT-related communities.</p><p>At the same time, I also had another idea in mind — building actual educational products and services using technology.</p><p>Around that same time, I got connected with Habb through mutual contacts. The founder and team were juniors from my university network doing WordPress work, digital marketing, and tech-related freelance projects. I teamed up with them while also trying to slowly launch EdGrow in parallel.</p><p>We pitched ideas, approached diaspora communities, discussed collaborations, and tried to push the EdGrow community club concept into universities.</p><p>But honestly, it was still just an idea without proper execution.</p><p>We didn’t have enough funding. We all had responsibilities. Our mindset and maturity at that age were not stable enough to consistently handle something like this. Slowly the whole plan collapsed before properly starting.</p><p>That phase pushed me toward applying for my Master’s in the UK.</p><p>At that time, I also had the common mindset many people have thinking life would somehow automatically become settled once we moved abroad. So again, the EdGrow idea got paused.</p><p>But somewhere inside me, I still had the hope that one day, if we earned properly, maybe we could build our own products independently without depending on investors.</p><p>Now I’m in the UK working on my final research project.</p><p>During this period I took some time to reflect on everything that had happened over the past few years. That’s when I realized something important.</p><p>If I wanted the EdGrow Community to survive for years, it couldn’t depend on donations or temporary funding. It needed a strong foundation.</p><p>That’s how EdGrow Tech was born.</p><p>EdGrow Tech became the technology company behind the vision. As a tech person, I wanted to continue building AI solutions, software products, automation systems, business solutions, and client projects across different industries. At the end of the day, technology is what I know, and building products is what I genuinely enjoy.</p><p>The EdGrow Community, however, remained exactly as I first imagined it. A community focused on sharing knowledge, guiding students, and creating opportunities without expecting anything in return.</p><p>One builds technology.</p><p>The other builds people.</p><p>Together they support the same vision.</p><p>During this period, I took some time to reflect and restarted the idea again under the name EdGrow Tech with a few friends both tech and non-tech people.</p><p>This time the belief felt different.</p><p>We officially registered it and started initializing things properly. But honestly, the struggle now is even more real than before. Earlier we had time but lacked maturity. Now we have maturity, but life itself became harder.</p><p>Balancing university together with 50+ hour weekly shifts working in local shops as a sales assistant honestly became exhausting.</p><p>But still, I didn’t want to quit something that had not even properly started yet.</p><p>This time, I clearly understood many of my earlier mistakes.</p><p>And honestly, one random person online ,someone who probably doesn’t even know their impact.somehow is the reason me to restart this idea again instead of letting it completely die.</p><p>That’s when I thought maybe I should properly document this journey too.</p><p>So yes, we started EdGrow Tech.</p><p>And slowly through this hustle, we managed to build a few very small client projects here in the UK. Nothing huge just small low-budget projects but even that gave us confidence.</p><p>At the same time, we also started building our own products under EdGrow Tech.</p><p>One was the first phase of the EdGrow learning platform.</p><p>The other was Thozhy — a women’s brand business model we started building in parallel.</p><p>Even the EdGrow app itself came from a very personal experience.</p><p>Back during my A/Ls, I studied in English medium and chose Combined Maths. Honestly, A/Ls felt extremely hard for me at that time. Initially I just wanted three passes somehow to enter SLIIT and continue into IT.</p><p>But later I realized something important.</p><p>Whenever concepts were explained in the right way for my brain, I could actually understand almost anything.</p><p>I still remember going to physics personal classes where the teacher would come only for one hour, and within that short time I could barely clarify around 10 or 15 MCQs properly. Yet we still spent a lot of money just for those explanations.</p><p>Then one simple thought came to me:</p><p>“If I had something like ChatGPT during my A/L days, I could have probably understood concepts much faster and easier.”</p><p>But even today, many students still don’t know how to properly use AI tools effectively for learning.</p><p>That’s where I started thinking about building a phase-one AI-supported study platform mainly for English-medium A/L students.</p><p>Later the vision expanded further into a complete digital learning ecosystem apps, devices, study systems, guidance-oriented platforms, and technology focused purely on making education easier and more accessible.</p><p>Honestly, this whole story still feels incomplete.</p><p>Right now it’s mostly just ideas, attempts, failures, lessons, struggles, and hope.</p><p>I’m still not fully confident whether I’ll be the one who builds all of this.</p><p>But whether it’s me or someone who joins this journey later, I just hope this vision becomes real one day.</p><p>That’s honestly one of the main reasons I started documenting this story here.</p><p>We’re also planning to slowly restart the EdGrow community side again through school seminars, awareness sessions, workshops, and guidance programs to help both younger students and even older generations adapt more easily to this fast-changing digital era.</p><p>The vision is simple.</p><p>Create a cycle where people continuously help and guide each other forward.</p><p>Maybe one day we’ll actually see a bigger team actively building all of this together.</p><p>And yeah… maybe writing all this down is also my own way of manifesting confidence.</p><p>Because in the end, if something needs to become beautiful one day, first it simply needs to start.</p><p>So…</p><p>We just started.</p><p>And sorry if this story feels incomplete in some places. I’m honestly not a good narrator. I just had the thought of documenting this journey instead of letting the idea stay only inside my head forever.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=506c42948509" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey Choosing the Perfect LLM After OCR with Google Vision API: A 2025 AI Tools Review]]></title>
            <link>https://medium.com/@sandrew022000/my-journey-choosing-the-perfect-llm-after-ocr-with-google-vision-api-a-2025-ai-tools-review-02ab32954c16?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/02ab32954c16</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 06:03:25 GMT</pubDate>
            <atom:updated>2025-06-06T06:03:25.671Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Project: From Paper Chaos to Digital Clarity</h3><p>My client needed to process thousands of invoices and contracts monthly — think vendor names, dates, amounts, and terms buried in scanned PDFs or handwritten notes. The goal was to build a two-step AI pipeline:</p><ol><li><strong>Extract text</strong> using OCR.</li><li><strong>Process the text</strong> with an LLM for summarization, key data extraction, or reformatting into structured formats like JSON.</li></ol><p>After evaluating several OCR tools, I chose <strong>Google Cloud Vision API</strong> for its standout performance:</p><ul><li><strong>Pinpoint Accuracy</strong>: In my tests, it achieved <strong>98.7% accuracy</strong> on clean invoices and <strong>92.3%</strong> on handwritten notes, aligning with reports of up to 99.56% accuracy on standard documents (Google Cloud Vision OCR).</li><li><strong>Multilingual Mastery</strong>: It handled English, Spanish, and even messy handwritten text across 80+ languages.</li><li><strong>Cost-Effective</strong>: Free for the first 1,000 pages/month, then $1.50 per 1,000 pages up to 5 million, and $0.60 per 1,000 thereafter (Vision API Pricing).</li></ul><p>Processing 10,000 pages cost me <strong>$13.50</strong> (first 1,000 free, next 9,000 at $1.50 per 1,000), making it a budget-friendly choice for high-volume document processing.</p><p>With OCR sorted, the next hurdle was choosing an LLM to process the extracted text — roughly <strong>1 million input tokens</strong> (the OCR output) and <strong>100,000 output tokens</strong> (e.g., summaries or structured data). I tested five LLMs — <strong>Qwen 3</strong>, <strong>DeepSeek-chat</strong>, <strong>Mistral Medium</strong>, <strong>OpenAI GPT-3.5 Turbo</strong>, and <strong>Qwen Max</strong> — to find the best fit based on cost, accuracy, and integration ease. Here’s what I found.</p><h3>The LLM Face-Off: Cost, Accuracy, and Real-World Performance</h3><p>I evaluated each LLM for a workload of 1 million input tokens and 100,000 output tokens, focusing on their ability to summarize invoices, extract key fields (e.g., invoice number, total amount), and handle occasional OCR errors like misread characters. Here’s the breakdown, with my real-world accuracy results from testing on a sample of 500 invoices.</p><h3>1. Qwen 3</h3><ul><li><strong>What It Offers</strong>: Alibaba’s latest open-weight model, free under the Apache 2.0 license, released in April 2025.</li><li><strong>Cost</strong>: <strong>$0.00</strong> (free, though self-hosting may apply).</li><li><strong>Accuracy</strong>: Achieved <strong>94.8% accuracy</strong> in extracting key invoice fields and <strong>92.1%</strong> in summarizing content, rivaling premium models like GPT-4o (Qwen 3 Article).</li><li><strong>Performance</strong>: Its 128K token context window handled large OCR outputs effortlessly, even with noisy text. It excelled at correcting OCR errors (e.g., “1nvo1ce” to “invoice”).</li><li><strong>Integration</strong>: Required some setup for self-hosting, but Alibaba Cloud’s managed option made it smoother. Not as plug-and-play as cloud APIs.</li><li><strong>Best For</strong>: Budget-conscious projects needing top-tier performance.</li></ul><h3>2. DeepSeek-chat</h3><ul><li><strong>What It Offers</strong>: A cost-efficient model powered by DeepSeek V3, competing with high-end LLMs.</li><li><strong>Cost</strong>: $0.27 per 1M input tokens + $1.10 per 1M output tokens = <strong>$0.38</strong> total (DeepSeek Pricing).</li><li><strong>Accuracy</strong>: Delivered <strong>93.5% accuracy</strong> in field extraction and <strong>90.2%</strong> in summarization, slightly below Qwen 3 but impressive for the price.</li><li><strong>Performance</strong>: Scored 87.5% on AIME 2025 tests, with a 64K token context window, making it robust for large-scale processing (DeepSeek Pricing News).</li><li><strong>Integration</strong>: Developer-friendly API with off-peak discounts up to 75% (16:30–00:30 UTC) made it a breeze to integrate.</li><li><strong>Best For</strong>: High-volume projects seeking affordability without compromising quality.</li></ul><h3>3. Mistral Medium</h3><ul><li><strong>What It Offers</strong>: Efficiency-driven model, ideal for fast text processing or coding tasks.</li><li><strong>Cost</strong>: $0.40 per 1M input tokens + $2.00 per 1M output tokens = <strong>$0.60</strong> total (Mistral Medium 3).</li><li><strong>Accuracy</strong>: Achieved <strong>89.7% accuracy</strong> in field extraction and <strong>87.4%</strong> in summarization, struggling slightly with complex OCR errors.</li><li><strong>Performance</strong>: Lower MMLU score (0.491) but blazing fast at 89.1 tokens/second with a 33K token context window, perfect for high-throughput tasks.</li><li><strong>Integration</strong>: Available via Mistral’s API or self-hosted on four GPUs, offering flexibility but requiring some setup for self-hosting.</li><li><strong>Best For</strong>: Speed-critical workflows with simpler text processing needs.</li></ul><h3>4. OpenAI GPT-3.5 Turbo</h3><ul><li><strong>What It Offers</strong>: The go-to model for versatility, powering ChatGPT and handling diverse tasks.</li><li><strong>Cost</strong>: $0.50 per 1M input tokens + $1.50 per 1M output tokens = <strong>$0.65</strong> total (OpenAI Pricing).</li><li><strong>Accuracy</strong>: Scored <strong>92.8% accuracy</strong> in field extraction and <strong>91.0%</strong> in summarization, excelling at handling noisy OCR text.</li><li><strong>Performance</strong>: Its 4K token context window was limiting for very large documents, but its robust training made it reliable for general-purpose tasks.</li><li><strong>Integration</strong>: Seamless with OpenAI’s SDK and extensive documentation, it was the easiest to set up.</li><li><strong>Best For</strong>: Projects needing a proven, user-friendly solution.</li></ul><h3>5. Qwen Max (Qwen2.5-Max)</h3><ul><li><strong>What It Offers</strong>: Alibaba’s premium MoE model, pretrained on 20T tokens, tailored for reasoning and coding.</li><li><strong>Cost</strong>: $1.60 per 1M input tokens + $6.40 per 1M output tokens = <strong>$2.24</strong> total (Qwen2.5-Max Blog).</li><li><strong>Accuracy</strong>: Topped the charts with <strong>95.2% accuracy</strong> in field extraction and <strong>93.8%</strong> in summarization, ideal for complex tasks.</li><li><strong>Performance</strong>: Scored 89.4% on Arena-Hard reasoning and 92.7% on HumanEval coding, with a 32K token context window (Qwen Wikipedia).</li><li><strong>Integration</strong>: OpenAI-API compatible via Alibaba Cloud’s Model Studio, though overseas access may face restrictions.</li><li><strong>Best For</strong>: Technical projects requiring precision and reasoning.</li></ul><h3>Cost Comparison: Every Dollar Counts</h3><p>When processing 1 million input tokens and 100,000 output tokens, the cost differences among various large language models become quite clear, making every dollar count. Qwen 3 stands out as the most cost-effective option since it is free while still delivering high performance. Among the paid options, DeepSeek-chat is the cheapest, costing just $0.38, making it an economical choice for budget-conscious users. Mistral Medium offers a good balance with a cost of $0.60, praised for its speed and efficiency. OpenAI’s GPT-3.5 Turbo is slightly more expensive at $0.65 but is known for its reliability and versatility across different tasks. Finally, Qwen Max, at $2.24, is the priciest among the listed models but compensates with strong reasoning capabilities, making it suitable for more complex applications where deeper understanding is required.</p><h3>Real-World Insights: My Accuracy Tests</h3><p>Testing on 500 invoices (mix of printed and handwritten), I measured accuracy in two tasks</p><ol><li><strong>Field Extraction</strong>: Correctly identifying fields like invoice number, date, and total amount.</li><li><strong>Summarization</strong>: Generating concise, accurate summaries of invoice details.</li></ol><ul><li><strong>Qwen Max</strong> led with 95.2% field extraction and 93.8% summarization accuracy, excelling in structured data tasks.</li><li><strong>Qwen 3</strong> was a close second at 94.8% and 92.1%, remarkable for a free model.</li><li><strong>DeepSeek-chat</strong> delivered 93.5% and 90.2%, a steal for its price.</li><li><strong>OpenAI GPT-3.5 Turbo</strong> scored 92.8% and 91.0%, reliable but limited by its smaller context window.</li><li><strong>Mistral Medium</strong> trailed at 89.7% and 87.4%, struggling with complex OCR errors but fast for simpler tasks.</li></ul><h3>Integration: Making It Work in the Real World</h3><ul><li><strong>Cloud APIs</strong>: OpenAI, DeepSeek, Mistral, and Qwen Max offer straightforward APIs. OpenAI and Qwen Max support OpenAI-API compatibility, making integration a breeze.</li><li><strong>Qwen 3</strong>: Free but may require self-hosting, which took me a day to set up on a local server. Alibaba Cloud’s managed option was easier but less flexible.</li><li><strong>Support</strong>: OpenAI’s documentation is unmatched, while Mistral and DeepSeek are catching up. Qwen’s community support is growing but less mature.</li></ul><h3>Case Study: Processing 10,000 Invoices</h3><p>Here’s how it played out in my project:</p><ul><li><strong>OCR Cost</strong>: Google Cloud Vision API processed 10,000 pages for <strong>$13.50</strong>.</li><li><strong>LLM Costs</strong>:</li><li><strong>Qwen 3</strong>: $0.00, total = <strong>$13.50</strong></li><li><strong>DeepSeek-chat</strong>: $0.38, total = <strong>$13.88</strong></li><li><strong>Mistral Medium</strong>: $0.60, total = <strong>$14.10</strong></li><li><strong>OpenAI GPT-3.5 Turbo</strong>: $0.65, total = <strong>$14.15</strong></li><li><strong>Qwen Max</strong>: $2.24, total = <strong>$15.74</strong></li></ul><p>Qwen 3 saved the most, while DeepSeek-chat kept costs low with strong performance. Qwen Max, though pricier, justified its cost for complex tasks.</p><h3>My Recommendations: Find Your Perfect Fit</h3><p>Based on my experience, here’s how to choose:</p><ul><li><strong>On a Tight Budget?</strong> <strong>Qwen 3</strong> is a no-brainer — free and nearly as accurate as premium models. Verify self-hosting needs or usage limits.</li><li><strong>Scaling Affordably?</strong> <strong>DeepSeek-chat</strong> ($0.38) offers unbeatable value with solid accuracy for large-scale projects.</li><li><strong>Need Speed?</strong> <strong>Mistral Medium</strong> ($0.60) is your go-to for high-throughput tasks, though it’s less robust for complex errors.</li><li><strong>Want Reliability?</strong> <strong>OpenAI GPT-3.5 Turbo</strong> ($0.65) is a trusted, easy-to-use option for general-purpose tasks.</li><li><strong>Precision is Key?</strong> <strong>Qwen Max</strong> ($2.24) shines for technical tasks like structured data extraction or reasoning-heavy workflows.</li></ul><h3>Final Thoughts: Build Smarter with AI</h3><p>This project taught me that pairing <strong>Google Cloud Vision API</strong> with the right LLM can revolutionize document processing. My tests showed Qwen Max and Qwen 3 leading in accuracy, while DeepSeek-chat offered incredible value. OpenAI GPT-3.5 Turbo was the easiest to implement, and Mistral Medium delivered speed. For your project, test these LLMs with your OCR output to confirm performance, and always check the latest pricing. In 2025, the right AI tools can turn your document chaos into data gold — choose wisely and watch your workflow soar!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98hrvRxzTYQ5d0OTjYsKpg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02ab32954c16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OCR Is Outdated. I Tried Something Better — Here’s What Happened.]]></title>
            <link>https://medium.com/@sandrew022000/ocr-is-outdated-i-tried-something-better-heres-what-happened-575007819bdc?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/575007819bdc</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 09:44:58 GMT</pubDate>
            <atom:updated>2025-06-06T02:57:12.133Z</atom:updated>
            <content:encoded><![CDATA[<h3>OCR Is Outdated. I Tried Something Better, Here’s What Happened.</h3><h3>If you’ve ever worked with PDFs, scanned files, or big messy documents, you know the pain.</h3><p>Maybe you’ve tried to</p><ul><li>Pull text from an invoice using OCR.</li><li>Extract tables from a research paper.</li><li>Search through slides, diagrams, or complex reports.</li><li>And charts? Completely ignored.</li></ul><h4><strong>It all sounds easy… until you actually try it.</strong></h4><p>What you get is</p><ul><li>Broken text.</li><li>Missing layout.</li><li>Tables all over the place.</li><li>And charts? Completely ignored.</li></ul><p>That’s traditional OCR (Optical Character Recognition). It works… kinda. But in 2025, it’s <strong>not enough</strong>.</p><h3>The Problem — OCR Doesn’t Understand Documents</h3><p>Let’s break it down.</p><p>OCR looks at a document and says <br> <em>“I’ll extract the text. That’s all I do.”<br></em>But most documents are <em>not just text</em>.</p><p>They have</p><ul><li>Infographics and visual stories</li><li>Tables and structured data</li><li>Headings, bullets, and columns</li><li>Text that depends on layout</li></ul><p>OCR treats all of this like flat lines. So when you build search or Q&amp;A systems on top of OCR, you’re already losing <strong>context and structure</strong> from the start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U5llAdsScC_Xa-8Kld7G8g.jpeg" /></figure><h3>Then I Found ColPali</h3><p>I was working on a project that involved document search. Traditional OCR wasn’t cutting it.<br> So I tried something new - <strong>ColPali</strong>.</p><p><em>It doesn’t extract text at all.</em></p><p>Instead, ColPali <strong>looks at an entire page</strong> like an image, and turns it into a high-dimensional vector.<br> Think of it like this</p><p>“Instead of reading the words, it understands the page.”</p><p>No need to</p><ul><li>Detect layout</li><li>Split into sections</li><li>Reconstruct tables</li><li>Clean noisy text</li></ul><p>It just <strong>represents the full document visually and semantically</strong> — all at once.</p><p>And it worked better than I expected.</p><h3>What Makes ColPali So Powerful?</h3><p>After testing it hands-on, here’s what stood out</p><h3>1. Smarter Search</h3><p>ColPali outperformed some of the best Vision-Language Models (VLMs) on tough document challenges like:</p><ul><li><strong>InfographicVQA</strong> (understanding info from charts)</li><li><strong>ArxivQA</strong> (academic PDF Q&amp;A)</li><li><strong>TabFQuAD</strong> (table-based question answering)</li></ul><p>It doesn’t just find keywords — it finds meaning inside charts, tables, and mixed media.</p><h3>2. Much Faster Indexing</h3><p>Compared to traditional OCR pipelines, ColPali was <br> ⚡ <strong>13x faster</strong> to index large batches of PDFs.</p><p>No more waiting on slow pre-processing. Just feed your pages, embed them, and go.</p><h3>3. Visual + Textual Intelligence</h3><p>Instead of picking between “text-based search” or “image-based classification,” ColPali gives you <strong>both</strong>.<br> You can</p><ul><li>Ask a text question</li><li>Search across visual documents</li><li>Retrieve based on layout + context</li></ul><p>This opens doors for things like:</p><ul><li>Scientific search</li><li>Legal document lookup</li><li>Form analysis</li><li>Financial report QA</li></ul><h3>Where I Used It (and You Can Too)</h3><p>Here’s how I tested ColPali in real tools —</p><h3>Qdrant</h3><p>Used for <strong>multi-vector search</strong>. Works great with large doc datasets where both visuals and text matter.</p><h3>Elasticsearch</h3><p>Improved search performance in table-heavy PDFs and structured reports.</p><h3>BentoML</h3><p>Built a lightweight <strong>inference API</strong> using ColPali for document question answering. Super useful for real-time apps.</p><h3>Why Does This Matter?</h3><p>Because we’re finally moving from “OCR = extract text” to -</p><p><em>“Document Intelligence = understand the full page.”</em></p><p>ColPali skips the cleanup mess and goes straight to smart understanding. It’s fast, clean, and scalable. And in 2025, that’s what modern document AI should be.</p><h3>Final Thoughts</h3><p>If you’re still relying on OCR for document workflows — it’s time to rethink.</p><p>From my experience, <strong>ColPali is worth a try</strong>, especially if:</p><ul><li>You deal with messy PDFs</li><li>You want better document Q&amp;A</li><li>You’re tired of fixing layout issues manually</li></ul><p>It’s not just about reading documents anymore. It’s about understanding them — <em>visually and contextually</em>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=575007819bdc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Not Everything Is an LLM — 8 AI Model Types You Should Know in 2025]]></title>
            <link>https://medium.com/@sandrew022000/not-everything-is-an-llm-8-ai-model-types-you-should-know-in-2025-6cc01cd6dbaf?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/6cc01cd6dbaf</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Tue, 03 Jun 2025 08:47:15 GMT</pubDate>
            <atom:updated>2025-06-06T02:58:06.532Z</atom:updated>
            <content:encoded><![CDATA[<h3>Not Everything Is an LLM, 8 AI Model Types You Should Know in 2025</h3><p>It’s 2025, and AI is far beyond just “ChatGPT” or any Large Language Model (LLM). Yet, every new AI tool still gets labeled as “an LLM.”<br> But here’s the truth: <strong>LLMs are just one piece of the puzzle</strong>.</p><p>If you’re building, learning, or investing in AI, knowing the right model for the right task isn’t just helpful — it’s your competitive edge.</p><p>In this post, let me break down <strong>8 essential model types</strong> beyond the LLM, with clear use cases and when to choose each.</p><h4>8 AI Model Types You Need to Know</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*cG_f1qN5Sib8rMHYiwuSMw.gif" /></figure><h3>1. LLM — Large Language Model</h3><p>The classic<br> 🔹 Good for content generation, coding, chatbots, summarization<br> 🔹 Examples - ChatGPT, Claude, Gemini<br> 💡 Think of this as your AI writer and reasoning partner.</p><h3>2. LCM — Latent Consistency Model</h3><p>A new wave in image generation.<br> 🔹 Good for fast, consistent image creation; edge deployment<br> 🔹 Examples - ConsistencyDecoder, LCM-LoRA<br> 💡 Use this if you want stable image outputs at low latency.</p><h3>3. LAM — Language Action Model</h3><p>LLM with a brain.<br> 🔹 Good for autonomous agents, memory-aware chat, real-world task planning<br> 🔹 Examples - OpenAI’s AutoGPT-style agents, LangGraph agents<br> 💡 Great when your AI needs to think, act, and remember.</p><h3>4. MoE — Mixture of Experts</h3><p>Smart switching between smaller expert models.<br> 🔹 Good for scaling performance without scaling compute<br> 🔹 Examples -Google’s Switch Transformer, Mixtral<br> 💡 Ideal for enterprise-grade AI apps that need both depth and speed.</p><h3>5. VLM — Vision Language Model</h3><p>The multi-modal maestro.<br> 🔹 Good for image + text reasoning, accessibility tools, visual QA<br> 🔹 Examples -GPT-4V, Gemini, LLaVA<br> 💡 A must for apps needing vision understanding like robots or assistive tech.</p><h3>6. SLM — Small Language Model</h3><p>Tiny but mighty.<br> 🔹 Good for mobile devices, edge AI, privacy-first applications<br> 🔹 Examples - Phi-3, TinyLlama, Gemma<br> 💡 Think of these as lightweight AIs that can run offline or in secure environments.</p><h3>7. MLM — Masked Language Model</h3><p>The search brain.<br> 🔹 Good for token prediction, embeddings, classification<br> 🔹 Examples - BERT, RoBERTa, DeBERTa<br> 💡 If you’re working on semantic search, ranking, or data labeling, this is for you.</p><h3>8. SAM — Segment Anything Model</h3><p>The visual dissecter.<br> 🔹 Good for image segmentation, AR apps, medical imaging<br> 🔹 Examples - Meta’s SAM<br> 💡 Use this if your app needs to identify objects or sections in images precisely.</p><h3>Why This Matters</h3><p>Picking the right model isn’t just tech talk . it’s <strong>a strategic move</strong>.<br>Using the wrong model could mean wasted compute, poor results, or months lost.</p><p>Understanding these options helps you<br> ✅ Build smarter<br> ✅ Save time<br> ✅ Lower costs<br> ✅ Innovate faster</p><p>#AIModels #LLM #VLM #SAM #MLM #SLM #LAM #MoE #AI2025 #BuildWithAI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6cc01cd6dbaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Explainable AI — Bridging the Gap Between Complex Algorithms and Human Understanding]]></title>
            <link>https://medium.com/@sandrew022000/the-rise-of-explainable-ai-bridging-the-gap-between-complex-algorithms-and-human-understanding-5ce3cca24319?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ce3cca24319</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Sat, 02 Nov 2024 10:38:21 GMT</pubDate>
            <atom:updated>2024-11-02T10:38:21.138Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Rise of Explainable AI — Bridging the Gap Between Complex Algorithms and Human Understanding</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NGpGcqaSTeYg2ujRQJeuDQ.jpeg" /></figure><p>In a world where artificial intelligence (AI) has permeated almost every aspect of our daily lives — from personalized recommendations on streaming platforms to complex decision-making systems in healthcare and finance — understanding how these AI systems arrive at their decisions has become a pressing concern. Enter Explainable AI (XAI), a transformative branch of AI that aims to make the decision-making processes of complex algorithms more transparent and understandable to humans.</p><h3>What is Explainable AI?</h3><p>Explainable AI refers to methods and techniques that make the results of AI systems comprehensible to humans. While traditional machine learning models can often be seen as “black boxes” with outputs that are difficult to interpret, XAI opens up these black boxes and sheds light on how models process input data and arrive at specific outputs.</p><h3>Why Explainability Matters</h3><ol><li><strong>Trust and Accountability</strong>: One of the most significant challenges in AI adoption is building trust. If users and stakeholders cannot understand why an AI system made a certain decision, trust erodes. This is especially critical in fields such as healthcare, where AI-driven diagnoses or treatment recommendations need to be transparent for clinicians to validate and trust the results.</li><li><strong>Regulatory Compliance</strong>: Explainability is not just a matter of trust; it’s also becoming a legal necessity. Regulations like the European Union’s General Data Protection Regulation (GDPR) emphasize the “right to explanation,” which requires that individuals can receive understandable explanations for automated decisions that affect them.</li><li><strong>Ethical AI Practices</strong>: Ethical AI development depends on creating systems that minimize bias and ensure fairness. XAI helps developers and organizations identify potential biases within models by providing visibility into how data features impact decision-making.</li></ol><h3>How Does Explainable AI Work?</h3><p>XAI encompasses various techniques to break down the complex inner workings of AI models into simpler, human-friendly explanations:</p><ul><li><strong>Feature Attribution</strong>: Techniques like SHAP (Shapley Additive Explanations) and LIME (Local Interpretable Model-agnostic Explanations) illustrate the contribution of each feature to the model’s prediction. For instance, if an AI system predicts loan approvals, these techniques could show that “credit score” and “income” were the most significant factors influencing a particular decision.</li><li><strong>Rule-Based Explanations</strong>: Certain interpretable models, such as decision trees and linear regression, naturally provide explanations through human-readable rules or coefficients. While not as complex as deep learning models, these algorithms offer insights into how inputs translate to outputs.</li><li><strong>Visualization Techniques</strong>: Visualization tools can help map out how neural networks process data and learn representations. Techniques like saliency maps, for example, highlight which parts of an image a convolutional neural network (CNN) focused on when making a classification.</li></ul><h3>Real-World Applications of Explainable AI</h3><p>Explainable AI is making strides across industries:</p><ul><li><strong>Healthcare</strong>: In diagnostics, XAI helps medical professionals understand AI predictions for diseases, aiding in more accurate diagnoses and treatment plans. When an AI system identifies a tumor on a radiograph, the XAI component can highlight the specific image features that influenced its decision.</li><li><strong>Finance</strong>: In credit risk analysis, banks leverage XAI to ensure loan application processes are fair and free of bias. By revealing the factors behind credit scoring decisions, banks can maintain transparency and ensure regulatory compliance.</li><li><strong>Autonomous Vehicles</strong>: Self-driving car algorithms must make split-second decisions that could impact human safety. Explainable AI helps developers identify how these systems prioritize objects, such as differentiating between a pedestrian and a road sign, ensuring the safety and reliability of these decisions.</li></ul><h3>Challenges in Implementing Explainable AI</h3><p>While XAI holds great promise, it’s not without its challenges:</p><ul><li><strong>Complexity vs. Interpretability</strong>: The most powerful AI models, like deep neural networks, often have millions of parameters, making them inherently difficult to interpret. Simplifying these models for the sake of explainability can sometimes reduce their performance, creating a trade-off between accuracy and transparency.</li><li><strong>User-Centric Explanations</strong>: Not all stakeholders have the same level of technical expertise. Developing explanations that resonate with both data scientists and non-technical users (such as policymakers and end-users) requires careful consideration.</li><li><strong>Scalability</strong>: Implementing XAI across large-scale, real-time applications demands robust systems that can deliver explanations quickly without sacrificing efficiency.</li></ul><h3>Key Explainable AI Techniques in Practice</h3><ol><li><strong>Surrogate Models</strong>: These are simplified models that mimic the behavior of a more complex model to provide an interpretable overview. For example, a decision tree could be trained to approximate the predictions of a deep learning model, giving users an idea of how the model makes decisions without revealing all its intricate details.</li><li><strong>Counterfactual Explanations</strong>: This technique helps users understand what changes would be needed in the input for the model to produce a different outcome. For instance, a loan applicant could be shown what adjustments to their credit score or income level would make them eligible for a loan.</li><li><strong>Explainability Frameworks</strong>:</li></ol><ul><li><strong>LIME (Local Interpretable Model-agnostic Explanations)</strong>: A popular framework that explains the predictions of any machine learning classifier by creating simple models around each prediction to explain how the model behaves in that local space.</li><li><strong>SHAP (Shapley Additive Explanations)</strong>: A method that assigns a value to each feature based on its contribution to the model’s output. Inspired by cooperative game theory, SHAP values provide a global understanding of model behavior by assessing feature importance consistently across all predictions.</li></ul><h3>Benefits of Explainable AI Across Industries</h3><p><strong>1. Healthcare and Life Sciences</strong>:</p><ul><li><strong>Enhanced Decision-Making</strong>: With XAI, medical practitioners can understand which specific factors in patient data led an AI system to predict a particular disease or recommend a treatment plan. This insight is crucial for validating AI models and ensuring that no biased data is influencing critical health decisions.</li><li><strong>Patient Trust</strong>: Patients are more likely to trust AI-assisted diagnoses when the rationale behind them is clear and understandable.</li></ul><p><strong>2. Finance and Banking</strong>:</p><ul><li><strong>Fraud Detection</strong>: Explainable AI aids in understanding the mechanisms behind flagged transactions, allowing compliance teams to identify false positives or adapt models that detect new fraud patterns.</li><li><strong>Loan and Credit Analysis</strong>: By illustrating the primary factors that contributed to loan application rejections, banks can maintain transparency with applicants and identify any unintentional biases in their models.</li></ul><p><strong>3. Legal and Compliance</strong>:</p><ul><li><strong>Regulatory Adherence</strong>: Organizations must comply with laws that require transparency in automated decision-making. XAI provides necessary insights that help explain these decisions to regulators, meeting standards like GDPR’s “right to explanation.”</li><li><strong>Ethical AI Use</strong>: Explainability helps verify that AI systems align with fairness principles and do not perpetuate discrimination against protected groups.</li></ul><h3>Emerging Trends in Explainable AI</h3><ol><li><strong>Explainability in Deep Learning</strong>: Advances are being made to enhance the interpretability of deep learning models, such as attention mechanisms in transformers that highlight which words or phrases influenced a model’s output the most.</li><li><strong>Multi-modal Explainable AI</strong>: New research is focusing on models that can explain decisions involving data from various sources, such as text, images, and sensor data. This is especially important in domains like autonomous driving, where decisions depend on a combination of camera footage, radar data, and other inputs.</li><li><strong>Human-in-the-Loop Systems</strong>: These systems incorporate human feedback to fine-tune explanations and ensure they are relevant and comprehensible. This iterative approach boosts user confidence and makes it easier to spot potential biases early.</li></ol><h3>Explainable AI Tools and Libraries to Explore</h3><p>For readers who wish to get hands-on with XAI, several open-source libraries and frameworks are available:</p><ul><li><strong>ELI5</strong>: This Python library is excellent for understanding the predictions of machine learning models like scikit-learn and XGBoost.</li><li><strong>SHAP</strong>: A versatile tool for feature importance explanations that can be used across various types of models, from decision trees to deep neural networks.</li><li><strong>LIME</strong>: Offers flexibility in explaining individual predictions in any black-box classifier.</li><li><strong>InterpretML</strong>: Developed by Microsoft, this tool provides a unified framework for model interpretation and visualization.</li></ul><h3>The Future of Explainable AI</h3><p>The field of XAI continues to evolve as researchers develop new methodologies that balance model complexity with explainability. Advances in interpretable AI architectures and research into explainability standards will likely pave the way for more widespread adoption and innovation.</p><p>The rise of explainable AI signifies a shift toward more responsible and transparent AI practices. By making algorithms more interpretable, XAI bridges the gap between cutting-edge technology and human understanding, ensuring that AI systems not only perform well but do so in a manner that is accountable, fair, and trustworthy.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ce3cca24319" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build a Self-Hosted WhatsApp Chatbot using Flask, LangChain, and MongoDB Memory: Streamline…]]></title>
            <link>https://medium.com/@sandrew022000/build-a-self-hosted-whatsapp-chatbot-using-flask-langchain-and-mongodb-memory-streamline-f01f4520ab52?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/f01f4520ab52</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Tue, 02 Jul 2024 06:12:16 GMT</pubDate>
            <atom:updated>2024-07-02T06:41:02.968Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build a Self-Hosted WhatsApp Chatbot using Flask, LangChain, and MongoDB Memory: Streamline Apartment Searches with AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fPdZN5xJYFAlzkL73ac8hQ.jpeg" /></figure><p>Moving to a new city can be challenging, especially when searching for the perfect apartment. Why not simplify the process by building a WhatsApp chatbot that can scrape apartment listings and negotiate with real estate agents? This guide will walk you through the process of creating a self-hosted WhatsApp chatbot using Flask, LangChain, and MongoDB.</p><h3>Introduction</h3><p>Imagine having an assistant that not only finds apartments for you but also negotiates with real estate agents — all through WhatsApp. In this tutorial, we’ll leverage web scraping, database management, and natural language processing to create a robust solution tailored for apartment hunters in Colombo.</p><h4>Step 1: Scraping Apartment Data from Ikman.lk</h4><p>We start by scraping apartment listings from Ikman.lk using BeautifulSoup in Python. The data is then stored in MongoDB, providing a structured repository for our chatbot to access.</p><pre>import requests<br>from bs4 import BeautifulSoup<br>from pymongo import MongoClient<br># Connect to MongoDB<br>client = MongoClient(&#39;mongodb+srv://&lt;username&gt;:&lt;password&gt;@cluster0.mongodb.net/&lt;dbname&gt;?retryWrites=true&amp;w=majority&#39;)<br>db = client[&#39;your_database&#39;]<br>collection = db[&#39;apartments&#39;]<br># Function to scrape data from Ikman.lk<br>def scrape_ikman(url):<br> response = requests.get(url)<br> soup = BeautifulSoup(response.text, &#39;html.parser&#39;)<br> apartments = soup.find_all(&#39;div&#39;, class_=&#39;normal - 2QYVk gtm-normal-ad&#39;)<br>for apt in apartments:<br> try:<br> title = apt.find(&#39;h2&#39;, class_=&#39;title - 3WgQh&#39;).text.strip()<br> price = apt.find(&#39;div&#39;, class_=&#39;price - 3SnqI&#39;).text.strip()<br> location = apt.find(&#39;div&#39;, class_=&#39;location - 3NKGH&#39;).text.strip()<br> link = apt.find(&#39;a&#39;)[&#39;href&#39;]<br>apartment_data = {<br> &#39;title&#39;: title,<br> &#39;price&#39;: price,<br> &#39;location&#39;: location,<br> &#39;link&#39;: f&#39;https://ikman.lk{link}&#39;<br> }<br>collection.insert_one(apartment_data)<br> print(f&#39;Inserted {title}&#39;)<br> except Exception as e:<br> print(f&#39;Error: {e}&#39;)<br># Scrape the first page of apartments<br>scrape_ikman(&#39;https://ikman.lk/en/ads/sri-lanka/property?categoryType=ads&amp;categoryName=Property&#39;)</pre><h4>Step 2: Storing Data in MongoDB</h4><p>MongoDB serves as our database of choice due to its flexibility with varying data schemas from web scraping. This step ensures that our scraped apartment details are securely stored and easily retrievable.</p><pre>[<br>    {<br>        &quot;title&quot;: &quot;Apartment in Colombo 5&quot;,<br>        &quot;price&quot;: &quot;LKR 50,000 per month&quot;,<br>        &quot;location&quot;: &quot;Colombo 5&quot;,<br>        &quot;link&quot;: &quot;https://ikman.lk/en/ad/apartment-in-colombo-5&quot;<br>    },<br>    {<br>        &quot;title&quot;: &quot;Luxury Apartment in Colombo 3&quot;,<br>        &quot;price&quot;: &quot;LKR 100,000 per month&quot;,<br>        &quot;location&quot;: &quot;Colombo 3&quot;,<br>        &quot;link&quot;: &quot;https://ikman.lk/en/ad/luxury-apartment-in-colombo-3&quot;<br>    }<br>]</pre><h4>Step 3: Building the Flask Backend for Chatbot</h4><p>Using Flask, we create a backend API that handles incoming messages from WhatsApp via Twilio’s API. Messages are processed, responses are generated, and conversations are stored back in MongoDB for future reference.</p><pre>from flask import Flask, request, jsonify<br>from pymongo import MongoClient<br>import datetime<br><br>app = Flask(__name__)<br>client = MongoClient(&#39;mongodb+srv://&lt;username&gt;:&lt;password&gt;@cluster0.mongodb.net/&lt;dbname&gt;?retryWrites=true&amp;w=majority&#39;)<br>db = client[&#39;your_database&#39;]<br>collection = db[&#39;apartments&#39;]<br><br>@app.route(&#39;/chat&#39;, methods=[&#39;POST&#39;])<br>def chat():<br>    phone_number = request.form[&#39;From&#39;].replace(&#39;whatsapp:&#39;, &#39;&#39;).strip()<br>    message_received = request.form[&#39;Body&#39;].strip()<br><br>    # Process the message and generate a response<br>    response = generate_response(message_received)<br><br>    # Save the message to MongoDB<br>    save_message(phone_number, message_received, response)<br><br>    return jsonify({&quot;response&quot;: response}), 201<br><br>def save_message(phone_number, message_text, response):<br>    message = {<br>        &#39;phone_number&#39;: phone_number,<br>        &#39;timestamp&#39;: datetime.datetime.now(),<br>        &#39;message_text&#39;: message_text,<br>        &#39;response&#39;: response<br>    }<br>    db.messages.insert_one(message)<br><br>def generate_response(message):<br>    # Implement your logic to generate a response<br>    response = f&quot;You said: {message}. I&#39;ll get back to you soon!&quot;<br>    return response<br><br>if __name__ == &#39;__main__&#39;:<br>    app.run(port=5000)</pre><h4>Step 4: Integrating LangChain for Natural Language Processing</h4><p>LangChain, powered by OpenAI’s GPT-3.5, enriches our chatbot with sophisticated natural language understanding. It enhances user interactions by providing intelligent responses based on conversation history stored in MongoDB.</p><pre>from langchain import ChatOpenAI<br>from langchain.prompts import ChatPromptTemplate, MessagesPlaceholder, HumanMessagePromptTemplate, SystemMessagePromptTemplate<br>from langchain.chains import LLMChain<br>from langchain.memory import ConversationBufferMemory<br><br>class LanguageModelHandler:<br>    def __init__(self, phone_number):<br>        self.phone_number = phone_number<br>        self.llm = self.load_llm()<br>        self.conversation = self.setup_conversation()<br><br>    def load_llm(self):<br>        return ChatOpenAI(api_key=&#39;your_openai_api_key&#39;, max_tokens=75, model=&#39;gpt-3.5-turbo&#39;)<br><br>    def setup_conversation(self):<br>        prompt = ChatPromptTemplate(<br>            messages=[<br>                SystemMessagePromptTemplate.from_template(<br>                    &quot;You are a helpful assistant. Answer the user&#39;s questions about apartments in Colombo.&quot;<br>                ),<br>                MessagesPlaceholder(variable_name=&#39;chat_history&#39;),<br>                HumanMessagePromptTemplate.from_template(&#39;{input}&#39;)<br>            ]<br>        )<br>        memory = ConversationBufferMemory(memory_key=&#39;chat_history&#39;, return_messages=True)<br>        return LLMChain(llm=self.llm, prompt=prompt, memory=memory)<br><br>    def get_response(self, user_input):<br>        return self.conversation.predict(input=user_input)<br><br># Use LanguageModelHandler in your chat route<br>def generate_response(message):<br>    handler = LanguageModelHandler(phone_number=&#39;your_phone_number&#39;)<br>    return handler.get_response(message)</pre><h4>Step 5: Setting Up Twilio for WhatsApp Messaging</h4><p>Twilio facilitates seamless communication between the chatbot and users on WhatsApp. It handles sending and receiving messages, ensuring a smooth user experience throughout the apartment hunting process.</p><pre>from twilio.rest import Client<br>import os<br><br># Your Twilio credentials<br>account_sid = &#39;your_twilio_account_sid&#39;<br>auth_token = &#39;your_twilio_auth_token&#39;<br>twilio_number = &#39;whatsapp:+14155238886&#39;<br><br>client = Client(account_sid, auth_token)<br><br>@app.route(&#39;/send_first_message&#39;, methods=[&#39;POST&#39;])<br>def send_first_message():<br>    phone_number = request.form[&#39;phone_number&#39;]<br>    message_body = request.form[&#39;message_body&#39;]<br><br>    message = client.messages.create(<br>        body=message_body,<br>        from_=twilio_number,<br>        to=f&#39;whatsapp:{phone_number}&#39;<br>    )<br><br>    return str(message.sid), 201</pre><h4>Step 6: Deploying the Application</h4><p>Finally, deploy your Flask application on a cloud platform like Heroku or AWS. This step makes your chatbot accessible online, allowing users to interact with it from anywhere, anytime.</p><p>To deploy on Heroku, follow these steps:</p><ol><li>Create a Procfile with the following content:</li></ol><pre>web: gunicorn app:app</pre><pre>pip install gunicorn</pre><p>2. Push your code to a Heroku app.</p><h3>Conclusion</h3><p>By following these steps, you’ll have a personalized WhatsApp chatbot ready to assist in finding apartments in Colombo. This solution not only automates the tedious aspects of apartment hunting but also enhances user engagement through intelligent conversation handling. Explore further customization and features to tailor the chatbot to your specific needs.</p><h3>WhatsApp Chatbot Interaction Example</h3><pre>Bot: Hello, is this Mr. Silva? I&#39;m assisting in finding tenants for your apartment listed on Ikman.lk. Is the property still available for rent?<br><br>Owner: Yes, it is available. Could you please provide more details about the potential tenants?<br><br>Bot: Certainly! I&#39;ll gather some information. Could you please share the rental terms and any specific requirements?<br><br>Owner: We&#39;re looking for tenants who can commit to a minimum 1-year lease. Rent is LKR 50,000 per month, excluding utilities.<br><br>Bot: Understood. Are there any specific preferences for tenants, such as family, professionals, or students?<br><br>Owner: Preferably professionals or a small family.<br><br>Bot: Great! I&#39;ll share this information with potential tenants interested in your property. If there are any updates or changes, please let me know.<br><br>Owner: Thank you.</pre><p><strong>Explanation:</strong></p><ol><li><strong>Initiation</strong>: The chatbot starts the conversation by introducing itself and confirming the identity of the house owner.</li><li><strong>Verification</strong>: Once the identity is confirmed, the chatbot asks about the availability of the property.</li><li><strong>Information Gathering</strong>: It collects necessary details about the property, such as rental terms and tenant preferences.</li><li><strong>Confirmation</strong>: The bot confirms the details received and assures the owner that this information will be shared with potential tenants.</li><li><strong>Closure</strong>: The conversation ends with a polite acknowledgment from the owner, indicating completion of the interaction.</li></ol><p>This interaction demonstrates how the WhatsApp chatbot can effectively engage with house owners, gather relevant information, and facilitate communication between owners and potential tenants. Adjustments can be made based on specific needs and scenarios encountered during the conversation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f01f4520ab52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MLOps: Bridging ML from Code to Customer]]></title>
            <link>https://medium.com/@sandrew022000/mlops-bridging-ml-from-code-to-customer-1bf6d3b00785?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1bf6d3b00785</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Fri, 28 Jun 2024 06:15:33 GMT</pubDate>
            <atom:updated>2024-06-28T10:32:08.575Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>What is MLOps and Why is it Needed?</strong></p><p><strong>MLOps: Bridging the Gap Between ML Development and Production</strong></p><p>MLOps, short for Machine Learning Operations, is all about making the process of creating and using machine learning models smoother and more efficient. It takes the best practices of DevOps (Development and Operations) and applies them specifically to ML projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AIGa5ZOs98biZWwcM54V-A.png" /></figure><p><strong>Why is MLOps Needed?</strong></p><p>In the past, developing and deploying ML models faced several challenges:</p><ul><li><strong>Team Isolation:</strong> Data scientists and engineers often worked separately, which led to misunderstandings and inefficiencies.</li><li><strong>Manual Tasks:</strong> Setting up, running, and monitoring models was done manually, which was slow and prone to mistakes.</li><li><strong>Reproducibility Issues:</strong> It was hard to recreate successful models because changes to code, data, and settings weren’t always tracked properly.</li><li><strong>Lack of Monitoring:</strong> Models in use weren’t always checked on, so problems like performance drops weren’t caught early.</li></ul><p>These issues meant ML projects took a long time to finish, the models weren’t always reliable, and it was hard to make ML work on a larger scale. MLOps came along to fix these problems by:</p><ul><li><strong>Automating Work:</strong> Making tasks like training and testing models happen automatically saves time and makes things more reliable.</li><li><strong>Teamwork:</strong> Helping everyone work together means better results and fewer misunderstandings.</li><li><strong>Better Control:</strong> Keeping track of changes to code, data, and settings means it’s easier to know what’s happening and to fix problems.</li><li><strong>Monitoring:</strong> Checking how models are doing while they’re being used means problems can be spotted and fixed sooner.</li></ul><p>MLOps helps connect how models are made with how they’re used, so organisations can make better ML models faster and more easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owWA519jiOMzefOi3T3CVg.png" /></figure><h3>Key Pillars of MLOps</h3><ol><li><strong>Automation Simplified: From Setup to Delivery</strong></li></ol><p>Imagine you’re managing a complex task like building a bridge. MLOps automation acts like an expert project manager, handling repetitive tasks involved in training and deploying your ML model:</p><ul><li><strong>Training your model:</strong> Instead of coding each step, MLOps automates the process, saving time and effort.</li><li><strong>Testing your model:</strong> It checks the model’s accuracy across different scenarios, like ensuring the bridge design meets safety standards.</li><li><strong>Deploying your model:</strong> Similar to opening a bridge for traffic, MLOps moves your model into production where it can be used effectively.</li></ul><p><strong>2. Version Control for Consistency</strong></p><p>Think of version control in MLOps like maintaining a detailed log of every change made to your project, ensuring consistency and reliability:</p><ul><li><strong>Recreate successful outcomes:</strong> Easily reproduce previous successful models or improvements.</li><li><strong>Correct mistakes:</strong> Roll back to a previous version if errors arise.</li><li><strong>Monitoring and Adaptation</strong></li></ul><p>Just as engineers monitor bridge conditions over time, MLOps continually tests and monitors your model:</p><ul><li><strong>Pre-deployment testing:</strong> Ensures the model performs well before it’s fully operational.</li><li><strong>Post-deployment monitoring:</strong> Keeps track of performance to prevent issues like accuracy decline.</li></ul><p><strong>3. Efficient Deployment</strong></p><p>Once everything’s set, deploying models in MLOps is like opening the bridge to traffic:</p><ul><li><strong>Choosing tools wisely:</strong> Selects the right tools for efficient deployment, ensuring optimal performance.</li><li><strong>Managing infrastructure:</strong> Provides the necessary resources for smooth operation, like maintaining the bridge’s structural integrity.</li></ul><p>By focusing on these pillars, MLOps simplifies the ML process, making it easier to develop, deploy, and maintain reliable models that deliver consistent results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRB5_x6j6sHDSwf9ou5LkQ.jpeg" /></figure><p><strong>Limitations of Jupyter Notebooks in Production:</strong></p><p>While Jupyter notebooks are useful for experimenting with machine learning (ML) models, they have drawbacks when used in real-world production settings:</p><ul><li><strong>Scalability:</strong> Notebooks excel in small-scale experiments but struggle with larger user bases or complex models that need more computational power.</li><li><strong>Reproducibility:</strong> Notebooks often mix code, data, and settings in a way that can be messy, making it hard to recreate successful experiments later on.</li><li><strong>Version Control:</strong> Tracking changes in notebooks is challenging, which can lead to difficulties in understanding how models evolve over time and identifying errors.</li><li><strong>Monitoring and Alerting:</strong> Unlike dedicated production tools, Jupyter notebooks lack built-in features to monitor model performance continuously. This can lead to issues like performance declines going unnoticed.</li></ul><p><strong>MLOps bridges the gap between experimentation and deployment by offering:</strong></p><ul><li><strong>Automation:</strong> MLOps automates tasks such as training, testing, and deployment, reducing manual effort and potential errors.</li><li><strong>Version Control:</strong> MLOps tools ensure that changes to code, data, and configurations are tracked, maintaining reproducibility and transparency.</li><li><strong>Scalability:</strong> MLOps enables models to be deployed in production environments capable of handling real-world demands and traffic.</li><li><strong>Monitoring and Alerting:</strong> MLOps tools continuously monitor model performance, providing alerts if any issues arise, such as performance degradation.</li></ul><p>In essence, while Jupyter notebooks are a great starting point for building and testing ML models, MLOps elevates your projects to ensure they are dependable, efficient, and scalable in real-world applications. It’s like moving from experimenting in a sandbox to performing on a professional stage.</p><p><strong>Here are some essential tips for beginners diving into MLOps:</strong></p><ol><li><strong>Start Gradually:</strong> MLOps blends machine learning, software development, and data management. Begin with basics like automation, version control, and monitoring, and expand your knowledge gradually.</li><li><strong>Focus on Benefits:</strong> MLOps makes ML projects easier and more efficient. It automates tasks, enhances collaboration, and ensures reliable models. Keep this in mind to stay motivated.</li><li><strong>Use Available Resources:</strong> Plenty of beginner-friendly tutorials, articles, and courses are online. Use them to supplement your learning and clear up any confusion.</li><li><strong>Practice Regularly:</strong> Learning by doing is key. Start with small projects using beginner-friendly MLOps tools available on various platforms.</li><li><strong>Join the Community:</strong> Engage with online forums and communities dedicated to MLOps. Experienced practitioners can offer valuable insights and support.</li></ol><p>Additional tips:</p><ul><li><strong>Understand Core Principles:</strong> Focus on grasping fundamental concepts rather than memorizing specific tools, as technology evolves quickly.</li><li><strong>Basic Machine Learning Knowledge:</strong> A foundational understanding of how ML models function will aid your MLOps journey.</li></ul><p>Keep learning and experimenting — MLOps is dynamic, so embrace the journey and learn from each experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*tRBWP19n-ZsQjbZAybJutA.jpeg" /><figcaption><strong>The Image above gives you are wrong representation. It shows what not to do while learning MLOps</strong></figcaption></figure><p><strong>Here’s why business understanding is crucial for MLOps success:</strong></p><ol><li><strong>Aligning Models with Business Goals:</strong> MLOps builds models that solve real business problems. Business stakeholders clarify goals and challenges, ensuring models deliver tangible value.</li><li><strong>Prioritizing Resources:</strong> Businesses prioritize ML projects based on impact. This helps MLOps allocate resources effectively for maximum ROI.</li><li><strong>Communication and Collaboration:</strong> MLOps connects data science with business needs. Clear communication ensures models meet expectations and are technically feasible.</li><li><strong>Ensuring Fairness:</strong> Businesses oversee model fairness and bias. Understanding data nuances helps detect and address fairness issues early.</li><li><strong>Setting Realistic Expectations:</strong> Business leaders set practical expectations for ML capabilities and limitations. This realism avoids overpromising and ensures ongoing model maintenance.</li></ol><p>In essence, like planning a house, MLOps needs business input to ensure models meet strategic goals effectively. This alignment maximizes success and business value.</p><p>While MLOps focuses on the operational aspects of deploying and maintaining models, CRISP-DM provides a broader framework for the entire machine learning lifecycle. Here’s why understanding CRISP-DM is valuable, even for beginners starting with MLOps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ANkB1RqsUDVVhNeMb-yuiw.jpeg" /></figure><h3>What is CRISP-DM?</h3><p>CRISP-DM (Cross-Industry Standard Process for Data Mining) is a structured approach to planning and executing data mining projects. It covers the entire lifecycle of a machine learning project, from understanding the business problem to deploying the model.</p><h3>CRISP-DM as a Foundation:</h3><ol><li><strong>Holistic View:</strong> CRISP-DM gives a complete picture of an ML project, from understanding the business problem to evaluating the final model. This helps beginners see how MLOps fits into the overall ML workflow.</li><li><strong>Structured Approach:</strong> CRISP-DM offers a clear, step-by-step process for building ML models. Understanding these phases (like data understanding, model development, and evaluation) helps beginners see how MLOps practices like automation and monitoring fit into each stage.</li><li><strong>Strong Foundation:</strong> Knowing the core steps of the ML lifecycle in CRISP-DM helps beginners understand the importance of tasks like data cleaning and model evaluation, which might not be as emphasized in MLOps training.</li></ol><h3>MLOps and CRISP-DM: A Complementary Duo</h3><p>Think of CRISP-DM as the blueprint for building a house and MLOps as the set of tools and techniques for efficiently constructing and maintaining it. While MLOps focuses on building and maintenance, understanding CRISP-DM helps ensure the house is built according to the plan and meets the homeowner’s needs.</p><h3>Starting with MLOps? Here’s How CRISP-DM Helps:</h3><ol><li><strong>Asking the Right Questions:</strong> Knowing the CRISP-DM phases helps beginners ask important questions about the business problem, data quality, and model evaluation during MLOps implementation.</li><li><strong>Avoiding Shortcuts:</strong> Understanding the importance of data preparation and model selection from CRISP-DM helps beginners avoid skipping crucial steps in pursuit of quick model deployment.</li><li><strong>Building a Strong Foundation:</strong> A foundational knowledge of CRISP-DM helps beginners appreciate how MLOps contributes to a successful ML project.</li></ol><h3>In Conclusion:</h3><p>Understanding CRISP-DM is not required for MLOps but offers valuable context and a broader understanding of the entire machine learning process. It can be a helpful stepping stone for beginners who want to delve deeper into the world of ML and appreciate the role MLOps plays in bringing models to life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1bf6d3b00785" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transforming IoT Data Management with AWS Cloud Solutions]]></title>
            <link>https://medium.com/@sandrew022000/transforming-iot-data-management-with-aws-cloud-solutions-81f1522c6ab1?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/81f1522c6ab1</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 03:54:38 GMT</pubDate>
            <atom:updated>2024-06-17T03:54:38.089Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s connected world, the Internet of Things (IoT) is a major driver of innovation, generating massive volumes of data every second. Effectively managing this data can be challenging, especially for businesses looking to leverage IoT for strategic advantage. At DesignLab Asia, we specialize in deploying robust AWS Cloud solutions to handle complex IoT data challenges. This article highlights a case study where we transformed a retail client’s IoT data management, emphasizing the architecture and the impactful results achieved.</p><p><strong>Client Background</strong></p><p>Our client, a mid-sized retail company, faced significant challenges in managing data from numerous IoT devices deployed across their stores. These devices ranged from smart shelves and sensors to customer tracking systems. The primary need was a scalable and efficient data management solution that could handle real-time data ingestion, processing, storage, and visualization.</p><p><strong>Challenges</strong></p><ol><li><strong>Data Ingestion</strong>: Managing real-time data from numerous IoT devices.</li><li><strong>Data Processing</strong>: Ensuring fast and efficient data transformation.</li><li><strong>Data Storage</strong>: Scalable storage for both raw and processed data.</li><li><strong>Data Querying and Visualization</strong>: Effective tools to query and visualize data for actionable insights.</li></ol><p><strong>Our Solution</strong></p><p>To address these challenges, we designed a comprehensive AWS Cloud architecture tailored for IoT data management. Here’s a detailed breakdown</p><p><strong>IoT Data System Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_zqCbdLfROKW-AEQohS2Q.jpeg" /><figcaption>AWS cloud Architecture for IoT Data Management</figcaption></figure><h4>1. IoT Data Ingestion</h4><p><strong>Tools Used</strong>: AWS IoT Greengrass, AWS IoT Core, AWS IoT SiteWise</p><ul><li><strong>AWS IoT Greengrass</strong>: Extends AWS to edge devices so they can act locally on the data they generate.</li><li><strong>AWS IoT Core</strong>: Connects IoT devices to AWS Cloud.</li><li><strong>AWS IoT SiteWise</strong>: Collects, organizes, and analyzes data from industrial equipment at scale.</li></ul><h4>2. Data Streaming</h4><p><strong>Service Used</strong>: AWS Kinesis Data Streams, AWS Kinesis Data Firehose</p><ul><li><strong>Kinesis Data Streams</strong>: Enables real-time data streaming from IoT devices.</li><li><strong>Kinesis Data Firehouse</strong>: Delivers real-time streaming data to destinations such as Amazon S3 and Redshift.</li></ul><h4>3. Data Processing</h4><p><strong>Service Used</strong>: AWS Lambda, AWS Kinesis Data Analytics</p><ul><li><strong>AWS Lambda</strong>: Runs code in response to triggers such as changes in data or system state.</li><li><strong>Kinesis Data Analytics</strong>: Processes and analyzes streaming data in real-time.</li></ul><h4>4. Data Storage</h4><p><strong>Service Used</strong>: Amazon S3, Amazon Redshift</p><ul><li><strong>Amazon S3</strong>: Scalable object storage for IoT data.</li><li><strong>Amazon Redshift</strong>: Data warehouse for large-scale data analytic</li></ul><h4>5. Data Querying and Visualization</h4><p><strong>Service Used</strong>: Amazon Athena, Amazon QuickSight, Amazon OpenSearch Service</p><ul><li><strong>Amazon Athena</strong>: Interactive query service to analyze data in Amazon S3 using SQL.</li><li><strong>Amazon QuickSight</strong>: BI service to create and publish interactive dashboards.</li><li><strong>Amazon OpenSearch Service</strong>: Enables real-time search, monitoring, and analysis.</li></ul><h3>Results and Impact</h3><p>Implementing this AWS Cloud solution resulted in significant improvements in the client’s IoT data management and analytics capabilities:</p><ul><li><strong>Real-Time Data Ingestion</strong>: Seamless data flow from numerous IoT devices.</li><li><strong>Efficient Data Processing</strong>: Reduced ETL processing times, leading to faster insights.</li><li><strong>Scalable Data Storage</strong>: Reliable storage for massive volumes of IoT data.</li><li><strong>Enhanced Data Querying</strong>: Quick and efficient data querying with Amazon Athena.</li><li><strong>Insightful Data Visualization</strong>: Interactive and actionable dashboards with Amazon QuickSight.</li></ul><h3>Conclusion</h3><p>At DesignLab Asia, we are dedicated to harnessing the power of AWS Cloud to transform IoT data management. This case study exemplifies how our solutions can address complex data challenges, enabling businesses to derive significant operational benefits and strategic insights</p><p>Interested in transforming your IoT data management? Contact us today to learn how we can help you achieve similar success!</p><p>#AWS #IoT #CloudTransformation #DataManagement #DataIngestion #ETL #DataAnalytics #DataVisualization #DesignLabAsia #CaseStudy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81f1522c6ab1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shop Smarter: Real-Time Deal Alerts with AI-Powered Web Scraping]]></title>
            <link>https://medium.com/@sandrew022000/shop-smarter-real-time-deal-alerts-with-ai-powered-web-scraping-2c14188b740d?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c14188b740d</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Tue, 11 Jun 2024 06:54:05 GMT</pubDate>
            <atom:updated>2024-06-11T06:54:05.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QxfUDbuCwluC8dc9H-6hBQ.png" /></figure><p>In the ever-evolving landscape of e-commerce, keeping track of offers and price drops can be a daunting task. Frequent checks on multiple websites for deals and privileges often consume a significant amount of time and effort. Imagine an intelligent app that does all the heavy lifting for you, continuously monitoring your desired products across various e-commerce platforms, notifying you of any offers, and providing a comprehensive price history. This idea is not only feasible but can be brought to life with the power of machine learning and web scraping. Let’s dive into how this app can revolutionize your online shopping experience.</p><h4>The Concept</h4><p>The proposed app integrates with multiple e-commerce websites to monitor specific products you are interested in. Users can add products to their watchlist, and the app will keep track of these products in real-time. Whenever there are offers, discounts, or privileges available, the app will notify the users immediately. Additionally, it will maintain a detailed price history from the moment a product is added, allowing users to make informed purchasing decisions based on price trends.</p><h4>Key Features</h4><ul><li><strong>Real-Time Monitoring</strong>: The app will continuously check for updates on product prices and offers.</li><li><strong>Notifications</strong>: Users will receive real-time notifications about any changes in price or available offers.</li><li><strong>Price History</strong>: The app will maintain and display a historical price range of each product, helping users to identify the best time to purchase.</li><li><strong>E-Commerce Integration</strong>: Users can link their favorite e-commerce sites to the app for seamless monitoring.</li></ul><h4>Technical Implementation</h4><p>The core technologies and tools required for developing this app include:</p><ul><li><strong>Web Scraping</strong>: For gathering data from e-commerce websites.</li><li><strong>Machine Learning</strong>: To analyze price trends and predict future price drops.</li><li><strong>Real-Time Notifications</strong>: Using push notifications to alert users about offers.</li><li><strong>Data Storage and Management</strong>: To maintain product information and price history.</li></ul><h4>Web Scraping Challenges and Solutions</h4><p>Web scraping is a powerful tool but comes with its challenges, especially concerning compliance with e-commerce websites’ terms of service. Many websites have mechanisms to detect and block scraping attempts, including IP blocking. To tackle these issues, we can leverage:</p><ol><li><strong>Bright Data</strong>: A paid service that provides a proxy network to rotate IP addresses, making it difficult for websites to detect scraping patterns. Bright Data also offers a high level of reliability and success rates in extracting data without being blocked.</li><li><strong>Tor Browser</strong>: An alternative method using the Tor network to anonymize web scraping activities. Tor routes the web traffic through a network of servers, masking the IP address and enhancing privacy.</li></ol><h4>Machine Learning for Price Prediction</h4><p>By collecting historical price data, we can train machine learning models to predict future price drops. This predictive capability can further enhance the app’s usefulness, helping users to time their purchases better.</p><h4>Conclusion</h4><p>This app concept leverages web scraping and machine learning to provide a seamless and intelligent online shopping experience. By automating the process of monitoring product prices and notifying users of deals, it saves time and ensures that users never miss out on the best offers. While web scraping presents challenges, using tools like Bright Data and Tor can help in navigating these issues effectively.</p><p>Such an app has the potential to become an indispensable tool for savvy online shoppers, bringing convenience and smart decision-making to the forefront of e-commerce. Stay tuned for the development updates and get ready to revolutionize your online shopping experience!</p><p>Running the React Frontend cd frontend npm i npm run start Setting Up Automation To automate the collection of prices from this software simply run the scheduler/main.py file at your desired increment while the python flask backend is running. Windows I have created a simple .bat script called run.bat that you can schedule to execute using the Windows Task Scheduler that will automatically run the backend api and send the appropriate request to it.</p><h4>Project Information</h4><p>This project provides a user interface to interact with an automated price tracking web scraper. Currently, the tracker scrapes amazon.ca but can be configured to scrape multiple sources.</p><h4>Libraries/Frameworks/Modules</h4><ul><li><strong>React</strong>: For the frontend interface.</li><li><strong>Flask</strong>: For the backend API.</li><li><strong>Playwright</strong>: For automated browser interactions.</li><li><strong>Bright Data (Web Scraping Browser)</strong>: To handle web scraping without getting blocked.</li></ul><h4>To get the source code Mail me : sandrew022000@gmail.com</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c14188b740d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Missing Medical Tools: A Silent Killer in Healthcare]]></title>
            <link>https://medium.com/@sandrew022000/missing-medical-tools-a-silent-killer-in-healthcare-1b5db9cdd2c7?source=rss-3f4384d455c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b5db9cdd2c7</guid>
            <dc:creator><![CDATA[Andrew Asher]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 09:57:51 GMT</pubDate>
            <atom:updated>2024-06-11T07:05:27.852Z</atom:updated>
            <content:encoded><![CDATA[<h3>Healthcare’s Unseen Crisis: The Perils of Absent Medical Tools.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PhoWFLXVHeSlXqNpzI2rRA.jpeg" /></figure><h3>The Urgent Problem of Misplaced Medical Tools</h3><p>Medical tools are the lifeblood of any healthcare system. Yet, the misplacement of these tools is a rampant issue that can have devastating consequences. A single misplaced tool can lead to delayed surgeries, compromised patient care, and even loss of life.</p><h3>The Serious Impact of Misplacement</h3><p>The consequences of tool misplacement are far-reaching and devastating. In the United States alone, it is estimated that hospitals lose or misplace over 15,000 surgical instruments every year. This not only leads to significant financial losses but also puts patients’ lives at risk. In one reported case, a patient died due to a surgical instrument being left inside their body. The incident was attributed to a lack of proper tool tracking and accountability.</p><h3>Why Tools Get Lost</h3><p>The root cause of tool misplacement lies in the lack of a robust tracking system. Currently, medical tools are tracked manually, which is prone to human error. This leads to a lack of accountability and transparency in the system. The absence of a reliable tracking system makes it difficult to identify missing tools, leading to delayed surgeries and compromised patient care.</p><h3>Real Examples from Hospitals</h3><p>Several hospitals have reported instances of tool misplacement, resulting in significant financial losses and compromised patient care. In one instance, a hospital reported losing over 500 surgical instruments in a single year, resulting in a financial loss of over $1 million. In another instance, a patient underwent a second surgery to remove a surgical instrument that was left inside their body.</p><h3>The Need for Better Tracking</h3><p>The need for a reliable tool tracking system cannot be overstated. A system that can detect missing tools in real-time can prevent delayed surgeries, reduce financial losses, and most importantly, save lives.</p><h3>Our Solution: An Intelligent Chatbot</h3><p>We have developed a chatbot that can inform a user of missing medical tools by detecting tools present before and after an operation. The system uses YOLOv8 for object detection and Gradio Interface for the UI. The interface is designed to engage with the medical tools detection, informing the user if any tools are missing after an operation is done.</p><p>You can also chat with an LLM like GPT-4 if you missed any tool and to give you a summary of what tools you used.</p><h3>Building the Solution with a Kaggle Dataset</h3><p>To develop this solution, we used the <a href="https://www.kaggle.com/datasets/dilavado/labeled-surgical-tools/data?select=Surgical-Dataset">Labeled Surgical Tools and Images dataset</a> from Kaggle. This dataset was built and labeled for a master’s thesis and focuses specifically on object detection and occlusion reasoning of surgical tools. It contains 3009 images and respective labels classifying the objects as Scalpel, Straight Dissection Clamp, Straight Mayo Scissor, or Curved Mayo Scissor, as well as classifying each tool as being on top (not occluded) or at the bottom (occluded).</p><h3>The Power of AI in Everyday Life</h3><p>This article highlights just one example of how AI can make a significant impact in healthcare by addressing the critical issue of misplaced medical tools. AI technology, such as object detection and intelligent chatbots, can streamline processes, improve accuracy, and ultimately save lives.</p><p>The potential of AI extends far beyond healthcare. From enhancing customer service with chatbots to improving safety with automated systems, AI is revolutionizing industries and making everyday tasks more efficient and effective.</p><p>Embracing AI technology can lead to innovative solutions and improvements in various fields. By leveraging AI, we can solve complex problems, improve decision-making, and enhance the quality of life across the globe.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b5db9cdd2c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>