<?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 Rithikha S on Medium]]></title>
        <description><![CDATA[Stories by Rithikha S on Medium]]></description>
        <link>https://medium.com/@roboticengguseratvit?source=rss-f2b01193b7db------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TQx5aFU85Avva25p</url>
            <title>Stories by Rithikha S on Medium</title>
            <link>https://medium.com/@roboticengguseratvit?source=rss-f2b01193b7db------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 17:57:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@roboticengguseratvit/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[From Pixels to Words: How Vision Language Models Actually Work]]></title>
            <link>https://pub.towardsai.net/from-pixels-to-words-how-vision-language-models-actually-work-60b7d3a8e34e?source=rss-f2b01193b7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/60b7d3a8e34e</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Rithikha S]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 18:01:01 GMT</pubDate>
            <atom:updated>2026-09-23T18:01:01.932Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>How vision encoders, projection layers, and language models work together to understand images</strong></h4><p>You upload a photo and ask: “What is happening in this image?”</p><p>A normal AI chatbot would ignore the image and ask you to describe it in words. But a Vision LLM actually processes the photograph. It converts the visual information into something its internal language model can reason about, combines that with your text prompt, and generates a response.</p><p>The question seems simple: How does an AI model turn pixels into words?</p><p>The answer is more interesting than you might think.</p><h3><strong>What Is a Vision LLM?</strong></h3><p>A Vision LLM is a large language model that can accept <strong>both an image and text as input</strong> and respond in text. Think of it as a chatbot that can also see.</p><p>You’ve probably used this already if you’ve asked ChatGPT, Gemini, or Claude questions about uploaded photos, charts, or screenshots. The technology powers features like photo Q&amp;A, document extraction, and chart analysis.</p><p>But Vision LLMs aren’t simply regular language models that somehow learned to “see.” They’re a carefully constructed system that connects visual information with language in a specific way.</p><h3><strong>Why Do We Need Vision LLMs?</strong></h3><p>The world contains far more visual information than what is written as text.</p><p>Think about everything around you: photographs, charts, receipts, screenshots, scanned forms, diagrams, handwritten notes, and physical surroundings. A text-only language model can’t directly interact with any of this.</p><p>A text-only LLM can’t:</p><p>- Interpret a chart in a report</p><p>- Spot a defect in a photograph</p><p>- Read a scanned form or receipt</p><p>- Describe a scene for someone who is visually impaired</p><p>A Vision LLM can potentially do all of these things — not perfectly, but meaningfully.</p><p>The limitation of text-only models created an obvious problem. If most of human information is visual, then an AI model that ignores images is working with one hand tied behind its back.</p><h3><strong>How Is a Vision LLM Built?</strong></h3><p>A Vision LLM has three main components that work together. Think of them as an eye, a translator, and a brain.</p><h4><strong>The Vision Encoder (The Eye)</strong></h4><p>The vision encoder processes the raw image and converts visual information into numerical representations. A common choice is the Vision Transformer (ViT), which treats images as a sequence of small patches, similar to how language models treat text as a sequence of words.</p><h4><strong>The Projector (The Translator)</strong></h4><p>Here’s the key insight: the vision encoder produces numerical representations in its own “space.” The language model expects representations in a different format. The projector bridges this gap.</p><p>Imagine a foreign film where one person watches the screen and another person reads a subtitle track. The vision encoder “watches.” The projector translates. The language model “reads the subtitles” and understands the plot.</p><p>The Language Model (The Brain)</p><p>The language model receives visual information together with the user’s text prompt and generates the response. The language model itself never processes raw pixels directly. It works with the translated visual representations that the projector provides.</p><p>The flow is simple but crucial:</p><p><strong>Image → Vision Encoder → Projector → Language Model → Answer</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n8IHpW6-2Dhj8Jo6fBXjdg.png" /></figure><p><em>*A simplified architecture of a Vision LLM. The vision encoder processes the image, the projector translates it, and the language model generates the answer. Source: Image by the author.*</em></p><h3><strong>From Pixels to Words: Step by Step</strong></h3><p>Let me walk through the four-step process that transforms an image into a response.</p><h4><strong>Step 1: Cut the image into patches</strong></h4><p>Imagine taking a photograph and overlaying a grid on top of it. Then cut the image along the grid lines. You’ve divided it into small square patches, like a puzzle.</p><h4><strong>Step 2: Convert patches into numbers</strong></h4><p>Each patch becomes a vector — a list of numbers that captures the visual content of that region. Where there’s red, the numbers reflect that. Where there’s texture, the numbers capture it. Each patch is now a numerical representation.</p><h4><strong>Step 3: Translate for the language model</strong></h4><p>The projector takes these numerical representations and reshapes them. It’s not changing what the information means. It’s changing the format so the language model can work with it, similar to translating spoken words into written text.</p><h4><strong>Step 4: The language model reasons and replies</strong></h4><p>Now the language model has two inputs: the visual tokens from the projector and your text prompt. It combines these and generates an answer.</p><p>The analogy is useful: you’re giving the language model a translated transcript of everything important in the image, and asking it to discuss it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HnuUN5v3sVqxIsxEv8aWgw.png" /></figure><p><em>*The four-step process: Images are divided into patches, converted to numerical embeddings, translated by the projector, and combined with text for the language model to process. Source: Image by the author.*</em></p><h3><strong>Three Terms You Need to Know</strong></h3><h4><strong>Vision Transformer (ViT)</strong></h4><p>The most common vision encoder architecture. It processes images by dividing them into patches and treating those patches the way a text model treats words.</p><h4><strong>Embedding or Token</strong></h4><p>A numerical representation of a piece of information. In text, an embedding might represent a word. In Vision LLMs, tokens can represent image patches or visual features. These are the “numbers” flowing through the system.</p><h4><strong>Projection Layer</strong></h4><p>A relatively small neural network that maps visual embeddings into the same representation space as text embeddings. It’s the translator.</p><h3><strong>How Are Vision LLMs Trained?</strong></h3><p>Training happens in two distinct stages.</p><h4><strong>Stage 1: Learning to Align</strong></h4><p>The model learns to connect images with their descriptions. It’s shown millions of image-caption pairs:</p><p>- Image of a dog + “A dog running on grass”</p><p>- Image of a car + “A red sports car”</p><p>- Image of a market + “People at a market”</p><p>Here’s what’s important: the vision encoder and language model are usually already pretrained. Only the projector is trained during this stage. The model learns to adjust the projector until the visual and language representations align — until the “translation” is accurate.</p><h4><strong>Stage 2: Instruction Tuning</strong></h4><p>Now the model learns to actually follow instructions and have conversations about images. It’s trained on examples like:</p><p>- “What color is the car?” → “Red.”</p><p>- “Summarize this chart for me.”</p><p>- Follow-up questions about the same image.</p><p>This stage teaches the model how to be useful in actual conversations, not just how to associate images with captions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j5OzzoT4g3aza_GltpWNEQ.png" /></figure><p><em>*Vision LLM training happens in two distinct stages. Stage 1 learns to align images with language. Stage 2 learns to follow instructions and hold useful conversations. Source: Image by the author.*</em></p><h3><strong>Training Data: Where It Comes From</strong></h3><p>Vision LLMs learn from four categories of data:</p><p>1. <strong>Web images and captions</strong> — Photos paired with alt-text or descriptions scraped from the internet.</p><p>2. <strong>Research datasets</strong> — Large public collections already labeled and organized for AI research.</p><p>3. <strong>Human-written Q&amp;A</strong> — People writing sample questions and answers about specific images.</p><p>4. <strong>Documents and charts </strong>— Screenshots, tables, and graphs so the model can learn to read them.</p><p>The quality and diversity of training data matters enormously. Poor or biased data leads to biased results. This is a known limitation worth keeping in mind.</p><h3><strong>Real-World Applications Today</strong></h3><p>Vision LLMs are already deployed in practical contexts:</p><p>- <strong>Photo Q&amp;A</strong>: Upload an image and ask questions about it</p><p>- <strong>Accessibility</strong>: Describe visual surroundings aloud for visually impaired users</p><p>- <strong>Document reading</strong>: Extract information from receipts, forms, and IDs</p><p>- C<strong>hart analysis</strong>: Summarize graphs or spreadsheet screenshots instantly</p><p>- <strong>Self-driving systems</strong>: Understand road scenes, signs, and pedestrians</p><p>- <strong>Content moderation</strong>: Flag unsafe or policy-breaking images automatically</p><p>In each case, the ability to process visual information directly, without a human converting it to text first, creates genuine value.</p><h3><strong>What Vision LLMs Still Get Wrong</strong></h3><p>Vision LLMs are powerful but imperfect.</p><p><strong>Hallucination</strong>: The model sometimes describes objects or details that aren’t actually present in the image. It confidently describes something it’s never seen.</p><p><strong>Weak spatial reasoning</strong>: It can struggle with precise tasks like counting objects, judging exact distances, or determining relationships between items.</p><p><strong>High compute cost</strong>: Processing images requires significantly more computational resources than processing text alone. This has real cost and latency implications.</p><p><strong>Bias</strong>: Training data reflects stereotypes and gaps present in the internet. These biases can influence how the model interprets images.</p><p>A Vision LLM being able to “see” doesn’t mean it sees perfectly. The limitations are real and worth understanding before relying on these systems for critical decisions.</p><h3><strong>The Bridge Between Vision and Language</strong></h3><p>A Vision LLM doesn’t magically teach a language model how to see. Instead, it builds a bridge between visual information and language.</p><p>The architecture is elegant: an encoder that specializes in vision, a projector that translates, and a language model that reasons. Each component does one job well.</p><p><strong>Pixels → Vision Encoder → Embeddings → Projector → Language Model → Words</strong></p><p>The interesting part isn’t that AI can now look at an image. The interesting part is that pixels can now become part of the conversation — that visual information can flow into the same reasoning engine that processes text, with all the continuity and context that implies.</p><p>That shift from “AI that only reads text” to “AI that understands multiple types of information” is what makes Vision LLMs worth paying attention to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60b7d3a8e34e" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/from-pixels-to-words-how-vision-language-models-actually-work-60b7d3a8e34e">From Pixels to Words: How Vision Language Models Actually Work</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GenAI vs AI Agents vs Agentic AI — What’s Actually the Difference?]]></title>
            <link>https://pub.towardsai.net/genai-vs-ai-agents-vs-agentic-ai-whats-actually-the-difference-b31facbf8dfa?source=rss-f2b01193b7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/b31facbf8dfa</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[genai]]></category>
            <dc:creator><![CDATA[Rithikha S]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 21:01:01 GMT</pubDate>
            <atom:updated>2026-09-13T21:01:01.508Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Three terms that sound interchangeable but describe very different levels of AI capability</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r3sk5-vn5VjZK_Fdfq9lqg.png" /></figure><p>You ask a generative AI model to write an email summarizing a report. It generates the email. You copy it, open your email client, and send it yourself.</p><p>Now imagine asking an AI agent the same task. You say: “Read this report, summarize it, draft the email, and send it.” The system reads the document, generates the summary, composes the message, and — without you touching anything — sends it.</p><p>Now imagine an agentic system given a broader goal: “Handle this entire reporting workflow.” It doesn’t just complete one task. It determines what reports exist, prioritizes what matters, retrieves relevant context, drafts multiple summaries, verifies the quality, checks if recipients have already been notified, and decides whether to send or hold. It adapts when conditions change.</p><p>At what point does an AI model stop simply generating and start actually acting?</p><p>That question sits at the heart of the confusion around GenAI, AI agents, and agentic AI. These terms are thrown around interchangeably. They shouldn’t be.</p><h3>What Is Generative AI?</h3><p>Generative AI is the foundation.</p><p>It’s a system trained to produce new content in response to a prompt. You provide input. The model generates output. That’s the core transaction.</p><p>GenAI excels at:</p><ul><li>Writing content (emails, articles, stories)</li><li>Generating code</li><li>Creating images</li><li>Summarizing documents</li><li>Answering questions</li><li>Transforming text (translation, tone adjustment, reformatting)</li></ul><p>The defining characteristic is that it’s <strong>response-oriented</strong>. The model exists in a loop: you ask, it answers. You ask again, it answers again. There’s no memory between turns unless you explicitly maintain it. There’s no decision-making beyond “how should I complete this request?”</p><p>Large language models (LLMs) are the primary example, but so are diffusion models for image generation or specialized models for code synthesis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IOCgiDnCzFF-UVMjMD33qw.png" /></figure><p>A GenAI system can be remarkably capable. It can write persuasive essays, debug complex code, and explain difficult concepts. But capability alone doesn’t change its fundamental nature: it generates in response to prompts.</p><h3>What Is an AI Agent?</h3><p>An AI agent is fundamentally different.</p><p>An agent doesn’t just generate responses. It reasons about what it needs to do, decides what actions are appropriate, uses tools to take those actions, observes the results, and determines what to do next.</p><p>Think about the difference:</p><p><strong>GenAI</strong>: “Give me the weather forecast for tomorrow.”<br> <em>System generates a text response.</em></p><p><strong>AI Agent</strong>: “Check tomorrow’s weather, compare it with my planned hiking trip, and recommend whether I should reschedule.”<br> <em>System retrieves weather data, looks up your calendar, compares conditions against safety requirements, and returns an informed recommendation.</em></p><p>Agents typically incorporate:</p><ul><li>An LLM as a reasoning engine</li><li>Tool definitions (APIs, functions, databases)</li><li>An action loop that observes results</li><li>Memory or state management</li><li>Decision-making logic</li></ul><p>The crucial distinction: <strong>Generative AI produces. An agent produces, decides, and acts.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sr2LOWgmtutEekXA3RIa_Q.png" /></figure><p>You’re not replacing the LLM. You’re building a system around it that lets the model decide when and how to use tools, interpret results, and determine next steps.</p><p>This is why a coding agent can actually run tests, see failures, and revise code. Why a research agent can search multiple sources, evaluate relevance, and compile a report without human intervention between steps.</p><h3>What Is Agentic AI?</h3><p>This is where terminology gets slippery.</p><p>“Agentic AI” is not standardized terminology. Different organizations define it differently. But the general concept points to something broader than a single agent with tool access.</p><p>Agentic AI typically describes systems with:</p><ul><li><strong>Planning</strong>: Breaking down complex goals into smaller steps before execution</li><li><strong>Adaptation</strong>: Adjusting strategy based on intermediate results or changing conditions</li><li><strong>Multi-step reasoning</strong>: Not just deciding the next action, but anticipating downstream consequences</li><li><strong>Memory and state</strong>: Maintaining context across long workflows</li><li><strong>Task decomposition</strong>: Breaking goals into subtasks, sometimes executing them in parallel</li><li><strong>Verification and feedback loops</strong>: Checking intermediate results and correcting course</li><li><strong>Multiple agents</strong>: Using specialized agents that coordinate to solve larger problems</li></ul><p>Agentic systems pursue goals with greater autonomy than a single agent might. They’re designed to handle longer, more complex workflows where conditions change and adaptation matters.</p><p>But here’s the important caveat: <strong>there is no sharp technical boundary between “AI agent” and “agentic AI.”</strong> The distinction is about degree and architectural pattern, not a hard line. Some vendors use these terms interchangeably. Others reserve “agentic” for systems with specific characteristics like multi-agent coordination or long-horizon planning.</p><p>The honest answer is that autonomy exists on a spectrum. A tool-using agent is somewhere on that spectrum. A highly orchestrated multi-agent workflow is further along it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qTJzyt5pgA1q9t1_aYEW1g.png" /></figure><h3>Comparing the Three</h3><p><strong>Generative AIAI AgentAgentic AIPrimary role</strong>Generate contentAct toward a taskPursue goals with autonomy<strong>Interaction</strong>Prompt → responseGoal → actionsGoal → planning → actions → adaptation<strong>Tool use</strong>OptionalCore capabilityOften extensive<strong>Planning</strong>LimitedSomeMore central<strong>Memory/state</strong>Usually limitedOften presentOften important<strong>Autonomy</strong>LowModerateHigher<strong>Example</strong>Write a reportResearch and compile a reportMonitor conditions, gather data, verify findings, and update a report continuously</p><p>The key insight from this table: each level adds something the previous level couldn’t easily do.</p><h3>How They Actually Relate</h3><p>These aren’t competing technologies that you choose between once and move on. They often exist together.</p><p>Think of it as a progression:</p><p><strong>LLM → GenAI application → Tool-using agent → Agentic system</strong></p><p>A modern agentic application typically still contains:</p><ul><li>An LLM (or multiple LLMs)</li><li>Retrieval systems</li><li>Tool/API integrations</li><li>Memory management</li><li>Planning components</li><li>Orchestration logic</li><li>Verification and feedback mechanisms</li></ul><p>You’re not replacing GenAI when you build agents. You’re layering capabilities on top of it.</p><p>Here’s a useful analogy: GenAI is like having a very capable person who can produce information on demand. An AI agent is like giving that person tools and the autonomy to take actions. An agentic system is like giving that person a goal and the ability to plan and execute the steps needed to reach it — with appropriate boundaries.</p><h3>Real Examples</h3><p><strong>Generative AI in practice:</strong></p><ul><li>Summarizing a document</li><li>Generating boilerplate code</li><li>Writing marketing copy</li><li>Creating illustrations</li></ul><p><strong>AI agents in practice:</strong></p><ul><li>A research agent that searches multiple sources, evaluates quality, and compiles findings</li><li>A customer-support agent that retrieves relevant documentation, generates responses, and escalates when needed</li><li>A coding agent that writes, tests, and revises code based on test failures</li><li>A scheduling assistant that checks calendars, identifies conflicts, and proposes times</li></ul><p><strong>Agentic AI in practice:</strong></p><ul><li>Multi-step business workflows that adapt to changing data</li><li>Software development systems that plan features, write code, run tests, and iterate</li><li>Monitoring systems that continuously gather information, detect anomalies, and take preventive actions</li><li>Multi-agent systems where specialized agents coordinate to complete complex projects</li></ul><p>Be clear: some of these are mature. Others are still experimental.</p><h3>The Misconception Everyone Has</h3><p>Here’s where engineering judgment matters: <strong>More autonomy does not automatically mean better results.</strong></p><p>Increased autonomy introduces real costs:</p><ul><li>Unexpected or wasteful actions</li><li>Error propagation across steps</li><li>Higher latency and computational cost</li><li>Security and safety risks</li><li>Difficult debugging when things fail</li><li>Unclear responsibility when outcomes are wrong</li></ul><p>A simple GenAI call that requires one forward pass is faster, cheaper, and more predictable than an agent that makes ten tool calls and fails on the seventh step.</p><p>The engineering principle is clear: <strong>The goal isn’t maximum autonomy. The goal is the right amount of autonomy for the problem you’re solving.</strong></p><h3>When to Use What</h3><p><strong>Use GenAI when:</strong></p><ul><li>You need content generation</li><li>The task is fundamentally conversational</li><li>A human will make the final decision</li></ul><p><strong>Use an AI agent when:</strong></p><ul><li>The system needs to interact with tools or APIs</li><li>The task involves multiple steps with decision points</li><li>The system needs to retrieve information and act on it</li></ul><p><strong>Consider agentic AI when:</strong></p><ul><li>The workflow is complex and long-running</li><li>Conditions change and adaptation matters</li><li>Planning across multiple steps is required</li><li>Multiple tools or specialized agents are needed</li></ul><p>The practical truth: if a simple LLM call solves your problem, use that. Don’t build an agent just because you can.</p><h3>Where the Industry Is Heading</h3><p>The shift is clear but not toward any single solution.</p><p>We’re seeing more investment in:</p><ul><li>Models trained for tool use and reasoning</li><li>Standardized interfaces for tool connectivity (MCP and similar)</li><li>Agent orchestration and coordination frameworks</li><li>Long-context models that maintain state</li><li>Multi-agent systems</li><li>Better evaluation methods for agent reliability</li></ul><p>The broader pattern: <strong>AI is moving from systems that primarily generate responses toward systems that can participate in workflows and take meaningful actions.</strong></p><p>This isn’t replacing GenAI. It’s building on it.</p><h3>Key Takeaways</h3><ul><li>Generative AI is about producing content in response to prompts.</li><li>AI agents add tools, decision-making, and the ability to act.</li><li>Agentic systems add planning, adaptation, and greater autonomy — though the boundary is fuzzy.</li><li>More autonomy creates trade-offs. Reliability, cost, and debuggability matter.</li><li>The best approach is determined by your problem, not the trend.</li></ul><h3>The Real Question</h3><p>GenAI gives AI the ability to create. Agents give it the ability to act. Agentic systems give it a way to pursue a goal.</p><p>But the interesting question isn’t whether AI should become more autonomous. The question is much simpler: <strong>How much autonomy does your actual problem require?</strong></p><p>The answer will tell you what to build.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b31facbf8dfa" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/genai-vs-ai-agents-vs-agentic-ai-whats-actually-the-difference-b31facbf8dfa">GenAI vs AI Agents vs Agentic AI — What’s Actually the Difference?</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My RAG System Answered Every Question. I Still Couldn’t Trust It.]]></title>
            <link>https://medium.com/@roboticengguseratvit/my-rag-system-answered-every-question-i-still-couldnt-trust-it-49e591749842?source=rss-f2b01193b7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/49e591749842</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <dc:creator><![CDATA[Rithikha S]]></dc:creator>
            <pubDate>Tue, 23 Jun 2026 06:41:13 GMT</pubDate>
            <atom:updated>2026-06-23T06:41:13.945Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why building a retrieval pipeline is the easy part — and building a trustworthy AI assistant is something else entirely.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-j7p-PO-r9hYpygjpM-yQ.png" /></figure><p>The chatbot answered every question.</p><p>It just couldn’t be trusted.</p><p>I built a RAG system to handle queries over a set of legal documents — contracts, policies, compliance notes. The pipeline came together faster than I expected. Documents ingested, embeddings generated, vector database indexed, LLM wired up. Responses looked polished and confident.</p><p>Then I started pushing it with harder questions.</p><p>Some answers were incomplete. Some cited the wrong clause. Some were technically fluent but subtly wrong in ways that would have caused real problems in a legal context. The system <em>sounded</em> authoritative. It just wasn’t always right.</p><p>That’s when the real work started.</p><h3>The Illusion of a Working RAG Pipeline</h3><p>There’s a specific moment in RAG development where everything feels done.</p><p>Embeddings are generated. The vector database returns results. The LLM wraps those results into a coherent, grammatically clean response. You ask a few test questions, the answers look good, and there’s a genuine sense of completion.</p><p>What you’ve actually built at that point is a <em>demo</em>.</p><p>A fluent answer is not the same as a correct one. A confident tone is not the same as reliable grounding. And this is where most RAG projects quietly go wrong — not because something crashes, but because nothing obviously fails. The system just returns plausible-sounding responses that may or may not reflect the actual source material.</p><p>In low-stakes contexts, that’s inconvenient. In legal, medical, or enterprise settings, it’s a serious problem.</p><h3>What Actually Broke</h3><p>The issues I encountered weren’t model failures. They were system failures — each one traceable to a specific stage in the pipeline.</p><p><strong>Retrieval returned the wrong chunks.</strong> My documents were chunked at fixed token boundaries, which sometimes split a clause mid-sentence. The retrieved chunk made partial sense, the LLM completed the logic plausibly, and the answer was wrong in a way that was hard to catch without reading the source.</p><p><strong>Similar passages confused the retrieval layer.</strong> Legal documents repeat similar language across sections — boilerplate, definitions, standard clauses. When multiple chunks looked semantically similar, the wrong one often ranked highest. The answer referenced a real section of the document. Just not the right one.</p><p><strong>Ambiguous questions retrieved irrelevant context.</strong> When a user asked something vague, the vector search did its best and returned something adjacent. The LLM filled the gap. The result was a hallucinated <em>connection</em> — not a fabricated fact exactly, but a constructed bridge between two things that weren’t actually related in the source.</p><p><strong>Source attribution was unreliable.</strong> The system cited documents confidently. But without explicit traceability baked into the pipeline, “cited” just meant “retrieved from the same index.”</p><p>None of these were fixed by swapping the language model.</p><h3>The Real Insight: RAG Is an Information System, Not a Chatbot</h3><p>Most people think of a RAG application as: <em>user asks question → LLM answers with document context.</em></p><p>That framing skips too many steps.</p><p>A RAG pipeline is actually a full information retrieval system with a language model at the end. Documents must be ingested, cleaned, and split thoughtfully. Embeddings must capture semantic meaning accurately. Vector search must rank results by relevance, not just similarity. Retrieved chunks must be assembled into a prompt that gives the model exactly what it needs. And then — finally — the model generates a response.</p><p>Every stage affects the output. A powerful LLM cannot recover information that was never retrieved. It cannot cite a clause that was split across two chunks with a boundary in the wrong place. It cannot distinguish between two near-identical passages if the retrieval layer didn’t.</p><p>The model writes the answer. The pipeline determines what the answer is allowed to say.</p><h3>What Actually Matters</h3><p>After several iterations on the same pipeline, here is what moved the needle:</p><p><strong>Chunking strategy matters more than embedding model.</strong> Semantic chunking — splitting on paragraph or clause boundaries rather than fixed token counts — dramatically improved retrieval relevance. The embedding model was fine. The chunks it was encoding were the problem.</p><p><strong>Evaluate retrieval before evaluating the model.</strong> Log what gets retrieved for each query. If the right chunk isn’t in the top results, no model will save you. Fix retrieval first.</p><p><strong>Every answer should be traceable.</strong> Build source metadata into every chunk from the start. Not as a feature — as a requirement. If you can’t point to the exact passage that generated an answer, you cannot verify it and you cannot trust it.</p><p><strong>Test with realistic queries, not clean benchmarks.</strong> Real users ask ambiguous questions, use informal language, and rarely phrase things the way your documents are structured. If your test set looks like a structured QA exam, you’re optimizing for the wrong thing.</p><p><strong>Trust is the product.</strong> A beautiful interface cannot fix poor retrieval. Users will trust an AI assistant that is right most of the time and honest about uncertainty. They will stop using one that confidently misleads them, even once.</p><h3>Why This Matters Beyond Your Project</h3><p>The reason RAG has become central to enterprise AI isn’t because it’s technically elegant. It’s because hallucination is expensive.</p><p>Legal teams, healthcare providers, financial institutions, and enterprise operations cannot use AI systems that generate plausible but unverifiable answers. The demand for <em>grounded AI</em> — systems where every response traces back to a real source — is driving investment in exactly the problems described here: better chunking, better retrieval ranking, citation-based generation, and evaluation frameworks that measure accuracy rather than fluency.</p><p>The companies building reliable knowledge assistants are not winning on model quality alone. They are winning on pipeline quality. Retrieval engineering, document preprocessing, and systematic evaluation of answer accuracy.</p><h3>Lessons Learned</h3><p><strong>Retrieval quality defines answer quality.</strong> This is the most important thing to internalize early.</p><p><strong>Hallucinations often begin before generation.</strong> If the wrong context is retrieved, the model isn’t hallucinating — it’s answering faithfully from bad input. The failure happened upstream.</p><p><strong>Building an AI assistant is more about information architecture than language models.</strong> How you structure, chunk, index, and retrieve your documents matters more than which LLM sits at the end.</p><p><strong>A RAG system you can’t audit is a liability.</strong> If you can’t trace an answer to its source, you can’t stand behind it.</p><p>The language model may write the answer.</p><p>But the retrieval pipeline determines whether that answer deserves to be trusted.</p><p>Build the pipeline like it matters. Because in any context where the answers actually matter, it does.</p><p><em>Building a RAG system and hitting walls you didn’t expect? Drop the specific failure in the comments — the details are always more interesting than the general advice.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49e591749842" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenCV Isn’t Magic — It’s Just Teaching Computers to See]]></title>
            <link>https://pub.towardsai.net/opencv-isnt-magic-it-s-just-teaching-computers-to-see-95b7b79346e1?source=rss-f2b01193b7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/95b7b79346e1</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[opencv]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rithikha S]]></dc:creator>
            <pubDate>Fri, 22 May 2026 13:01:02 GMT</pubDate>
            <atom:updated>2026-05-22T13:01:02.352Z</atom:updated>
            <content:encoded><![CDATA[<h4>Why most real-world computer vision systems rely on more than just AI models</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ztIZsjgOODP9dyGdOTlaeg.png" /><figcaption><em>Source: Image by the author.</em></figcaption></figure><p>Most people assume computer vision is something reserved for research labs and Big Tech. It isn’t.</p><p>The camera on your phone that detects your face before you unlock it, the warehouse robot that reads barcodes at 60 frames per second, the traffic system that counts vehicles and flags violations — nearly all of them share a common layer underneath.</p><p>Not a flashy AI model. Not a billion-parameter neural network. A well-built, open-source library that has been quietly powering visual systems since 1999.</p><p>That library is OpenCV. And understanding it changes how you think about computer vision entirely.</p><h3>What OpenCV Actually Is</h3><p>OpenCV — Open Source Computer Vision Library — is a toolkit for working with visual data. It lets you open images, capture video streams, manipulate pixels, detect edges, filter noise, and track motion, without building any of that machinery from scratch.</p><p>The real-world applications span nearly every industry. Robotics use it for spatial awareness and obstacle detection. Hospitals use it in medical imaging pipelines to isolate anomalies in scans. Retail systems use it for shelf-monitoring and footfall analysis. Security infrastructure uses it for motion detection and facial recognition. Gesture control systems use it to translate hand movements into commands.</p><p>If a system needs to <em>see</em> something and make a decision based on it, OpenCV is usually somewhere in the pipeline.</p><p>It isn’t magic. It’s infrastructure. And like most good infrastructure, you only notice it when something breaks.</p><h3>Why OpenCV Matters More Than It Gets Credit For</h3><p>Here is something that gets skipped over in most beginner tutorials: before any AI model can make a useful prediction, it needs clean, correctly formatted visual input. Getting there is harder than it sounds.</p><p>Raw camera frames are messy. Lighting shifts between frames. Objects move and blur. Cameras introduce noise. Resolutions don’t match what the model was trained on. Color channels might be in the wrong order. The frame might be arriving faster than the downstream process can handle.</p><p>OpenCV is the layer that handles all of this. Resizing an image to the dimensions your model expects. Converting BGR to RGB because your model was trained on one and your camera outputs the other. Applying Gaussian blur to reduce noise before edge detection. Running Canny to extract meaningful contours. Normalizing pixel values. All of it happens before the model even sees the frame.</p><p>Clean visual input is not automatic. It is engineered. And OpenCV is usually the tool you use to engineer it.</p><h3>The Beginner Experience</h3><p>The first OpenCV project almost everyone writes looks something like this:</p><pre>import cv2</pre><pre>cap = cv2.VideoCapture(0)</pre><pre>while True:<br>    ret, frame = cap.read()<br>    cv2.imshow(&quot;Webcam Feed&quot;, frame)<br>    if cv2.waitKey(1) &amp; 0xFF == ord(&#39;q&#39;):<br>        break</pre><pre>cap.release()<br>cv2.destroyAllWindows()</pre><p>Ten lines. A live webcam feed appears on your screen.</p><p>It sounds like a small thing. But something about seeing raw video flowing through code you wrote makes computer vision feel real in a way that reading documentation never does. You are not working with a static image anymore. You are working with the world in motion.</p><p>From there, the path builds naturally. You apply a filter to the feed. You detect edges in real time. You draw a bounding box around a detected face. Each step feels incremental, but collectively they start to resemble something that works — a system, not just a script.</p><p>That progression is exactly how real projects begin.</p><h3>The Reality of Real-World Vision Systems</h3><p>Once you move beyond your desk setup, the problems multiply in ways no tutorial prepares you for.</p><p>Lighting changes between morning and afternoon and throws off your color thresholds. Motion blur from a fast-moving object degrades edge detection. A cheap camera sensor introduces noise that makes your contours unstable. Latency accumulates across the pipeline — frame capture, preprocessing, inference, postprocessing — and suddenly your “real-time” system is running at 8 FPS.</p><p>None of these are model problems. They are environment problems. And they are almost entirely what separates a proof of concept from a system that actually ships.</p><p>The hardest part of computer vision is not teaching the model to recognize something. It is making the pipeline consistent across the uncontrolled, unpredictable conditions of the real world. Lighting you did not design. Hardware you did not choose. Frame rates that vary. Subjects that do not cooperate.</p><p>OpenCV gives you the tools to address all of that. But it does not address it automatically. That still takes judgment, iteration, and testing in the actual deployment environment.</p><h3>OpenCV and AI Are Collaborators, Not Competitors</h3><p>A common misconception among developers moving from traditional CV into deep learning: once you are using neural networks, you do not need OpenCV anymore.</p><p>That is not how production systems work.</p><p>YOLO, TensorFlow, PyTorch — these frameworks are exceptional at making predictions from visual data. But they do not capture video. They do not resize frames on the fly. They do not draw bounding boxes over a live feed, apply tracking logic across frames, or manage the I/O of a real-time pipeline.</p><p>OpenCV does.</p><p>The relationship is straightforward: OpenCV captures the frame, preprocesses it into the format the model expects, passes it through, receives the output, and handles what happens next — rendering, tracking, logging, or feeding back into the loop.</p><p>The AI decides what it sees. OpenCV handles the seeing.</p><p>They are not in competition. They are different layers of the same system, and most serious computer vision applications use both.</p><h3>What Beginners Should Build First</h3><p>The best way to build intuition for computer vision is to build small things that work in the real world, not just on sample datasets.</p><p><strong>A live webcam feed</strong> is the right starting point. Get comfortable reading frames, displaying them, and controlling the loop. Everything else builds on this.</p><p><strong>Edge detection on a live feed</strong> using Canny teaches you how preprocessing decisions — blur radius, threshold values — directly affect output quality. It also teaches you how fragile untuned pipelines are.</p><p><strong>Face detection</strong> using OpenCV’s built-in Haar cascades gives you your first taste of a working detection system. It is not state-of-the-art, but it works, and understanding why it sometimes fails is genuinely educational.</p><p><strong>Color detection and object tracking</strong> by HSV range teaches you how much lighting affects what your system “sees” — and why fixed thresholds rarely survive real-world conditions unchanged.</p><p><strong>Combining OpenCV with a YOLO model</strong> is the natural next step. Capture a frame, run inference, draw the results. When you do this for the first time and see bounding boxes appear over a live feed, the connection between visual pipeline and AI model becomes concrete rather than abstract.</p><p>Each of these projects teaches you something that a dataset benchmark cannot: that computer vision is an end-to-end problem, and every stage of the pipeline matters.</p><h3>Conclusion</h3><p>A model might be the brain of a vision system. But OpenCV is often the part that helps it actually see.</p><p>The gap between a model that performs well on a test set and a system that works reliably in production is almost always a pipeline problem — preprocessing, data quality, latency, real-world conditions. OpenCV is the layer where most of that work happens.</p><p>Start with the fundamentals. Build small things. Deploy them somewhere real and watch what breaks. That is how intuition for computer vision actually develops.</p><p>The models will keep improving. The need for clean, well-managed visual input will not go away.</p><p><em>If you are just starting out with OpenCV, share your first project in the comments. The simpler, the better — that is where the real learning happens.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95b7b79346e1" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/opencv-isnt-magic-it-s-just-teaching-computers-to-see-95b7b79346e1">OpenCV Isn’t Magic — It’s Just Teaching Computers to See</a> was originally published in <a href="https://pub.towardsai.net/">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Day My Laptop Refused to Boot — And Why It Wasn’t a Disaster]]></title>
            <link>https://medium.com/@roboticengguseratvit/the-day-my-laptop-refused-to-boot-and-why-it-wasnt-a-disaster-0562cc42a4f3?source=rss-f2b01193b7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/0562cc42a4f3</guid>
            <category><![CDATA[troubleshooting]]></category>
            <category><![CDATA[windows]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[dual-boot]]></category>
            <category><![CDATA[linux]]></category>
            <dc:creator><![CDATA[Rithikha S]]></dc:creator>
            <pubDate>Sat, 02 May 2026 09:34:32 GMT</pubDate>
            <atom:updated>2026-05-02T09:34:32.312Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>My system didn’t crash — it just forgot how to start.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bjNy7sj5wxQG3vg6WkSKYw.png" /></figure><p>I opened my laptop, hit the power button, and instead of the Windows loading screen I got a blinking GRUB prompt staring back at me.</p><p>No error. No warning. Just a command line where my OS used to be.</p><p>I hadn’t deleted anything. Hadn’t touched the partition table. Hadn’t done anything dramatic — just installed a Linux distro the night before to dual-boot. And now Windows had apparently vanished.</p><p>It hadn’t. The boot process had just lost the plot.</p><h3>The Illusion of Data Loss</h3><p>The first instinct is panic. <em>My files are gone. Windows is corrupted. I need to reinstall everything.</em></p><p>None of that was true.</p><p>Your data lives on a partition. Your OS lives on a partition. But what actually starts your computer is something separate — a bootloader. A small piece of software that sits at the edge of your disk and tells your machine <em>what</em> to load and <em>from where</em>.</p><p>When that breaks, nothing loads. But the data underneath? Completely untouched.</p><p>I hadn’t lost Windows. I’d just lost the instructions for finding it.</p><h3>What Actually Broke</h3><p>Installing Linux overwrote my boot configuration with GRUB. GRUB didn’t know about Windows. Windows didn’t know about any of this. Stalemate.</p><p>A few other things that quietly make this worse:</p><p><strong>UEFI vs. Legacy BIOS.</strong> Modern systems use UEFI, which manages boot entries differently. If you mix installation modes — one OS in UEFI, another in Legacy — they can’t see each other at all.</p><p><strong>Boot order in BIOS.</strong> Sometimes the disk with your OS isn’t first in the boot priority list. The machine tries to boot from something else, fails, and stops.</p><p><strong>The EFI partition.</strong> On UEFI systems, boot entries live in a small dedicated partition. Overwrite it during an OS install — and your OS can appear to vanish.</p><p>None of these are data problems. All of them feel like catastrophes when you don’t know what’s happening.</p><h3>The Real Insight</h3><p>A computer failing to boot is almost never about your data.</p><p>It’s a communication breakdown between your firmware, your bootloader, and your OS. All three have to speak in sequence for anything to appear on screen. Break one link and the whole chain fails — but only the chain.</p><p>Think of it like a building with a broken intercom at the entrance. The offices inside are fine. Everyone’s at their desk. The building just can’t let you in.</p><h3>What Actually Matters</h3><ul><li><strong>Don’t reinstall immediately.</strong> That’s the nuclear option. Most boot failures are recoverable without touching your data.</li><li><strong>Boot from a USB first.</strong> A live Linux USB or Windows Recovery Drive gives you tools to inspect and repair the boot process without needing your system to actually work.</li><li><strong>On Windows:</strong> bootrec /fixmbr and bootrec /fixboot from the Recovery Console fix most MBR issues in minutes.</li><li><strong>On UEFI systems:</strong> Check your BIOS boot entries. A missing or misconfigured entry is often all that’s wrong. Tools like efibootmgr on Linux or the Windows Boot Manager in recovery mode can restore it.</li><li><strong>GRUB can point to Windows.</strong> If you’re dual-booting, update-grub or editing /etc/grub.d/40_custom to add a Windows entry often resolves the stalemate completely.</li></ul><p>A boot failure looks like a total loss. It almost never is.</p><p>Your files don’t disappear when your OS doesn’t load — your machine just forgot how to knock on the right door.</p><p>Learn the boot process once, and what feels like a disaster becomes an afternoon fix.</p><p><em>Dealt with a boot failure that took you down a rabbit hole? Drop it in the comments — the weird ones are the most educational.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0562cc42a4f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Training YOLO Was the Easy Part — Building the System Wasn’t]]></title>
            <link>https://medium.com/@roboticengguseratvit/training-yolo-was-the-easy-part-building-the-system-wasnt-b4a1e13ceebf?source=rss-f2b01193b7db------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4a1e13ceebf</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[yolov8]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Rithikha S]]></dc:creator>
            <pubDate>Wed, 29 Apr 2026 19:13:15 GMT</pubDate>
            <atom:updated>2026-04-29T19:13:15.880Z</atom:updated>
            <content:encoded><![CDATA[<p>The model trained perfectly. Real-world input broke everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kE8ktGMopughJU90qI8YQ.png" /></figure><p>I used Ultralytics YOLO to train a custom detection model. Training went smoothly — loss curves converged, mAP looked solid, test predictions were accurate. I thought the hard part was done.</p><p>It wasn’t even close.</p><h3>The Illusion of Good Metrics</h3><p>A strong mAP score means your model learned from your dataset. It says nothing about the world outside it.</p><p>Your test set is curated. Same distribution, same lighting, same preprocessing pipeline as training. Of course it performs well — it’s a closed exam.</p><p>The moment you hand it a live camera feed in real conditions, that 0.87 mAP starts lying to you.</p><h3>What Actually Broke</h3><p>Moving to real-world input exposed problems I hadn’t considered:</p><p><strong>Lighting and angles.</strong> My training data was mostly clean, frontal, well-lit. Real deployment wasn’t. Confidence scores dropped hard on shadows, glare, and oblique captures.</p><p><strong>Motion blur.</strong> Static images don’t move. Video frames do. Fast-moving objects become smeared edges, and the model — which learned on crisp images — doesn’t handle that gracefully.</p><p><strong>Pipeline mismatch.</strong> I switched preprocessing wrappers between training and deployment. The letterboxing and normalization weren’t applied identically. The model ran, outputs came out, but confidence was consistently off. Cost me three days to trace.</p><p><strong>Latency creep.</strong> Inference was fast. But frame capture, color conversion, resizing, postprocessing, and output delivery added up. On edge hardware, I dropped below the FPS I needed — not because of the model, but because of everything around it.</p><h3>The Real Insight</h3><p>This isn’t a model problem. It’s a system problem.</p><p>The model is one component in a pipeline that has to capture input, preprocess it correctly, run inference, postprocess results, and deliver them — consistently, fast enough, on actual deployment hardware.</p><p>Every step can fail. Every step contributes to real-world performance.</p><p>What I was experiencing has a name: <strong>domain gap</strong> — the mismatch between training distribution and deployment reality. Closing it isn’t about retraining. It’s about systems thinking.</p><h3>What Actually Matters</h3><ul><li><strong>Test on real data early.</strong> Don’t wait until training is done. Point a mid-training checkpoint at your actual deployment environment. You’ll catch mismatches before they’re expensive.</li><li><strong>Dataset quality over size.</strong> 200 images from your real environment — correct lighting, angles, occlusion patterns — will outperform 10,000 web-scraped images every time.</li><li><strong>Profile on your actual hardware.</strong> Not your laptop. Not a cloud VM. The device you’re shipping. Then tune model size, resolution, and quantization for that specific context.</li><li><strong>Expect the performance drop.</strong> Factor it in. If you need 80% accuracy in production, don’t stop at 80% on your test set.</li><li><strong>Debug the pipeline, not just the model.</strong> Retraining is often the wrong fix. Check preprocessing. Adjust thresholds. Add temporal smoothing. The model is rarely the only problem.</li></ul><p>Training a model is the most well-defined step in computer vision — clear feedback, great tooling, measurable progress.</p><p>Everything after is messier, harder, and more important.</p><p>You’re not building a model. You’re building a system that happens to include one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4a1e13ceebf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>