<?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: Nemanja</title>
    <description>The latest articles on DEV Community by Nemanja (@ninkovic_dev).</description>
    <link>https://dev.to/ninkovic_dev</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1387262%2F5c0d5efc-8fef-4081-9fb3-31a180210fa3.png</url>
      <title>DEV Community: Nemanja</title>
      <link>https://dev.to/ninkovic_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ninkovic_dev"/>
    <language>en</language>
    <item>
      <title>Hello world of Generative AI - how to build a RAG (Retrieval Augmented Generation) from scratch</title>
      <dc:creator>Nemanja</dc:creator>
      <pubDate>Wed, 27 Mar 2024 00:07:19 +0000</pubDate>
      <link>https://dev.to/ninkovic_dev/hello-world-of-generative-ai-how-to-build-a-rag-retrieval-augmented-generation-from-scratch-2260</link>
      <guid>https://dev.to/ninkovic_dev/hello-world-of-generative-ai-how-to-build-a-rag-retrieval-augmented-generation-from-scratch-2260</guid>
      <description>&lt;p&gt;Hi folks 🧙‍♂️,&lt;/p&gt;

&lt;p&gt;In this blog post series we are going to build a system called RAG which stands for Retrieval Augmented Generation. It's considered a Hello world in Generative AI (although a bit more complex version of it :) ). &lt;/p&gt;

&lt;p&gt;A lot of companies are exploring Generative AI as a technology and RAG is a great starting point because you get to combine your internal company documents with large language model capabilities such as ChatGPT.&lt;/p&gt;

&lt;p&gt;Seeing AI taking over the world by storm, we as engineers need to be familiar with the main concepts. There are many libraries out there that can build a RAG for you, but they also hide a lot of details thus why I wanted to take a different approach and build a bare-bones RAG system without any libraries - just Python and OpenAI. The main goal is to learn the concepts without getting lost in the weeds.&lt;/p&gt;

&lt;p&gt;Here are the two blogs posts with all the code included:&lt;br&gt;
&lt;a href="https://ninkovic.dev/blog/2024/rag-from-scratch-part-1" rel="noopener noreferrer"&gt;RAG from scratch - part 1&lt;/a&gt;&lt;br&gt;
&lt;a href="https://ninkovic.dev/blog/2024/rag-from-scratch-part-2" rel="noopener noreferrer"&gt;RAG from scratch - part 2&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Our RAG system is going to use official company documents from &lt;a href="https://handbook.gitlab.com/" rel="noopener noreferrer"&gt;Gitlab and their Handbook.&lt;/a&gt; Here is how the final product looks like.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuy1p2uoyjsar3ozjy97w.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuy1p2uoyjsar3ozjy97w.gif" alt="RAG system over Gitlab handbook documents"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is my first post on Dev.to so I'm happy to hear any feedback. I'm planning to write more around GenerativeAI, so if there is a topic you want to hear more about, please reach out.&lt;/p&gt;

</description>
      <category>chatgpt</category>
      <category>generativeai</category>
      <category>python</category>
    </item>
  </channel>
</rss>
