<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Generative AI on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/generative-ai/</link><description>Recent content in Generative AI on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 15 Dec 2025 10:55:52 +0100</lastBuildDate><atom:link href="https://arshadhs.github.io/tags/generative-ai/index.xml" rel="self" type="application/rss+xml"/><item><title>Generative AI</title><link>https://arshadhs.github.io/docs/ai/genai/</link><pubDate>Mon, 15 Dec 2025 10:55:52 +0100</pubDate><guid>https://arshadhs.github.io/docs/ai/genai/</guid><description>&lt;h1 id="generative-ai">
 Generative AI
 
 &lt;a class="anchor" href="#generative-ai">#&lt;/a>
 
&lt;/h1>
&lt;p>&lt;strong>Generative Artificial Intelligence (GenAI)&lt;/strong> refers to a class of AI systems that can &lt;strong>generate new content&lt;/strong> such as text, images, audio, video, or code, rather than only making predictions or classifications.&lt;/p>
&lt;p>GenAI systems learn &lt;strong>patterns and representations from large datasets&lt;/strong> and use them to produce &lt;strong>novel outputs&lt;/strong> that resemble the data they were trained on.&lt;/p>
&lt;hr>
&lt;h2 id="how-generative-ai-differs-from-traditional-ai">
 How Generative AI Differs from Traditional AI
 
 &lt;a class="anchor" href="#how-generative-ai-differs-from-traditional-ai">#&lt;/a>
 
&lt;/h2>
&lt;table>
 &lt;thead>
 &lt;tr>
 &lt;th>Traditional AI&lt;/th>
 &lt;th>Generative AI&lt;/th>
 &lt;/tr>
 &lt;/thead>
 &lt;tbody>
 &lt;tr>
 &lt;td>Predicts or classifies&lt;/td>
 &lt;td>Generates new content&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Task-specific models&lt;/td>
 &lt;td>General-purpose models&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Fixed outputs&lt;/td>
 &lt;td>Open-ended outputs&lt;/td>
 &lt;/tr>
 &lt;tr>
 &lt;td>Often rule-based&lt;/td>
 &lt;td>Data-driven and probabilistic&lt;/td>
 &lt;/tr>
 &lt;/tbody>
&lt;/table>
&lt;hr>
&lt;h2 id="core-idea-of-generative-ai">
 Core Idea of Generative AI
 
 &lt;a class="anchor" href="#core-idea-of-generative-ai">#&lt;/a>
 
&lt;/h2>

&lt;blockquote class='book-hint '>
 &lt;p>&lt;strong>Instead of learning “what label to assign”, Generative AI learns “how data is structured” and then creates new data following that structure.&lt;/strong>&lt;/p></description></item><item><title>Retrieval-Augmented Generation (RAG)</title><link>https://arshadhs.github.io/docs/ai/genai/rag/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/genai/rag/</guid><description>&lt;h1 id="retrieval-augmented-generation-rag">
 Retrieval-Augmented Generation (RAG)
 
 &lt;a class="anchor" href="#retrieval-augmented-generation-rag">#&lt;/a>
 
&lt;/h1>
&lt;p>&lt;strong>Retrieval-Augmented Generation (RAG)&lt;/strong> is a system design pattern that improves an LLM’s answers by:&lt;/p>
&lt;ol>
&lt;li>&lt;strong>Retrieving&lt;/strong> relevant information from an external knowledge source, and then&lt;/li>
&lt;li>&lt;strong>Augmenting&lt;/strong> the LLM prompt with that retrieved context before generating the final response.&lt;/li>
&lt;/ol>
&lt;p>RAG helps an LLM &lt;strong>look things up first&lt;/strong>, then &lt;strong>answer using evidence&lt;/strong>.&lt;/p>
&lt;hr>
&lt;h2 id="why-rag-is-useful">
 Why RAG is Useful
 
 &lt;a class="anchor" href="#why-rag-is-useful">#&lt;/a>
 
&lt;/h2>
&lt;p>RAG is commonly used when:&lt;/p>
&lt;ul>
&lt;li>Your knowledge is in &lt;strong>private documents&lt;/strong> (PDFs, policies, internal wiki)&lt;/li>
&lt;li>You need &lt;strong>up-to-date information&lt;/strong> (things not in the model’s training data)&lt;/li>
&lt;li>You want fewer &lt;strong>hallucinations&lt;/strong> by grounding answers in retrieved sources&lt;/li>
&lt;li>You want &lt;strong>traceability&lt;/strong> (show “where the answer came from”)&lt;/li>
&lt;/ul>
&lt;blockquote class="book-hint info">
&lt;p>RAG does not change the model weights.&lt;br>
It changes what the model &lt;em>sees&lt;/em> at inference time by adding retrieved context.&lt;/p></description></item></channel></rss>