<?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 Nikhitha Eldhose on Medium]]></title>
        <description><![CDATA[Stories by Nikhitha Eldhose on Medium]]></description>
        <link>https://medium.com/@nikhithaeldhose02?source=rss-60e7ac63e3f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_pSXVIbRmq0r2wdo</url>
            <title>Stories by Nikhitha Eldhose on Medium</title>
            <link>https://medium.com/@nikhithaeldhose02?source=rss-60e7ac63e3f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:22:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikhithaeldhose02/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[Whispers in the Matrix: The New Era of AI-Enhanced Steganography]]></title>
            <link>https://medium.com/@nikhithaeldhose02/whispers-in-the-matrix-the-new-era-of-ai-enhanced-steganography-b9f02c2d1c4a?source=rss-60e7ac63e3f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9f02c2d1c4a</guid>
            <category><![CDATA[steganography]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Nikhitha Eldhose]]></dc:creator>
            <pubDate>Fri, 13 Nov 2026 08:47:08 GMT</pubDate>
            <atom:updated>2026-11-13T10:16:45.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xzaoXTtmNDjzyyoaYV9ztA.png" /><figcaption>Looks normal? There is a secret in it. Try decoding it! Note: Medium compresses images. Go <a href="https://raw.githubusercontent.com/nikhitha324/blog-assets/main/cover_hidden_v3.png">here</a> to get the raw, uncompressed file and grab the flag. Hint: use <a href="https://pypi.org/project/stegano/">stegano</a>.</figcaption></figure><p>Imagine sending a completely ordinary picture of a sunset to a friend. To anyone intercepting it — whether a snooping algorithm or a cyber adversary — it’s just a standard JPEG file. Yet, hidden safely inside the subtle variations of its color pixels lies an entire encrypted blueprint, a secret message, or a private authorization key.</p><h3>1. Steganography vs. Cryptography: What’s the Difference?</h3><p>To understand steganography, it helps to compare it with <strong>cryptography</strong>.</p><ul><li><strong>Cryptography</strong> scrambles a message so nobody can read it (turning normal text into scrambled code). However, anyone watching can instantly see that a secret message is being sent because scrambled code looks suspicious.</li><li><strong>Steganography</strong> hides the <em>fact</em> that a message even exists. It tucks your secret inside an everyday item — like a photo, a song, or a text document — so that snoops don’t even suspect a secret is passing by.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Bj153rWnvTTh4bQiLrzJw.png" /></figure><h3>2. How Does Digital Steganography Work?</h3><p>When you send a secret message digitally, the process follows a specific flow: a <strong>Secret Message</strong> and a <strong>Cover File</strong> (like a photo) are combined using an <strong>Encoder</strong> and a <strong>Key</strong> to create a <strong>Stego Object</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65mfN5Ru0qW6QXxxXG6Msg.png" /></figure><h4>The Magic of Pixels and LSB (Least Significant Bit)</h4><p>Every digital image is made of millions of pixels, and every pixel has colors made of binary numbers (Red, Green, Blue).</p><p>In a technique called <strong>Least Significant Bit (LSB)</strong> steganography, we replace the very last, tiny bit of a pixel’s color data with a piece of our secret message:</p><ul><li>Changing that final bit changes the overall color value by an invisible amount (0.000002% instead of massive shifts).</li><li>To human eyes, the picture looks 100% normal, but underneath, it holds data like text or binary codes (like spelling out letters such as b, a, t).</li></ul><h3>3. Creative Ways We Hide Data Today</h3><p>Depending on what file you use as your “carrier,” steganography takes different forms:</p><ol><li><strong>Image-in-Image:</strong> Hiding one entire picture (like a secret logo or car) inside another cover photo.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HXmUK67l_wCLMmq6ozAPbw.png" /></figure><p>2. <strong>Text-in-Text (Zero-Width Characters):</strong> Using invisible computer letters (like a Zero-Width Space) between normal words. The reader just sees normal text like “HELLO WORLD”, but the invisible characters carry a secret binary code!</p><p><strong>3. Audio Steganography:</strong> Tucking hidden data into the sound samples of a WAV or MP3 audio recording.</p><h3>4. Enter AI: The Smart Way to Hide Data</h3><p>Traditional methods like LSB follow strict, repeating rules. While simple, security scanners can sometimes spot them using statistical tests.</p><p><strong>AI-based steganography</strong> changes everything:</p><ul><li>Instead of rigid rules, trained AI models learn the natural patterns of a photo or audio file.</li><li>The AI figures out the best, most natural places to hide data so it doesn’t cause any visible distortions.</li><li>It can adapt to different types of content and even be trained to dodge detection software.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0qzvW3gkw2ytVCgqqvdjEA.png" /></figure><h3>5. Digital Watermarking and Google SynthID</h3><p>Not all data-hiding is meant for secret spy missions. Sometimes, we want to prove who owns a piece of art or content. This is called <strong>digital watermarking</strong>.</p><ul><li><strong>Google SynthID:</strong> This is a modern tool developed by Google that embeds invisible watermarks directly into AI-generated text, images, audio, and video.</li><li>Even if the image is resized, screenshotted, or compressed, the watermark often survives so people can check if an AI created it.</li></ul><p>Steganography is pushing the boundaries of what is possible in digital privacy. As technology grows, the race between hiding secrets and finding them will only get more exciting!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9f02c2d1c4a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart RAG: Why Not Every Query Needs Retrieval]]></title>
            <link>https://medium.com/@nikhithaeldhose02/smart-rag-why-not-every-query-needs-retrieval-35a86706ced2?source=rss-60e7ac63e3f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/35a86706ced2</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[design-systems]]></category>
            <dc:creator><![CDATA[Nikhitha Eldhose]]></dc:creator>
            <pubDate>Sun, 03 May 2026 15:39:13 GMT</pubDate>
            <atom:updated>2026-05-03T15:39:13.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WogvcePtUyvjKKH8TCEdOA.png" /></figure><p>When I first started exploring AI systems built around large language models, Retrieval-Augmented Generation (RAG) felt like the obvious solution to improve accuracy. The idea was straightforward, whenever a user asks something, retrieve relevant data first and then generate the answer using that context. It sounded efficient, reliable, and almost like a best practice.</p><p>But after thinking about it from a system design perspective, one simple question came to mind: do we really need retrieval for every query? That question led me to a small but practical idea that I like to call <strong>Smart RAG</strong>.</p><h3>Understanding RAG</h3><p>RAG works by combining retrieval and generation into a single pipeline. Instead of relying only on what the model already knows, the system first searches a vector database, fetches relevant pieces of information, and then passes everything to the model to generate a response.</p><p>This approach is extremely useful when dealing with domain-specific data. For example, if a user asks about internal documentation, business metrics, or API policies, retrieving actual data ensures that the response is accurate and grounded in reality.</p><h3>Where Things Start to Break</h3><p>However, most systems treat every query the same way. Whether the user asks something complex or something trivial, the pipeline does not change. Every query goes through retrieval before reaching the model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*avh2O4eDcXZBn3OBK2ZNEQ.png" /></figure><p>Now consider this. If someone simply says “Hi!”, the system still searches the vector database. If someone asks “2 + 2?”, it still performs retrieval. In both cases, the model already knows the answer, so the retrieval step adds no real value.</p><p>Even worse, it can sometimes introduce irrelevant context, which the model may use while generating a response. So while the system still works, it is not operating efficiently.</p><h3>The Core Insight</h3><p>This is where the key realization comes in. Not all queries need external information. Some are simple enough for the model to handle directly, while others genuinely benefit from additional context.</p><p>Treating every query the same way creates unnecessary overhead in terms of latency, cost, and processing.</p><h3>Introducing Smart RAG</h3><p>Instead of always applying retrieval, we can introduce a decision step before the pipeline begins. The system first evaluates the query and decides whether retrieval is actually required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMF-O3ijtdR8MG1ILQ1BVg.png" /></figure><p>If the query is simple, the system directly calls the model. If the query requires context, it follows the full RAG pipeline. This creates a flexible system where different queries are handled in different ways.</p><p>This idea is simple, but it changes how we think about RAG. Instead of being a default step, retrieval becomes a conditional step.</p><h3>How It Feels in Practice</h3><p>With this approach, the system naturally splits into two paths. One path handles simple queries quickly without any additional processing. The other path handles complex queries by retrieving relevant data and generating a more informed response.</p><p>Both paths eventually lead to the same goal thus providing a good answer but they take different routes based on the need of the query.</p><p>This makes the system feel more intelligent and closer to how real-world systems are designed.</p><h3>A More Realistic Implementation</h3><p>In real systems, instead of using simple rules, we can use a lightweight model to decide how each query should be handled. This keeps the routing flexible while still being efficient in terms of cost and performance.</p><pre>from openai import OpenAI<br><br>routing_client = OpenAI()<br>llm_client = OpenAI()<br><br>def smart_rag_router(user_query: str):<br>    &quot;&quot;&quot;<br>    Decide whether to use direct LLM or RAG pipeline.<br>    &quot;&quot;&quot;<br><br>    system_prompt = (<br>        &quot;You are a query router. Classify the user query as either:\n&quot;<br>        &quot;- &#39;direct&#39; → general knowledge, greetings, simple math\n&quot;<br>        &quot;- &#39;rag&#39; → requires specific, private, or up-to-date data\n&quot;<br>        &quot;Respond with only one word: direct or rag.&quot;<br>    )<br><br>    try:<br>      <br>        response = routing_client.chat.completions.create(<br>            model=&quot;gpt-4o-mini&quot;,<br>            messages=[<br>                {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: system_prompt},<br>                {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: user_query}<br>            ],<br>            max_tokens=5,<br>        )<br><br>        intent = response.choices[0].message.content.strip().lower()<br><br>    except Exception as e:<br>        print(&quot;Routing failed, defaulting to RAG:&quot;, e)<br>        intent = &quot;rag&quot;<br><br>    if intent == &quot;rag&quot;:<br>        print(&quot;[RAG] Routing to retrieval pipeline...&quot;)<br>        return run_full_rag_pipeline(user_query)<br>    else:<br>        print(&quot;[DIRECT] Routing directly to LLM...&quot;)<br>        return run_direct_llm_call(user_query)<br><br><br>def run_direct_llm_call(query: str):<br>    &quot;&quot;&quot;Direct LLM response (no retrieval)&quot;&quot;&quot;<br>    response = llm_client.chat.completions.create(<br>        model=&quot;gpt-4o&quot;,<br>        messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: query}]<br>    )<br>    return response.choices[0].message.content<br><br><br>def run_full_rag_pipeline(query: str):<br>    &quot;&quot;&quot;<br>    Simulated RAG pipeline:<br>    - Search vector DB<br>    - Fetch context<br>    - Send to LLM<br>    &quot;&quot;&quot;<br>    context = &quot;[Retrieved context from vector DB]&quot;<br>    <br>    response = llm_client.chat.completions.create(<br>        model=&quot;gpt-4o&quot;,<br>        messages=[<br>            {&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;Use the provided context to answer.&quot;},<br>            {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: f&quot;Context:\n{context}\n\nQuery:\n{query}&quot;}<br>        ]<br>    )<br><br>    return response.choices[0].message.content</pre><p>This approach uses a smaller, faster model to classify the query and a more powerful model to generate the final response. It keeps the system efficient while maintaining quality where it matters.</p><h3>Why This Approach Matters</h3><p>Once you introduce this small change, the impact becomes noticeable. Simple queries are handled faster because they skip unnecessary steps. The system also becomes more cost-efficient since it avoids extra database calls and reduces token usage.</p><p>More importantly, the system becomes adaptive. Instead of following a fixed pipeline, it adjusts based on the nature of the query.</p><h3>A System Design Perspective</h3><p>If you have worked on backend systems or APIs, this idea might already feel familiar. Not every request is treated the same way. Some requests are handled quickly, while others go through more complex processing layers.</p><p>Smart RAG follows the same principle. It introduces flexibility into the system instead of forcing every query through the same path.</p><h3>Challenges to Consider</h3><p>Of course, this approach is not without challenges. The most important part is deciding whether a query needs retrieval. If the system makes a wrong decision, it could affect the quality of the response.</p><p>Designing a good routing mechanism takes some experimentation. But even a basic version can provide meaningful improvements.</p><h3>Final Thought</h3><p>RAG is a powerful technique, but using it everywhere is not always the best solution. The real improvement comes from understanding when retrieval is actually needed.</p><p>Sometimes, the smartest system is not the one that does more work, but the one that knows when to do less.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35a86706ced2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>