<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hasindu Nagolla</title>
    <description>The latest articles on DEV Community by Hasindu Nagolla (@hasii).</description>
    <link>https://dev.to/hasii</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2639742%2F8c5b8c00-3080-4c9d-839d-e90a1f772e0b.png</url>
      <title>DEV Community: Hasindu Nagolla</title>
      <link>https://dev.to/hasii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hasii"/>
    <language>en</language>
    <item>
      <title>Artificial General Intelligence (AGI)</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Thu, 10 Sep 2026 01:12:13 +0000</pubDate>
      <link>https://dev.to/hasii/artificial-general-intelligence-agi-nc7</link>
      <guid>https://dev.to/hasii/artificial-general-intelligence-agi-nc7</guid>
      <description>&lt;p&gt;At the moment, the significance of Artificial Intelligence grows steadily. We use AI in a wide variety of spheres, including mobile devices, web sites, education, healthcare, software development and so on. Still, modern AI systems are mostly used for specific purposes. The concept of AGI implies creating an AI system which will be able to learn and solve different tasks in the same manner as a human.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is AGI?
&lt;/h2&gt;

&lt;p&gt;AGI is the concept of AI system which is able to demonstrate general intelligence, i.e. understand information, learn new things, solve various problems and apply the acquired knowledge to different situations.&lt;/p&gt;

&lt;p&gt;For example, one system can be very good at image recognition. Other AI can be great at writing texts or translating languages. All of these systems are focused on their own purposes. In contrast, AGI is focused not on one task, but on multiple types of tasks and usage of this knowledge in different contexts.&lt;/p&gt;

&lt;h2&gt;
  
  
  How is AGI different from normal AI?
&lt;/h2&gt;

&lt;p&gt;The difference lies in ability to deal with different types of problems.&lt;/p&gt;

&lt;p&gt;Modern AI systems are called narrow AI. Their purposes are predetermined – for example, a recommendation system is focused on suggesting movies to users, voice assistants understand speech, chess AI plays chess.&lt;/p&gt;

&lt;p&gt;The efficiency of these systems is very high. But unlike a person, they do not possess the same degree of general ability. A chess AI can play chess perfectly. But it cannot learn suddenly to cook or repair a computer.&lt;/p&gt;

&lt;p&gt;AGI is aimed to acquire a much broader set of abilities. It is able to learn different topics and apply this knowledge for solving different types of problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can AGI do?
&lt;/h2&gt;

&lt;p&gt;AGI can do a lot of types of work. For example, it can understand the human language, create program code, solve mathematical problems, analyze the information and support the research process.&lt;/p&gt;

&lt;p&gt;For example, an AGI system can get information about a software project and help to develop it. After that, it can learn about some scientific problem and help to find possible solutions.&lt;/p&gt;

&lt;p&gt;Moreover, AGI is able to learn something new. This is one of the key concepts of AGI. It is not bound by one strict set of instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Benefits of AGI
&lt;/h2&gt;

&lt;p&gt;There are many benefits which AGI can bring to people.&lt;/p&gt;

&lt;p&gt;In education, AGI can help students in studying different subjects. It can explain difficult topics in a simple way and provide help depending on the needs of each student.&lt;/p&gt;

&lt;p&gt;In healthcare, AGI can help doctors and researchers to analyze huge amount of information. It can also support medical researches.&lt;/p&gt;

&lt;p&gt;In software engineering, AGI can help developers in writing, testing and improving the software. It can analyze a problem and help to find a solution.&lt;/p&gt;

&lt;p&gt;AGI can also help in scientific researches. It can analyze the information and assist researchers in working with complex problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Risks of AGI
&lt;/h2&gt;

&lt;p&gt;But AGI brings some serious risks too. A powerful AI system can cause serious problems if it will be used in harmful purposes.&lt;/p&gt;

&lt;p&gt;Firstly, we should speak about jobs. As AGI will be able to perform many types of work, some jobs can change and even become unnecessary. And people will need to learn new skills so that they could cooperate with AI.&lt;/p&gt;

&lt;p&gt;Also there are risks connected with safety of AGI. We should make sure that AGI systems are pursuing human goals and not causing any harm.&lt;/p&gt;

&lt;p&gt;Also there are risks connected with privacy, security and misinformation. For this reason, AGI development requires very thorough planning and strict safety measures.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is AGI available today?
&lt;/h2&gt;

&lt;p&gt;AGI is mainly the topic of current research. There is no common definition of AGI yet, and there is no test which would clearly show that some AI system is AGI.&lt;/p&gt;

&lt;p&gt;But currently existing AI systems are becoming increasingly capable. They can write texts, generate images, understand program code and perform many other tasks. But this does not necessarily mean that these systems are AGI.&lt;/p&gt;

&lt;p&gt;Researchers continue studying the ways to create AGI – systems with increased general ability to learn and think.&lt;/p&gt;

&lt;h2&gt;
  
  
  Future of AGI
&lt;/h2&gt;

&lt;p&gt;AGI can have a tremendous impact on the future. It can influence our work, learning and solving of problems.&lt;/p&gt;

&lt;p&gt;AGI can assist humans in complicated tasks and help in spheres like science, education, medicine and technologies.&lt;/p&gt;

&lt;p&gt;But creation of AGI is not only about increasing of AI's power. Safety is very important issue here. Researchers need to make sure that AGI systems are safe, reliable and useful for people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;AGI is one of the most promising directions in artificial intelligence. It implies creating of an AI system which can learn, understand, think and solve many different problems.&lt;/p&gt;

&lt;p&gt;While normal AI systems are mainly oriented on specific tasks, AGI implies general intelligence. It provides many useful opportunities but causes many risks too.&lt;/p&gt;

&lt;p&gt;AGI is currently being studied and there are many questions about its development. AGI will probably become an important technology in the future, so it is important to understand both its benefits and risks.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>rag</category>
      <category>deeplearning</category>
      <category>nlp</category>
    </item>
    <item>
      <title>AWS vs DigitalOcean, Which Cloud Platform Should You Choose?</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Tue, 08 Sep 2026 03:07:05 +0000</pubDate>
      <link>https://dev.to/hasii/aws-vs-digitalocean-which-cloud-platform-should-you-choose-1pp6</link>
      <guid>https://dev.to/hasii/aws-vs-digitalocean-which-cloud-platform-should-you-choose-1pp6</guid>
      <description>&lt;p&gt;Cloud computing has become an essential part of modern software development. Whether you are deploying a personal project, hosting a startup application, building a machine learning system or managing enterprise infrastructure, choosing the correct cloud provider has a major impact on cost, scalability, complexity and development speed.&lt;/p&gt;

&lt;p&gt;Two platforms that developers frequently compare are Amazon Web Services (AWS) and DigitalOcean. Both can host applications, databases, APIs, containers and virtual machines. However, they prioritise different things. AWS focuses on breadth, scalability and enterprise grade cloud infrastructure. DigitalOcean focuses on simplicity, predictable pricing and developer experience.**** So, which one should you choose? The answer depends on what you are building.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;AWS - The Giant Cloud Ecosystem&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Amazon Web Services is the largest cloud platform in the world. Instead of being simply a server hosting provider, AWS provides a huge ecosystem of cloud services covering compute, storage, databases, networking, security, analytics, AI, serverless computing, containers, DevOps and so many things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;For example, a typical AWS architecture could combine,&lt;/li&gt;
&lt;li&gt;EC2 for virtual machines&lt;/li&gt;
&lt;li&gt;S3 for object storage&lt;/li&gt;
&lt;li&gt;RDS for managed databases&lt;/li&gt;
&lt;li&gt;Lambda for serverless functions&lt;/li&gt;
&lt;li&gt;CloudFront for content delivery&lt;/li&gt;
&lt;li&gt;Route 53 for DNS&lt;/li&gt;
&lt;li&gt;Elastic Load Balancing for traffic distribution&lt;/li&gt;
&lt;li&gt;EKS for Kubernetes&lt;/li&gt;
&lt;li&gt;CloudWatch for monitoring&lt;/li&gt;
&lt;li&gt;IAM for access management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This big ecosystem is one of AWS's biggest advantages. However, it can also be one of its biggest disadvantages for beginners. There are often multiple ways to solve the same problem and understanding how different AWS services interact can take considerable time.&lt;/p&gt;

&lt;p&gt;Where is AWS great?&lt;/p&gt;

&lt;p&gt;AWS is particularly attractive when you need something like,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;1. Large-scale infrastructure&lt;/li&gt;
&lt;li&gt;2. Advanced networking&lt;/li&gt;
&lt;li&gt;3. Global deployment&lt;/li&gt;
&lt;li&gt;4. Enterprise security and compliance&lt;/li&gt;
&lt;li&gt;5. Complex architectures&lt;/li&gt;
&lt;li&gt;6. Serverless applications&lt;/li&gt;
&lt;li&gt;7. Large databases and data pipelines&lt;/li&gt;
&lt;li&gt;8. Advanced AI/ML infrastructure&lt;/li&gt;
&lt;li&gt;9. Integration with many managed services&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In other words, AWS gives developers an enormous toolbox. The challenge is learning which tool to use.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;DigitalOcean - Simplicity First&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;DigitalOcean takes a different way. Instead of presenting developers with a large ecosystem from the beginning, DigitalOcean focuses on making common cloud tasks simple.&lt;/p&gt;

&lt;p&gt;Its virtual machines are called Droplets. A developer can select an operating system, choose a Droplet configuration, select a region and deploy a server within minutes.&lt;/p&gt;

&lt;p&gt;DigitalOcean currently offers Droplets starting at $4/month, with bundled resources such as CPU, memory, SSD storage and bandwidth.&lt;/p&gt;

&lt;p&gt;DigitalOcean also includes a considerable amount of outbound bandwidth with Droplet plans. It makes its pricing easier to understand for many small applications. Another important change is that DigitalOcean moved Droplets to per second billing in January 2026, with a 60 second minimum, giving developers more granular control over short lived workloads.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Pricing of AWS vs DigitalOcean&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Pricing is one of the biggest differences between the two platforms. AWS generally uses a highly granular pricing model. You can pay separately for compute, storage, data transfer, IP addresses, requests, databases and other resources depending on your architecture. This flexibility is powerful, but it can make estimating the final bill more complicated.&lt;/p&gt;

&lt;p&gt;DigitalOcean's approach is generally easier to understand. For example, a Droplet plan bundles CPU, RAM, storage and a specified amount of bandwidth into a predictable price. DigitalOcean's own comparison shows how bundled resources can make its basic compute offerings cheaper than comparable AWS configurations in some scenarios.&lt;/p&gt;

&lt;p&gt;However, cheaper does not automatically mean better. AWS provides a larger set of managed services and enterprise capabilities. So comparing only price of a virtual machine does not tell the whole story.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Ease of Use&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This is where DigitalOcean has a major advantage. Imagine you are a university student who wants to deploy&lt;/p&gt;

&lt;p&gt;&lt;code&gt;React/Next.js → Node.js API → PostgreSQL&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;On DigitalOcean, you can get a virtual machine, configure your environment, install Docker, deploy your application and manage everything through a relatively simple interface.&lt;/p&gt;

&lt;p&gt;AWS can absolutely handle the same application. But AWS gives you many more architectural choices. You could use,&lt;/p&gt;

&lt;p&gt;&lt;code&gt;EC2 → RDS → S3 → CloudFront → Route 53 → Load Balancer → IAM → CloudWatch&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That flexibility is extremely useful in production environments. But for someone who simply wants to deploy a project, it can introduce unnecessary complexity.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Scalability&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;AWS wins when the discussion moves to massive scale and complex architectures. AWS provides infrastructure designed for applications that may need to scale across regions, availability zones, services and millions of users.&lt;/p&gt;

&lt;p&gt;DigitalOcean can also scale applications using multiple Droplets, load balancers, Kubernetes, databases and other services. However, AWS generally provides a deeper ecosystem for highly complex enterprise architectures. Therefore,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Small and medium applications - DigitalOcean can be extremely convenient&lt;/li&gt;
&lt;li&gt;Large  and complex enterprise systems - AWS is often the stronger choice&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Security&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Both platforms provide security features, but their approaches differ. AWS provides a very extensive security ecosystem. Including IAM, VPC, Security Groups, KMS, WAF, Shield, GuardDuty, CloudTrail and Security Hub. This gives organisations to detailed control over identity, networking, monitoring and compliance.&lt;/p&gt;

&lt;p&gt;DigitalOcean provides simpler security features such as Cloud Firewalls, SSH-key authentication, private networking and other infrastructure controls. For a developer deploying a portfolio application or startup MVP, DigitalOcean's simpler approach may be enough.&lt;/p&gt;

&lt;p&gt;For organizations with complex compliance, identity and security requirements, AWS provides considerably more depth.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What About AI and Machine Learning?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This is particularly interesting for developers working in AI/ML. mAWS has a huge AI/ML ecosystem, including services for model training, inference, data processing, GPU computing and managed machine learning workflows.&lt;/p&gt;

&lt;p&gt;DigitalOcean has also expanded significantly into AI/ML. Its current platform includes GPU Droplets and AI/ML services. DigitalOcean's GPU offerings support workloads such as model training, inference, large-scale data processing and deep learning.&lt;/p&gt;

&lt;p&gt;For someone experimenting with an AI application, the choice will depend more on the specific workload than the provider name. For example, for a simple AI API + backend,  DigitalOcean can be attractive. For a Large ML pipeline + data lake + distributed training + enterprise infrastructure, AWS becomes better.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Global Infrastructure&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;AWS has a massive global infrastructure footprint and provides extensive options for deploying applications close to users around the world. DigitalOcean also operates data centers across multiple regions, including Singapore, Bangalore, London, Amsterdam, Frankfurt, New York, Toronto, Sydney and others.&lt;/p&gt;

&lt;p&gt;For developers serving users in South Asia or Southeast Asia, choosing a nearby region can significantly improve latency. This means that instead of considering, "Which provider is better?" we need to consider "Which provider has right infrastructure for my users?"&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Which One Should You Choose?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;There is no universal winner. If you are building your first cloud project, deploying a portfolio website, hosting a small backend, experimenting with Docker or launching an MVP, DigitalOcean is often the easier starting point. You can focus on your application instead of spending a significant amount of time learning cloud infrastructure.&lt;/p&gt;

&lt;p&gt;If you are building a large scale production platform, need advanced networking, require extensive managed services or expect complex global infrastructure, AWS is the more powerful choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;My Suggestion&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Learn both. For software engineers and DevOps engineers, understanding DigitalOcean will teach the fundamentals of Linux, networking, SSH, Docker,  Reverse Proxies,  Databases and  CI/CD  Deployment. After that, those concepts provide a clear foundation for moving to and understanding AWS much easier.&lt;/p&gt;

&lt;p&gt;AWS then adds another layer to our foundations (IAM, VPC, Load Balancing, Auto Scaling, Serverless, Managed Services, Cloud Architecture)&lt;br&gt;
I do not think the real question is AWS or DigitalOcean. The better question should be "What does my application actually need?"&lt;br&gt;
If your application needs a simple server with predictable costs, DigitalOcean is an excellent choice. If your application needs a huge ecosystem of managed services and enterprise scale infrastructure, AWS is the best.&lt;/p&gt;

&lt;p&gt;For students and early career developers, I would recommend learning the fundamentals on a simpler platform first and then expanding into AWS. Because ultimately, cloud engineering is not about memorizing cloud provider services. It is about understanding infrastructure.&lt;/p&gt;

&lt;p&gt;Once you understand how servers, networking, containers, databases, storage, security, monitoring and deployment work, switching between cloud providers becomes much easier. And that is the real skill worth learning.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>aws</category>
      <category>ai</category>
    </item>
    <item>
      <title>Understanding the Transformer Model in LLMs</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Fri, 04 Sep 2026 15:54:00 +0000</pubDate>
      <link>https://dev.to/hasii/understanding-the-transformer-model-in-llms-33bh</link>
      <guid>https://dev.to/hasii/understanding-the-transformer-model-in-llms-33bh</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you are using ChatGPT, Google Gemini, Claude or any other modern AI Language Model, you are interacting with a transformer. The transformer architecture introduced in 2017 by Google researchers revolutionized the ability of computers to understand and generate human language. This article will walk you through what transformers are and how they work step-by-step. Before transformers, language models looked at one word at a time. It was like reading a book with a flashlight that only shows one word. This made it hard for the model to understand long sentences. As an Example, In the sentence "The bank was steep," the word "bank" could mean a financial bank or a riverbank. To choose the right meaning, the model needs to see the word "steep". Transformers fix this by looking at all words in a sentence at once. This helps the model see how each word connects to the others&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 01 - Breaking Text Into Tokens&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before the transformer reads the text, it splits it into smaller units called tokens. Each token becomes a number (a vector) that the model understands. This is called tokenization and embedding.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Input - "I love artificial intelligence"&lt;/li&gt;
&lt;li&gt;Tokens - ["I", "love", "art", "ificial", "intell", "igence"]&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Step 02 - Adding Positional Information&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Transformers look at all words at once, so they need to know the order. For example, "dog bites man" is very different from "man bites dog." Positional encoding adds order to the tokens. It's like giving page numbers to mixed-up book pages.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 03 - Attention Mechanism&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is the key part of transformers. Attention helps the model focus on important words when reading a sentence. Let's try to understand how Attention Works. Let's assume we need to translate "Le chat noir" (the black cat) into English.  For this, the model needs to focus on "Le" and "noir" when working on "chat." The model uses three parts for this&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Query - What word are we looking at now?&lt;/li&gt;
&lt;li&gt;Key - What other words are there?&lt;/li&gt;
&lt;li&gt;Value - What meaning do they give?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model gives attention scores to all words to decide which ones are more important. Transformers use many attention heads at the same time (Multi-Head Attention). Each head looks at different things like grammar, meaning or logic. This helps the model understand better.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 04 - Feed-Forward Neural Networks&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;After attention, the model sends each word's information through a feed-forward neural network. This helps the model learn more and improve its guesses. It’s like asking, “Now that I understand the sentence better, now what else can I figure out about this word?”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 05 - Stacking Layers&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Transformers use many layers, not just one. Each layer improves the output of the one before it.&lt;/p&gt;

&lt;p&gt;Layer 1 - Finds simple word links&lt;br&gt;
Layer 5 - Understands grammar better&lt;br&gt;
Layer 10 - Handles deep meaning&lt;br&gt;
Layer 20+ - Deals with complex ideas and reasoning&lt;/p&gt;

&lt;p&gt;It’s like editing a paper many times to make it a better and clearer output.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 07 - Training the Model&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Transformers learn by reading lots of text. During training:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The model reads billions of sentences&lt;/li&gt;
&lt;li&gt;It guesses the next word&lt;/li&gt;
&lt;li&gt;If wrong, it makes small changes to improve&lt;/li&gt;
&lt;li&gt;It repeats this many times&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This helps the model learn grammar, facts, patterns, and some logic.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8 - How It Writes Text&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you ask a question:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your text becomes tokens&lt;/li&gt;
&lt;li&gt;Tokens go through all the layers&lt;/li&gt;
&lt;li&gt;Attention helps the model find meaning&lt;/li&gt;
&lt;li&gt;It guesses the next word&lt;/li&gt;
&lt;li&gt;Adds it to the answer&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This will repeat until the answer is complete&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Transformers are more powerful because they can read all words at once, understand long texts well, work better with more data and can be used for many tasks. Transformers changed how AI understands language by focusing on what matters and using many layers of learning. It became the core of most modern language models. They are not magic, but they are clever tools that learn from huge amounts of text and help computers understand and create human language better than ever before.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>chatgpt</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Cyber war 😂</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Fri, 04 Sep 2026 04:56:53 +0000</pubDate>
      <link>https://dev.to/hasii/cyber-war-39f9</link>
      <guid>https://dev.to/hasii/cyber-war-39f9</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1wcbo55rnlv5siugccrj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1wcbo55rnlv5siugccrj.jpg" alt=" " width="556" height="645"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't do that&lt;/p&gt;

</description>
      <category>linux</category>
      <category>development</category>
      <category>devops</category>
    </item>
    <item>
      <title>What is the RAG (Retrieval-Augmented Generation) 🔥😳</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Fri, 04 Sep 2026 04:49:12 +0000</pubDate>
      <link>https://dev.to/hasii/what-is-the-rag-retrieval-augmented-generation-52k0</link>
      <guid>https://dev.to/hasii/what-is-the-rag-retrieval-augmented-generation-52k0</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frcrxcfomfmkzun068wh3.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frcrxcfomfmkzun068wh3.jpg" alt=" " width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Think, you are writing an exam. We usually write exams based on what we have memorized. But RAG is like an open book exam. It means we will write the exam using the resources on time, not based on our memory. just like writing answers to the question using a book.&lt;/p&gt;

&lt;p&gt;AI models like ChatGPT (actually LLMs) can answer based on their training data set. They cannot provide answers beyond their training data. After integrating the RAG technology, AI models can provide answers by accessing the new outside databases or documents. It will be more accurate than the common answers that return from the LLMs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why RAG? 🤔🤔&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI models (LLMs) like ChatGPT and Gemini are brilliant, but they have some limitations,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Outdated Data - they trained on past data, because they have no idea about on time information. So they do predict. (Knowledge Cutoff)&lt;/li&gt;
&lt;li&gt;Hallucinations - sometimes they provide random answers instead of the correct answer.&lt;/li&gt;
&lt;li&gt;Personal Data - general AI models have no idea about your personal information, like private details or company information.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We can completely mitigate these issues using RAG.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does it work?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This entire process is done through 4 steps,&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Asking a question - think you are asking "can i get a leave?"&lt;/li&gt;
&lt;li&gt;Retrieve (search) - The AI model (RAG integrated) does not provide the answer directly; it will search your company's HR policies and regulations.&lt;/li&gt;
&lt;li&gt;Augmented - then the system will collect your problem and the company information and send it to the AL model. &lt;/li&gt;
&lt;li&gt;Generation - now, the AI model is providing an accurate answer after analysing your question with your company details.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Advantages of RAG, 😮😮&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;👉Low cost - no need to train an AI model from scratch&lt;/li&gt;
&lt;li&gt;👉Real-time information - if you ask for real time news, you can get answers if they exist in the databases&lt;/li&gt;
&lt;li&gt;👉Stopping hallucinations - because the AI model will generate answers based on provided real information.&lt;/li&gt;
&lt;li&gt;👉Sources - The AI model can highlight references based on the provided documents or databases.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;As a summary, RAG(Retrieval-Augmented Generation) is like a bridge between your data and a separate AI model like ChatGPT. We can get highly accurate answers from AI models by providing our information as an outside data source. 👍👍&lt;/p&gt;

</description>
      <category>rag</category>
      <category>ai</category>
      <category>deeplearning</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Artificial Intelligence</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Fri, 14 Aug 2026 08:45:25 +0000</pubDate>
      <link>https://dev.to/hasii/artificial-intelligence-2cji</link>
      <guid>https://dev.to/hasii/artificial-intelligence-2cji</guid>
      <description>&lt;p&gt;AI stands for Artificial Intelligence. It is the ability of a computer, or a robot controlled by a computer to mimic human Intelligence.AI is rapidly changing the world.&lt;/p&gt;

&lt;h2&gt;
  
  
  Subfields of artificial intelligence (AI)
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Machine learning&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Machine learning is a type of AI that allows machines to learn from data without being explicitly programmed.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Deep learning&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Deep learning is a type of machine learning that uses artificial neural networks to learn from data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Natural language processing&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Natural language processing is a type of AI that allows machines to understand and process human language.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Computer vision&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Computer vision is a type of AI that allows machines to see and understand the world around them.&lt;/p&gt;

&lt;p&gt;Nowadays, AI is very familiar to most people. It is in everything we use today. for example, automated tasks, AI chatbots, image searching, generate content.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Automating tasks - AI can be used to automate tasks. such as post-scheduling, managing comments and responding to emails.&lt;/li&gt;
&lt;li&gt;Generating content - AI can be used to generate content. such as blog posts, articles and social media posts.&lt;/li&gt;
&lt;li&gt;AI chatbots - AI can be used to replace customer care centres. such as checking customer issues and auto-reply. (Dialog dia AI chat bot)&lt;/li&gt;
&lt;li&gt;Image searching - Ai can be used to search images needed by users. example, google image search.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;here are some examples of using Artificial Intelligence,&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Self-driving cars&lt;/li&gt;
&lt;li&gt;Virtual assistants (Apple Siri, Alexa, Google Assistant)&lt;/li&gt;
&lt;li&gt;Spam filter&lt;/li&gt;
&lt;li&gt;finance&lt;/li&gt;
&lt;li&gt;healthcare&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;AI is still in its early stages of development, but it has the potential to revolutionize the industry. As AI technology continues to improve, we can expect to see more innovative ways to use AI in industry.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
    </item>
    <item>
      <title>Building a Lag-Free Telegram Music Bot for Concurrent Streams in Python</title>
      <dc:creator>Hasindu Nagolla</dc:creator>
      <pubDate>Fri, 10 Jul 2026 11:45:50 +0000</pubDate>
      <link>https://dev.to/hasii/building-a-lag-free-telegram-music-bot-for-concurrent-streams-in-python-444g</link>
      <guid>https://dev.to/hasii/building-a-lag-free-telegram-music-bot-for-concurrent-streams-in-python-444g</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hey DEV community! 👋&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Building a simple Telegram bot is fun, but building a &lt;strong&gt;music streaming bot&lt;/strong&gt; that streams audio to many voice chats at the same time is a completely different challenge.&lt;/p&gt;

&lt;p&gt;For the past year, I have been developing &lt;strong&gt;HasiiMusicBot&lt;/strong&gt;, an open-source Telegram music player that focuses on performance and scalability. I build it to solve many of the problems that existing music bots face.&lt;/p&gt;

&lt;h2&gt;
  
  
  🏗️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Framework:&lt;/strong&gt; Pyrogram (MTProto API)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Voice Streaming:&lt;/strong&gt; PyTgCalls&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Media Processing:&lt;/strong&gt; FFmpeg &amp;amp; yt-dlp&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Database:&lt;/strong&gt; MongoDB with Motor&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deployment:&lt;/strong&gt; Docker &amp;amp; Docker Compose&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🧗‍♂️ Challenges I Solve
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Handling Multiple Streams Without Lag
&lt;/h3&gt;

&lt;p&gt;Many Python music bots have a problem with blocking tasks like downloading audio or generating thumbnails. These tasks can freeze the event loop and cause audio interruptions in all active voice chats.&lt;/p&gt;

&lt;p&gt;I redesigned the bot to use non-blocking asynchronous tasks. This keeps the event loop free and allows the bot to handle concurrent streams smoothly with no audio drops.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Handling yt-dlp Anti-Bot Restrictions
&lt;/h3&gt;

&lt;p&gt;Many developers now face the &lt;strong&gt;"Sign in to confirm you're not a bot"&lt;/strong&gt; error when using yt-dlp with YouTube.&lt;/p&gt;

&lt;p&gt;To reduce this issue, I improved the metadata extraction process and add secure cookie handling. This helps the bot fetch high-quality audio streams more reliably.&lt;/p&gt;

&lt;h2&gt;
  
  
  🤝 Open Source and Contributions
&lt;/h2&gt;

&lt;p&gt;The project is now available under the &lt;strong&gt;GPL-3.0 License&lt;/strong&gt; and is completely open source.&lt;/p&gt;

&lt;p&gt;If you are interested in &lt;strong&gt;Python, audio streaming, or Telegram bots&lt;/strong&gt;, please check out the project.&lt;/p&gt;

&lt;p&gt;🔗 &lt;strong&gt;GitHub Repository:&lt;/strong&gt; &lt;a href="https://github.com/hasindu-nagolla/HasiiMusicBot" rel="noopener noreferrer"&gt;https://github.com/hasindu-nagolla/HasiiMusicBot&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I welcome feedback, code reviews, and contributions. I also added some &lt;code&gt;good first issue&lt;/code&gt; labels for beginners who want to make their first open-source contribution.&lt;/p&gt;

&lt;p&gt;If you like the project, please give it a ⭐ and let me know your thoughts in the comments!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fli28m8nf2jnsbshtr75t.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fli28m8nf2jnsbshtr75t.png" alt="Hasii Music Bot" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>python</category>
      <category>telegram</category>
      <category>opensource</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
