<?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>Forem: Mussadiq Ali</title>
    <description>The latest articles on Forem by Mussadiq Ali (@mussadiq_ali_dev).</description>
    <link>https://forem.com/mussadiq_ali_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%2F3761942%2F1e059012-6ef0-438c-8992-9918fccc9a4e.png</url>
      <title>Forem: Mussadiq Ali</title>
      <link>https://forem.com/mussadiq_ali_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/mussadiq_ali_dev"/>
    <language>en</language>
    <item>
      <title>🔷 What Actually Happens Inside Self-Attention?</title>
      <dc:creator>Mussadiq Ali</dc:creator>
      <pubDate>Sun, 15 Feb 2026 13:54:00 +0000</pubDate>
      <link>https://forem.com/mussadiq_ali_dev/what-actually-happens-inside-self-attention-30o4</link>
      <guid>https://forem.com/mussadiq_ali_dev/what-actually-happens-inside-self-attention-30o4</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.amazonaws.com%2Fuploads%2Farticles%2Fg1my6jn9apo60w50re2w.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.amazonaws.com%2Fuploads%2Farticles%2Fg1my6jn9apo60w50re2w.png" alt=" " width="800" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Self-attention is often explained as “tokens look at each other.”&lt;/p&gt;

&lt;p&gt;But internally, it is a precise two-step mechanism:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1️⃣ Relevance Scoring&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For the current token, the model computes how important every other token in the sequence is.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It asks:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;“Which words in this sentence matter for understanding me?”&lt;/p&gt;

&lt;p&gt;This produces attention scores (via Query–Key similarity).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2️⃣ Combining Information&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Once relevance is determined, the model performs a weighted combination of information from all tokens.&lt;/p&gt;

&lt;p&gt;Important tokens contribute more.&lt;br&gt;
Less relevant ones contribute less.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This produces a new representation that is:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;✔ Context-aware&lt;br&gt;
✔ Meaning-enriched&lt;br&gt;
✔ Sensitive to long-range dependencies&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔬 Intuition&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before attention → a token only knows itself.&lt;br&gt;
After attention → a token knows the entire sentence context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conceptually:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Relevance scoring = deciding who matters&lt;br&gt;
Information combining = learning from them&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This simple mechanism is what allows Transformers to model:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;• Coreference resolution&lt;br&gt;
• Long-distance relationships&lt;br&gt;
• Contextual meaning shifts&lt;br&gt;
• Complex linguistic structure&lt;/p&gt;

&lt;p&gt;Understanding this deeply changes how you view LLMs — they are not memorizing sequences, they are dynamically re-weighting contextual information at every layer.&lt;/p&gt;

&lt;p&gt;Currently exploring transformer internals, scaling behavior, and efficiency trade-offs in modern architectures.&lt;/p&gt;

&lt;p&gt;Open to research discussions on attention mechanisms and efficient model design.&lt;/p&gt;

&lt;p&gt;Image credit: DeepLearning.AI — “How Transformer LLMs Work” course.&lt;/p&gt;

&lt;h1&gt;
  
  
  AI #DeepLearning #Transformers #LLM #MachineLearning #Research #PhD #ArtificialIntelligence
&lt;/h1&gt;

</description>
      <category>ai</category>
      <category>beginners</category>
      <category>nlp</category>
    </item>
    <item>
      <title>Building a RAG-Based AI Chatbot Backend with Node.js (Serverless)</title>
      <dc:creator>Mussadiq Ali</dc:creator>
      <pubDate>Mon, 09 Feb 2026 19:08:09 +0000</pubDate>
      <link>https://forem.com/mussadiq_ali_dev/building-a-rag-based-ai-chatbot-backend-with-nodejs-serverless-2oi2</link>
      <guid>https://forem.com/mussadiq_ali_dev/building-a-rag-based-ai-chatbot-backend-with-nodejs-serverless-2oi2</guid>
      <description>&lt;p&gt;Live API: &lt;a href="https://matechs-backend.vercel.app/api/chat" rel="noopener noreferrer"&gt;https://matechs-backend.vercel.app/api/chat&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tech Stack: Node.js · RAG · Embeddings · Groq LLM · Vercel&lt;/p&gt;

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

&lt;p&gt;Instead of a generic chatbot that hallucinates, I wanted:&lt;/p&gt;

&lt;p&gt;✅ Company-only answers&lt;/p&gt;

&lt;p&gt;✅ No random AI output&lt;/p&gt;

&lt;p&gt;✅ Controlled, safe responses&lt;/p&gt;

&lt;p&gt;So I built a Retrieval-Augmented Generation (RAG) backend.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🏗️ System Architecture&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Here’s the flow:&lt;/p&gt;

&lt;p&gt;Company data stored in a knowledge base (text)&lt;/p&gt;

&lt;p&gt;Data converted into embeddings&lt;/p&gt;

&lt;p&gt;User query converted into an embedding&lt;/p&gt;

&lt;p&gt;Cosine similarity used to find the best match&lt;/p&gt;

&lt;p&gt;Matched context sent to an LLM&lt;/p&gt;

&lt;p&gt;AI generates a response only from that context&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📚 Knowledge Base&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Company information includes:&lt;/p&gt;

&lt;p&gt;Services&lt;/p&gt;

&lt;p&gt;Projects&lt;/p&gt;

&lt;p&gt;Target clients&lt;/p&gt;

&lt;p&gt;Contact details&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This ensures the chatbot:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Knows the business&lt;/p&gt;

&lt;p&gt;Stays on-topic&lt;/p&gt;

&lt;p&gt;Never hallucinates&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🧬 Embeddings&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Generated locally using @xenova/transformers&lt;/p&gt;

&lt;p&gt;Stored as vectors&lt;/p&gt;

&lt;p&gt;No paid embedding APIs&lt;/p&gt;

&lt;p&gt;Works on free-tier hosting&lt;/p&gt;

&lt;p&gt;This keeps costs at $0 for embeddings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🤖 AI Generation&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;LLM: Groq (LLaMA-based)&lt;/p&gt;

&lt;p&gt;Low temperature (less hallucination)&lt;/p&gt;

&lt;p&gt;System prompt strictly enforces context usage&lt;/p&gt;

&lt;p&gt;Confidence threshold fallback:&lt;/p&gt;

&lt;p&gt;“I’ll connect you with our team”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;☁️ Serverless Deployment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Backend deployed on Vercel&lt;/p&gt;

&lt;p&gt;Uses serverless functions&lt;/p&gt;

&lt;p&gt;Environment variables for API keys&lt;/p&gt;

&lt;p&gt;CORS handled for frontend usage&lt;/p&gt;

&lt;p&gt;Production-ready API&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔐 Safety &amp;amp; Reliability&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No training on user data&lt;/p&gt;

&lt;p&gt;No external data leakage&lt;/p&gt;

&lt;p&gt;Context-restricted responses&lt;/p&gt;

&lt;p&gt;Graceful fallback if confidence is low&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🔗 Frontend Integration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The chatbot is fully connected to the frontend website and responds in real time.&lt;/p&gt;

&lt;p&gt;👉 Try it live on the site:&lt;br&gt;
&lt;a href="https://matechssolutions.vercel.app/" rel="noopener noreferrer"&gt;https://matechssolutions.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🧩 Final Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This project demonstrates:&lt;/p&gt;

&lt;p&gt;Real-world RAG implementation&lt;/p&gt;

&lt;p&gt;AI + web integration&lt;/p&gt;

&lt;p&gt;Serverless backend design&lt;/p&gt;

&lt;p&gt;Production deployment practices&lt;/p&gt;

&lt;p&gt;If you’re building safe AI chatbots for businesses, this pattern works extremely well.&lt;/p&gt;

&lt;p&gt;About me&lt;/p&gt;

&lt;p&gt;I’m a full-stack developer working on real-world web and AI systems, including RAG-based chatbots and production deployments.&lt;/p&gt;

&lt;p&gt;🔗 Portfolio: &lt;a href="https://mussadiqali15671.github.io/my-portfolio/" rel="noopener noreferrer"&gt;https://mussadiqali15671.github.io/my-portfolio/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you’re building something similar or want to discuss architecture, feel free to reach out.&lt;/p&gt;

</description>
      <category>rag</category>
      <category>ai</category>
      <category>learning</category>
      <category>nlp</category>
    </item>
    <item>
      <title>Building a Modern 3D Company Website with SEO &amp; AI Integration</title>
      <dc:creator>Mussadiq Ali</dc:creator>
      <pubDate>Mon, 09 Feb 2026 19:01:02 +0000</pubDate>
      <link>https://forem.com/mussadiq_ali_dev/building-a-modern-3d-company-website-with-seo-ai-integration-198c</link>
      <guid>https://forem.com/mussadiq_ali_dev/building-a-modern-3d-company-website-with-seo-ai-integration-198c</guid>
      <description>&lt;p&gt;Live Demo: &lt;a href="https://matechssolutions.vercel.app/" rel="noopener noreferrer"&gt;https://matechssolutions.vercel.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Tech Stack: Vite · React · TypeScript · Framer Motion · SEO · Vercel&lt;/p&gt;

&lt;p&gt;👋 Introduction&lt;/p&gt;

&lt;p&gt;I recently built a production-ready company website for MATechs Solutions, focused on:&lt;/p&gt;

&lt;p&gt;⚡ Performance&lt;/p&gt;

&lt;p&gt;🎨 3D &amp;amp; animated UI&lt;/p&gt;

&lt;p&gt;🔍 Strong SEO&lt;/p&gt;

&lt;p&gt;🤖 AI chatbot integration&lt;/p&gt;

&lt;p&gt;This post covers the frontend architecture, design decisions, and SEO strategy.&lt;/p&gt;

&lt;p&gt;🧱 Frontend Architecture&lt;/p&gt;

&lt;p&gt;The frontend is built using Vite + React + TypeScript, giving:&lt;/p&gt;

&lt;p&gt;Fast dev server&lt;/p&gt;

&lt;p&gt;Optimized production builds&lt;/p&gt;

&lt;p&gt;Type-safe components&lt;/p&gt;

&lt;p&gt;Pages Implemented&lt;/p&gt;

&lt;p&gt;Home (3D hero + animations)&lt;/p&gt;

&lt;p&gt;Services&lt;/p&gt;

&lt;p&gt;Projects&lt;/p&gt;

&lt;p&gt;About&lt;/p&gt;

&lt;p&gt;Contact&lt;/p&gt;

&lt;p&gt;Routing is handled via React Router, with Framer Motion powering page transitions.&lt;/p&gt;

&lt;p&gt;🎨 UI &amp;amp; UX Highlights&lt;/p&gt;

&lt;p&gt;Glassmorphism-based UI&lt;/p&gt;

&lt;p&gt;3D animated backgrounds&lt;/p&gt;

&lt;p&gt;Floating action buttons (Chatbot, WhatsApp, Contact)&lt;/p&gt;

&lt;p&gt;Smooth enter/exit animations&lt;/p&gt;

&lt;p&gt;Responsive across all screen sizes&lt;/p&gt;

&lt;p&gt;I focused on keeping the UI modern but readable, especially for business clients.&lt;/p&gt;

&lt;p&gt;🤖 AI Chatbot (Frontend Integration)&lt;/p&gt;

&lt;p&gt;The chatbot UI is:&lt;/p&gt;

&lt;p&gt;Floating&lt;/p&gt;

&lt;p&gt;Animated&lt;/p&gt;

&lt;p&gt;Opens automatically on first visit&lt;/p&gt;

&lt;p&gt;Styled with glow + blur effects&lt;/p&gt;

&lt;p&gt;Connected to a real AI backend (covered in Part 2)&lt;/p&gt;

&lt;p&gt;Key UX features:&lt;/p&gt;

&lt;p&gt;Auto greeting on first visit&lt;/p&gt;

&lt;p&gt;Outside-click close&lt;/p&gt;

&lt;p&gt;Typing indicators&lt;/p&gt;

&lt;p&gt;Clean message formatting (headings, bullet points)&lt;/p&gt;

&lt;p&gt;🔍 SEO Implementation (Very Important)&lt;/p&gt;

&lt;p&gt;This wasn’t just a “nice-looking” site — SEO was a core goal.&lt;/p&gt;

&lt;p&gt;SEO Work Done&lt;/p&gt;

&lt;p&gt;Dynamic page titles &amp;amp; meta descriptions&lt;/p&gt;

&lt;p&gt;Open Graph tags (LinkedIn, WhatsApp, Facebook)&lt;/p&gt;

&lt;p&gt;Twitter Cards&lt;/p&gt;

&lt;p&gt;Sitemap.xml&lt;/p&gt;

&lt;p&gt;robots.txt&lt;/p&gt;

&lt;p&gt;Canonical URLs&lt;/p&gt;

&lt;p&gt;Google Search Console integration&lt;/p&gt;

&lt;p&gt;SPA routing fixes for Vercel&lt;/p&gt;

&lt;p&gt;Target keywords include:&lt;/p&gt;

&lt;p&gt;website development, web developer, AI solutions, chatbot, SaaS, full-stack development&lt;/p&gt;

&lt;p&gt;☁️ Deployment&lt;/p&gt;

&lt;p&gt;Hosted on Vercel&lt;/p&gt;

&lt;p&gt;SPA-safe routing&lt;/p&gt;

&lt;p&gt;SEO-friendly structure&lt;/p&gt;

&lt;p&gt;Fast global CDN&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>ai</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>How I Built My Full Stack &amp; AI Developer Portfolio with React Portfolio: https://mussadiqali15671.github.io/my-portfolio/</title>
      <dc:creator>Mussadiq Ali</dc:creator>
      <pubDate>Mon, 09 Feb 2026 12:12:33 +0000</pubDate>
      <link>https://forem.com/mussadiq_ali_dev/how-i-built-my-full-stack-ai-developer-portfolio-with-react-portfolio-5aj4</link>
      <guid>https://forem.com/mussadiq_ali_dev/how-i-built-my-full-stack-ai-developer-portfolio-with-react-portfolio-5aj4</guid>
      <description></description>
      <category>webdev</category>
      <category>ai</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
