<?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: Pramit Mandal</title>
    <description>The latest articles on DEV Community by Pramit Mandal (@pramit_mandal_81a6a39b6df).</description>
    <link>https://dev.to/pramit_mandal_81a6a39b6df</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%2F3764474%2F7ff12f26-d5bc-46a5-a08f-9745aae9b914.jpg</url>
      <title>DEV Community: Pramit Mandal</title>
      <link>https://dev.to/pramit_mandal_81a6a39b6df</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/pramit_mandal_81a6a39b6df"/>
    <language>en</language>
    <item>
      <title>I built a "Sentient" Portfolio using Llama-3 and React (Generative UI)</title>
      <dc:creator>Pramit Mandal</dc:creator>
      <pubDate>Tue, 10 Feb 2026 14:29:36 +0000</pubDate>
      <link>https://dev.to/pramit_mandal_81a6a39b6df/i-built-a-sentient-portfolio-using-llama-3-and-react-generative-ui-3hdj</link>
      <guid>https://dev.to/pramit_mandal_81a6a39b6df/i-built-a-sentient-portfolio-using-llama-3-and-react-generative-ui-3hdj</guid>
      <description>&lt;p&gt;I got bored of static portfolios. So I built one that thinks.&lt;/p&gt;

&lt;p&gt;Instead of hardcoding a layout, I hooked up my frontend to &lt;strong&gt;Llama-3-70b (via Groq)&lt;/strong&gt;. It analyzes the visitor's intent and physically re-architects the grid using &lt;strong&gt;Framer Motion&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  🧠 How it works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;User Prompt:&lt;/strong&gt; "I want to hire you."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LLM Inference:&lt;/strong&gt; Logic runs on Netlify Functions (&amp;lt;200ms latency via Groq LPU).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State Mutation:&lt;/strong&gt; The AI returns a JSON config that changes the React components from "Explorer Mode" to "Resume Mode."&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  🛡️ The "Janitor" Guardrail
&lt;/h2&gt;

&lt;p&gt;I added a safety layer. If you ask: &lt;em&gt;"I want to hire you as a Janitor,"&lt;/em&gt; the AI detects the context, refuses the prompt with a witty retort, and resets the UI.&lt;/p&gt;

&lt;h2&gt;
  
  
  🛠️ The Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Brain:&lt;/strong&gt; Llama-3-70b (Groq)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend:&lt;/strong&gt; React + Framer Motion + Bento Grids&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend:&lt;/strong&gt; Netlify Functions&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🔗 Try it here
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://pramit-mandal-ai.netlify.app/" rel="noopener noreferrer"&gt;👉 Click here to launch the AI Portfolio&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🐦 Follow the Journey
&lt;/h2&gt;

&lt;p&gt;I'm documenting the build on Twitter: 

&lt;iframe class="tweet-embed" id="tweet-2021216375612518531-239" src="https://platform.twitter.com/embed/Tweet.html?id=2021216375612518531"&gt;
&lt;/iframe&gt;

  // Detect dark theme
  var iframe = document.getElementById('tweet-2021216375612518531-239');
  if (document.body.className.includes('dark-theme')) {
    iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2021216375612518531&amp;amp;theme=dark"
  }





&lt;/p&gt;

&lt;p&gt;Let me know if you can break the prompt injection! 👇&lt;/p&gt;

</description>
      <category>react</category>
      <category>ai</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
