<?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 Nikhil Mahajan on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Mahajan on Medium]]></description>
        <link>https://medium.com/@mahajannikhil0016?source=rss-fceba5feb19b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*i6ha19UyvTjD2hNhODaZOQ.png</url>
            <title>Stories by Nikhil Mahajan on Medium</title>
            <link>https://medium.com/@mahajannikhil0016?source=rss-fceba5feb19b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 10:26:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahajannikhil0016/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[Will AI replace software engineers?]]></title>
            <link>https://medium.com/illumination/will-ai-replace-software-engineers-2d2113f56a07?source=rss-fceba5feb19b------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d2113f56a07</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nikhil Mahajan]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 14:09:15 GMT</pubDate>
            <atom:updated>2025-06-29T14:09:15.279Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><strong>Will AI take my job? </strong>here’s the truth</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EoB0mxBlColeO4koYAqUhQ.png" /><figcaption>Thumbnail designed by <a href="https://medium.com/u/fceba5feb19b">Nikhil Mahajan</a></figcaption></figure><p>If you’re a developer in 2025, you’ve probably asked this at least once. And while AI tools like ChatGPT, GitHub Copilot, and CodeWhisperer are evolving fast,</p><p><strong>AI won’t replace software engineers. But engineers who use AI might replace those who don’t.</strong></p><p>I still remember the first time I used ChatGPT to write code.</p><p>I gave it a problem I’d spent over two hours debugging a bug in a Django app. ChatGPT solved it in 30 seconds.</p><p>My heart sank a little.</p><blockquote><em>“If this tool can do in seconds what I do in hours… am I even needed?”</em></blockquote><p>It’s a question many software engineers are quietly asking themselves in 2025. AI writes code. It reviews pull requests. It even builds full-stack apps. So where do we fit in?</p><p>I sat with that question for weeks and after building, breaking, and learning alongside AI, I’ve realized something important:</p><blockquote><strong><em>AI won’t replace us. But it will force us to become better engineers.</em></strong></blockquote><p>Let me explain why <em>you</em> are still the most valuable piece of the puzzle.</p><h3>Coding ≠ Engineering</h3><p>Here’s the trap: we confuse writing code with being an engineer.</p><p>AI <em>can</em> generate code. But software engineering is about <strong>much more</strong> than that.</p><ul><li>It’s about understanding a problem deeply enough to model it in code.</li><li>It’s about making tradeoffs performance vs simplicity, flexibility vs clarity.</li><li>It’s about choosing <em>not</em> to write code when it’s unnecessary.</li></ul><p>The hardest part of our job has never been syntax. It’s thinking. And as of 2025, AI still doesn’t think. It predicts.</p><h3><strong>Engineering Happens in the Gaps</strong></h3><p>A few weeks ago, I was asked to “build a quick tool that summarizes legal PDFs.”</p><p>It sounded simple and of course, ChatGPT gave me a beautiful Python script with PyMuPDF and some prompt engineering.</p><p>But guess what?</p><ul><li>It failed on encrypted PDFs.</li><li>It choked on scanned images with no text layer.</li><li>The summaries were accurate, but not useful.</li></ul><p>I had to:</p><ul><li>Preprocess the files with OCR</li><li>Add a fallback model for poor scans</li><li>Adjust summaries based on client-specific terminology</li></ul><p>That’s where <em>real engineering</em> lives in the edge cases, the user needs, the unexpected.</p><p>AI helped me. But it couldn’t solve the whole thing. Because <strong>it didn’t know what “done” meant</strong>.</p><h3>You Are Still the Engineer</h3><p>Here’s what I’ve learned after building with AI for over a year:</p><ul><li>AI is incredible at <em>helping</em> you code.</li><li>It’s terrible at <em>deciding</em> what to build.</li><li>It doesn’t ask <em>why</em> something matters.</li></ul><p>That’s your job.</p><p>If you’re the kind of engineer who only converts specs into code, AI <em>might</em> replace that part of you.</p><p>But if you’re the kind of engineer who Questions requirements, Designs houghtful systems, Mentors juniors, Communicates clearly and Takes ownership</p><p>Then trust me <strong>you’re not replaceable.</strong></p><h3>Final Thought: Adapt, Don’t Fear</h3><p>The future isn’t AI vs you.</p><p>It’s You + AI vs outdated workflows.</p><p>The best engineers I know including myself are using AI daily. They’re learning faster, shipping faster, thinking deeper.</p><p>So don’t fear AI. Use it. Pair program with it. Let it challenge your assumptions.</p><p>Because in the end, AI is not here to take your job. It’s here to take your job to the next level.</p><p>Thank you for reading this article!</p><p>Any questions or suggestions? Feel free to write a comment.</p><p>I’d also be happy if you followed me and gave this article a few claps! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d2113f56a07" width="1" height="1" alt=""><hr><p><a href="https://medium.com/illumination/will-ai-replace-software-engineers-2d2113f56a07">Will AI replace software engineers?</a> was originally published in <a href="https://medium.com/illumination">ILLUMINATION</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create Serializers and Deserializers from Scratch in Python]]></title>
            <link>https://levelup.gitconnected.com/how-to-create-serializers-and-deserializers-from-scratch-in-python-eb6f8649517b?source=rss-fceba5feb19b------2</link>
            <guid isPermaLink="false">https://medium.com/p/eb6f8649517b</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Nikhil Mahajan]]></dc:creator>
            <pubDate>Mon, 23 Jun 2025 06:43:24 GMT</pubDate>
            <atom:updated>2025-06-25T14:57:39.573Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBJGB-zpG2tFTanRaqHQxQ.png" /><figcaption>Thumbnail desinged by <a href="https://medium.com/u/fceba5feb19b">Nikhil Mahajan</a></figcaption></figure><p>In today’s world of APIs, microservices, and data pipelines, <strong>serialization</strong> and <strong>deserialization</strong> play a central role. While Python provides built-in tools like json and pickle, understanding how to <strong>build your own serializer/deserializer</strong> helps you grasp what&#39;s happening under the hood and makes you a better developer.</p><p>In this blog, I will walk you through how to implement custom serializers and deserializers from scratch, including support for basic types and custom classes.</p><h3>What Are Serializers and Deserializers?</h3><p><strong>Serialization </strong>is the process of converting the state of an object into a format that can be stored (e.g., in a file or database) or transmitted (e.g., over a network). The reverse process, recreating the object from this format, is called <strong>deserialization</strong>. Essentially, serialization allows you to save and later restore the state of an object.</p><h3>Step 1: Basic Serializer for Built-in Types</h3><p>Let’s start simple. We want to convert Python objects (like int, list, dict) into a JSON-like string</p><pre>def serialize(obj):<br>    if isinstance(obj, str):<br>        return f&#39;&quot;{obj}&quot;&#39;<br>    elif isinstance(obj, bool):<br>        return &quot;true&quot; if obj else &quot;false&quot;<br>    elif obj is None:<br>        return &quot;null&quot;<br>    elif isinstance(obj, (int, float)):<br>        return str(obj)<br>    elif isinstance(obj, list):<br>        return &quot;[&quot; + &quot;, &quot;.join(serialize(item) for item in obj) + &quot;]&quot;<br>    elif isinstance(obj, dict):<br>        items = [f&#39;&quot;{key}&quot;: {serialize(value)}&#39; for key, value in obj.items()]<br>        return &quot;{&quot; + &quot;, &quot;.join(items) + &quot;}&quot;<br>    else:<br>        raise TypeError(f&quot;Type {type(obj)} not supported&quot;)</pre><h4><strong>Example</strong></h4><pre>data = {<br>    &quot;name&quot;: &quot;ABC&quot;,<br>    &quot;age&quot;: 21,<br>    &quot;languages&quot;: [&quot;Python&quot;, &quot;JavaScript&quot;],<br>    &quot;student&quot;: True<br>}<br><br>print(serialize(data))</pre><h4><strong>Output</strong></h4><pre>{&quot;name&quot;: &quot;ABC&quot;, &quot;age&quot;: 21, &quot;languages&quot;: [&quot;Python&quot;, &quot;JavaScript&quot;], &quot;student&quot;: true}</pre><h3>Step 2: Basic Deserializer</h3><p>Now, let’s convert that string back into a Python object. Instead of writing a full parser, we’ll use ast.literal_eval for safety and simplicity</p><pre>import ast<br><br>def deserialize(data_str):<br>    try:<br>        # Replace JSON-like keywords with Python equivalents<br>        safe_str = data_str.replace(&quot;null&quot;, &quot;None&quot;).replace(&quot;true&quot;, &quot;True&quot;).replace(&quot;false&quot;, &quot;False&quot;)<br>        return ast.literal_eval(safe_str)<br>    except Exception as e:<br>        raise ValueError(&quot;Deserialization failed: &quot; + str(e))</pre><p><strong>Example</strong></p><pre>json_str = &#39;{&quot;name&quot;: &quot;ABC&quot;, &quot;age&quot;: 21, &quot;languages&quot;: [&quot;Python&quot;, &quot;JavaScript&quot;], &quot;student&quot;: true}&#39;<br>python_obj = deserialize(json_str)</pre><h3>Step 3: Support for Custom Classes</h3><p><strong>Define a class</strong></p><pre>class Student:<br>    def __init__(self, name, age):<br>        self.name = name<br>        self.age = age</pre><p><strong>Custome Serializer :</strong></p><pre>def serialize_custom(obj):<br>    if hasattr(obj, &#39;__dict__&#39;):<br>        obj_dict = obj.__dict__.copy()<br>        obj_dict[&#39;__class__&#39;] = obj.__class__.__name__<br>        return serialize(obj_dict)<br>    return serialize(obj)</pre><p><strong>Custome Deserializer :</strong></p><pre>def deserialize_custom(data_str):<br>    obj = deserialize(data_str)<br>    if &#39;__class__&#39; in obj:<br>        class_name = obj.pop(&#39;__class__&#39;)<br>        if class_name == &#39;Student&#39;:<br>            return Student(**obj)<br>    return obj</pre><p><strong>Try what we have build :</strong></p><pre>s = Student(&quot;ABC&quot;, 21)<br>s_str = serialize_custom(s)<br>print(s_str)<br><br>s_obj = deserialize_custom(s_str)<br>print(s_obj.__class__, s_obj.name, s_obj.age)</pre><h3>Why Not Just Use json or pickle?</h3><p>You should! in production But… there are <strong>specific situations</strong> where building your own serializer/deserializer makes sense. While built-in serializers like json are fantastic for most situations, <strong>building your own gives you flexibility, deeper control, and a better understanding of what’s happening under the hood.</strong></p><h3><strong>Conclusion</strong></h3><p>That’s it! You’ve now built a basic functioning JSON serializer/deserialize in Python. While it’s far from perfect, you could enhance it with custom formatting options, support for string escaping, and more precise error reporting. Still, I hope you’ve learned something valuable from this article and that it inspires you to explore everyday tools and create something cool.</p><p>Thank you for reading this article!</p><p>Any questions or suggestions? Feel free to write a comment.</p><p>I’d also be happy if you followed me and gave this article a few claps! 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eb6f8649517b" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/how-to-create-serializers-and-deserializers-from-scratch-in-python-eb6f8649517b">How to Create Serializers and Deserializers from Scratch in Python</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Revolutionizing Information Retrieval with a Multi-PDF AI Chatbot]]></title>
            <link>https://medium.com/@mahajannikhil0016/revolutionizing-information-retrieval-with-a-multi-pdf-ai-chatbot-369baef966ba?source=rss-fceba5feb19b------2</link>
            <guid isPermaLink="false">https://medium.com/p/369baef966ba</guid>
            <category><![CDATA[langchain]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Nikhil Mahajan]]></dc:creator>
            <pubDate>Sun, 23 Mar 2025 16:04:11 GMT</pubDate>
            <atom:updated>2025-03-23T16:04:11.286Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s fast-paced world, quickly accessing and understanding information from multiple documents is more important than ever. Imagine uploading several PDFs and instantly asking questions about their content, getting accurate and relevant answers in return. That’s exactly what our new AI chatbot offers, built using a powerful combination of <strong>Langchain</strong>, <strong>GroqAPI with Llama 2</strong>, <strong>HuggingFace embeddings</strong>, and <strong>Streamlit</strong> for an intuitive user interface. In this blog post, we’ll explore how this chatbot works, its key components, benefits, and what’s on the horizon for its future.</p><h3>What’s Behind the Magic? Understanding the Components</h3><p>This multi-PDF AI chatbot is powered by a carefully selected set of tools and frameworks. Let’s break them down:</p><ul><li><strong>Langchain</strong>: This framework acts as the backbone of our chatbot. It’s designed to build applications with large language models, managing how data flows and connects the different pieces of the system. Think of it as the coordinator that keeps everything running smoothly.</li><li><strong>GroqAPI with Llama 2</strong>: Speed and intelligence come together here. GroqAPI provides the fast computational power needed to run <strong>Llama 2</strong>, a cutting-edge language model known for its ability to understand and generate human-like text. Together, they ensure quick and smart responses to your questions.</li><li><strong>HuggingFace Embeddings</strong>: To make sense of the PDFs, the chatbot needs to “read” them in a way machines understand. HuggingFace provides pre-trained models that turn text into numerical representations — called embeddings — that capture meaning and context. This step is critical for the chatbot to grasp what’s inside your documents.</li><li><strong>Streamlit</strong>: A sleek and simple interface is key to making this technology user-friendly. Streamlit, a Python library, lets us create a web app where you can upload PDFs and ask questions effortlessly. It’s perfect for bringing this AI tool to life without complicating the experience.</li></ul><h3>How Does It Work?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*tyE6ZaRErlZjT9xQ_VCnnQ.png" /></figure><p>Here’s the process in a nutshell:</p><ol><li><strong>Upload Your PDFs</strong>: You start by uploading one or more PDF files through the Streamlit interface.</li><li><strong>Text Processing</strong>: The chatbot uses HuggingFace embeddings to convert the text in those PDFs into a format that the language model can work with.</li><li><strong>Smart Integration</strong>: Langchain steps in to manage the data and connect it to GroqAPI, which powers Llama 2.</li><li><strong>Ask and Answer</strong>: You type a question, and Llama 2 analyzes the embeddings to generate a response based on the content of all the uploaded PDFs.</li></ol><p>What makes this special is its ability to handle multiple PDFs at once, giving you answers that pull from all your documents rather than just one. It’s like having a super-smart assistant who’s read everything you’ve uploaded!</p><h3>Demo</h3><p>Live Demo Link : <a href="https://huggingface.co/spaces/NikhilMahajan/Multi-PDF-AI-Agent">https://huggingface.co/spaces/NikhilMahajan/Multi-PDF-AI-Agent</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5c8hqOzjDey0_ZjrbxVhbw.png" /><figcaption>Output</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h1lcBadEkoAHYzM1iQCLmA.png" /></figure><h3>Installation and Setup</h3><p>Step-by-Step guide is provided on my github for installation and setup of project.</p><p>Project link :- <a href="https://github.com/NikhilMahajn/Mulit-PDF-AI-Chatbot-Agent">https://github.com/NikhilMahajn/Mulit-PDF-AI-Chatbot-Agent</a></p><h3>Why You’ll Love It: Benefits and Use Cases</h3><p>This chatbot is a game-changer for anyone who deals with lots of documents. Here are some perks:</p><ul><li><strong>Time-Saving</strong>: No more digging through pages and pages of PDFs manually.</li><li><strong>Comprehensive Answers</strong>: It considers all your uploaded files, so you get a fuller picture.</li><li><strong>Versatile</strong>: Perfect for students, researchers, or professionals who need quick insights.</li></ul><p>For example, imagine you’re a student studying for an exam. You upload your lecture notes, textbook chapters, and study guides — all in PDF format. Then, you ask, “What’s the definition of photosynthesis?” or “Explain Newton’s laws.” The chatbot scans everything and delivers a clear, concise answer. No flipping through pages required!</p><h3>Conclusion</h3><p>Our multi-PDF AI chatbot, built with Langchain, GroqAPI with Llama 2, HuggingFace embeddings, and Streamlit, is here to simplify how you interact with your documents. Whether you’re a student cramming for a test, a researcher sifting through papers, or a professional analyzing reports, this tool can save you time and effort. It’s not just about answering questions — it’s about unlocking the knowledge hidden in your PDFs, fast and efficiently. Stay tuned as we continue to refine and expand this exciting technology!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=369baef966ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 Beginner’s Projects to get started with ML in 2025]]></title>
            <link>https://medium.com/@mahajannikhil0016/top-5-beginners-projects-to-get-started-with-ml-in-2025-8dc191227fe6?source=rss-fceba5feb19b------2</link>
            <guid isPermaLink="false">https://medium.com/p/8dc191227fe6</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[project-ideas]]></category>
            <dc:creator><![CDATA[Nikhil Mahajan]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 07:48:41 GMT</pubDate>
            <atom:updated>2025-02-09T07:49:22.183Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*9I05jT2Kc9ERSuU7J4wjaw.png" /></figure><p>Machine learning is the most in-demand skill nowdays. Do you want to make a career in this field, Well I got you covered😉</p><p>Here are Top 5 Project’s to get started with machine learning.</p><h3>1. Titanic — Machine Learning from Disaster</h3><p>This is the legendary Titanic ML competition — the best, first challenge for you to dive into ML competitions and familiarize yourself with how the Kaggle platform works.</p><p>The competition is simple: use machine learning to create a model that predicts which passengers survived the Titanic shipwreck.</p><p>Link : <a href="https://www.kaggle.com/competitions/titanic">https://www.kaggle.com/competitions/titanic</a></p><h3>2. Iris Dataset Classification Task</h3><p>The <strong>Iris dataset</strong> is one of the most famous datasets in machine learning and statistics. It is widely used for <strong>classification problems</strong> and is considered the “Hello World” of machine learning.</p><p>The dataset contains <strong>150 samples</strong> of iris flowers, categorized into <strong>three species</strong>:</p><ol><li><strong>Setosa</strong></li><li><strong>Versicolor</strong></li><li><strong>Virginica</strong></li></ol><p>Load dataset</p><pre>from sklearn.datasets import load_iris<br>import pandas as pd<br><br># Load dataset<br>iris = load_iris()<br><br># Create DataFrame<br>df = pd.DataFrame(iris.data, columns=iris.feature_names)<br>df[&#39;species&#39;] = iris.target<br><br># Display first 5 rows<br>print(df.head())</pre><p>Your task is to classify the flower’s species.</p><h3><strong>3.</strong>Housing Prices Competition</h3><p>This is a perfect competition for data science students who have completed an online course in machine learning and are looking to expand their skill set before trying a featured competition.</p><p>Link : <a href="https://www.kaggle.com/competitions/home-data-for-ml-course">https://www.kaggle.com/competitions/home-data-for-ml-course</a></p><h3>4.Car Price Prediction Challenge</h3><p>The challenge is to predict the price of a car using the data about attributes of car such as model name, fuel type and km-run, model release year etc. This is a regression problem which will help you better understand regretion algorithms</p><p>Link : <a href="https://www.kaggle.com/datasets/deepcontractor/car-price-prediction-challenge">https://www.kaggle.com/datasets/deepcontractor/car-price-prediction-challenge</a></p><h3>5. Digit Recognition</h3><p>MNIST (“Modified National Institute of Standards and Technology”) is the de facto “hello world” dataset of computer vision. Since its release in 1999, this classic dataset of handwritten images has served as the basis for benchmarking classification algorithms. As new machine learning techniques emerge, MNIST remains a reliable resource for researchers and learners alike.</p><p>In this Project, your goal is to correctly identify digits from a dataset of tens of thousands of handwritten images. Dataset has curated a set of tutorial-style kernels which cover everything from regression to neural networks. We encourage you to experiment with different algorithms to learn first-hand what works well and how techniques compare.</p><p>Link : <a href="https://www.kaggle.com/competitions/digit-recognizer">https://www.kaggle.com/competitions/digit-recognizer</a></p><h3><strong>Conclusion:</strong></h3><p>Machine learning is drastically evolving field and proides any career opportunities. To be successfull you have to evolve along with the technology, so don’t just stop here build your own projects which are applicable in real world.</p><p>Best of luck for the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8dc191227fe6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>