<?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 Oreoluwa Olajide on Medium]]></title>
        <description><![CDATA[Stories by Oreoluwa Olajide on Medium]]></description>
        <link>https://medium.com/@oreoluwasimi02?source=rss-5fef911cd2a5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WaocIvKt7hE78mPsWm0npA.jpeg</url>
            <title>Stories by Oreoluwa Olajide on Medium</title>
            <link>https://medium.com/@oreoluwasimi02?source=rss-5fef911cd2a5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 11:14:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oreoluwasimi02/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[Creating my Personal GPT]]></title>
            <link>https://medium.com/@oreoluwasimi02/creating-my-personal-gpt-9b3c7b68d9d8?source=rss-5fef911cd2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b3c7b68d9d8</guid>
            <category><![CDATA[gpt]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[Oreoluwa Olajide]]></dc:creator>
            <pubDate>Wed, 08 May 2024 21:33:10 GMT</pubDate>
            <atom:updated>2024-05-08T21:33:10.390Z</atom:updated>
            <content:encoded><![CDATA[<p>I had the privilege of attending the 83rd PyData London Meetup, where one of the speakers delved into the fascinating topic “The Future of AI: Open source Large Language Models (LLMs).” His presentation shed light on the accessibility, innovation, inclusivity, and adaptability inherent in OpenSource LLMs, offering valuable insights into their potential. This discussion inspired me to explore the realm of Open Source LLMs by creating my own personal GPT using <strong>Ollama</strong> and <strong>llama3:8b</strong>.</p><p>Ollama stands out as a remarkable tool that empowers users to deploy open-source large language models (LLMs) directly on their local machines. It boasts a user-friendly API for effortlessly creating, running, and managing models, alongside a repository of LLMs that can be seamlessly integrated into various projects. Due to my Laptop’s RAM constraints I needed to work with a model which would process swiftly when running inference. Hence, I opted to work with the <strong>llama3:8b</strong> model, ensuring optimal performance and resource utilisation</p><p>In the course of this project, I leveraged an array of frameworks and tools to bring my vision to life. I employed Next.js, a powerful framework built on top React, to streamline development. Additionally, I utilized TypeScript for robust type-checking, Tailwind CSS for styling, Shadcn UI for enhancing user interface elements, and Clerk for seamless authentication integration.</p><p>The workflow of my personal GPT is quite simple. Users input their prompts, triggering a call to Ollama’s endpoint with <strong>llama3:8b</strong> specified as the model. The resulting response is a json object which is parsed and passed into my react component to render the content of the response on the screen. To improve the conversational experience, I used the context parameter provided by Ollama to pass a context to the request body. This helps to keep a short-term conversational memory.</p><p><em>Sample request body</em></p><pre>const requestBody: RequestBody = {<br>model: &quot;llama3:8b&quot;,<br>prompt: text,<br>stream: false,<br>context: context<br>};</pre><p>I wanted my Personal GPT to have some of the features that ChatGPT has so I implemented a copy to clipboard function as well as a text to speech function. Additionally, I incorporated the React Markdown Component to properly render the markdown-formatted part of the content. I incorporated the Rehype Highlight plugin to introduce syntax highlighting to code blocks.</p><p>See a demo of my GPT below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VYkJGXlpo3rM8YOuhT46sQ.gif" /></figure><p>In essence, my journey into the world of Open Source LLMs and the creation of my personal GPT has not only broadened my understanding of AI technologies but also highlighted the potential of open-source tools in shaping the future of intelligent computing.</p><p>I hope that this inspires you to explore LLMs. Here is a <a href="https://github.com/Oreoluwasimi/My-Gpt">link</a> to the github repository.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b3c7b68d9d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Journey to Writing Clean Code]]></title>
            <link>https://medium.com/@oreoluwasimi02/my-journey-to-writing-clean-code-612340d7e3dc?source=rss-5fef911cd2a5------2</link>
            <guid isPermaLink="false">https://medium.com/p/612340d7e3dc</guid>
            <category><![CDATA[solid-principles]]></category>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Oreoluwa Olajide]]></dc:creator>
            <pubDate>Thu, 23 Nov 2023 13:39:39 GMT</pubDate>
            <atom:updated>2023-11-23T13:39:39.043Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*idGPQwpIzDbNY4U_.jpg" /></figure><p>Recently, I’ve delved into the art of writing clean code — code that is not only technically sound but also easy to read, understand, and maintain. Clean code matters, as messy, unorganised code is often referred to as “Smelly code,” and I’ve experienced firsthand the challenges it poses. This realisation has fueled my commitment to learning the principles of clean coding and ensuring that I write clean code from the start.</p><p>While perfection is elusive in coding, the concept of Refactoring provides a pathway for improvement without compromising functionality. Two fundamental principles guiding clean code are DRY (Do not repeat yourself) and SOLID. DRY emphasises the importance of reusable functions, reducing repetition across code blocks.</p><p>SOLID, on the other hand, encapsulates a set of principles:</p><p>The “S” aims for shorter, concise classes handling only what is necessary.</p><p>The “O” encourages writing extensible classes for polymorphism rather than modifying existing ones, promoting maintainability.</p><p>The “L” suggests that a derived class should be able to perform everything its base class can.</p><p>The “I” advises against forcing classes to implement unnecessary functionalities, promoting the creation of specific interfaces that classes can selectively implement.</p><p>While “D” (Dependency Inversion) might be challenging initially, it ultimately emphasises designing code for flexibility and scalability, minimising dependencies on specific implementations.</p><p>Beyond these principles, proper naming and documentation play crucial roles in code cleanliness. Descriptive variable and function names enhance code readability, reducing the need for additional comments. Documentation, through README files and comments, further aids in understanding the codebase.</p><p>In conclusion, the decision to write code that others will appreciate is a valuable commitment. Continuous learning and improvement in coding practices ensure that your code remains not only functional but also a pleasure for others to work with.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=612340d7e3dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>