<?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"><channel><title><![CDATA[Absorbing Knowledge On AI]]></title><description><![CDATA[Absorbing Knowledge On AI]]></description><link>https://piyushkc241.hashnode.dev</link><image><url>https://cdn.hashnode.com/res/hashnode/image/upload/v1593680282896/kNC7E8IR4.png</url><title>Absorbing Knowledge On AI</title><link>https://piyushkc241.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 04:10:17 GMT</lastBuildDate><atom:link href="https://piyushkc241.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Decoding AI Jargons]]></title><description><![CDATA[Imagine having a conversation with a friend who's an expert in just about everything. You ask a question, and they respond with a thoughtful and informative answer that makes you go "wow, I didn't kno]]></description><link>https://piyushkc241.hashnode.dev/decoding-ai-jargons</link><guid isPermaLink="true">https://piyushkc241.hashnode.dev/decoding-ai-jargons</guid><category><![CDATA[AI]]></category><category><![CDATA[ChaiCode]]></category><category><![CDATA[learning]]></category><category><![CDATA[Learning Journey]]></category><category><![CDATA[llm]]></category><category><![CDATA[chatgpt]]></category><category><![CDATA[gpt]]></category><category><![CDATA[transformer]]></category><dc:creator><![CDATA[Piyush Chauhan]]></dc:creator><pubDate>Thu, 08 Oct 2026 09:38:06 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6ac64ead971136340615b3da/2ae03b33-b76e-41c5-be9c-85441b7d8664.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Imagine having a conversation with a friend who's an expert in just about everything. You ask a question, and they respond with a thoughtful and informative answer that makes you go "wow, I didn't know that!". <em>That's what ChatGPT is - a computer program that uses AI to have conversations with humans in a way that feels natural and intuitive.</em></p>
<p><em>But have you wondered how it actually works? How does it understand what you’re asking, and how does it come up with a response that’s so relevant and helpful? In this blog, we’ll take a peek under the hood of ChatGPT and explore the technical details of how it works in simplest terms.</em></p>
<h3>What is ChatGPT?</h3>
<p>Think of ChatGPT like a <em>super smart parrot</em> that has read millions of books, websites, conversations, articles, and more. It doesn't understand the real world like humans do, but it's insanely good at mimicking human language.</p>
<p>ChatGPT is the super smart parrot - except instead of copying voices, it's trained to predict the next possible word in a sentence, over and over again.</p>
<h3>What is GPT?</h3>
<p>GPT stands for Generative Pre-trained Transformer. It's a LLM trained on massive amounts of text, and it powers Gen-AI products like ChatGPT.</p>
<ul>
<li><p>Generative: it can generate new text.</p>
</li>
<li><p>Pre-trained: before it ever chats with you, it's trained on massive text from the internet.</p>
</li>
<li><p>Transformer: it's a special kind of architecture - a kind of blueprint - it's used in modern AI to handle large chunks of text and figure out what's important.</p>
</li>
</ul>
<p><em>GPT</em>: It predicts the next token based on patterns learned during training, so it only knows things up to its knowledge cutoff. Ask it "Tell me today's weather" and it can't know, because it has no real-time data</p>
<p><em>ChatGPT</em>: is the product built on top of GPT: a chat interface, extra training to follow instructions, and optional tools like web search. Ask it the same question and it can look up the weather and answer, e.g. "Today's weather in Uttar Pradesh is sunny."</p>
<h3>How Transformer works?</h3>
<img src="https://cdn.hashnode.com/uploads/covers/6ac64ead971136340615b3da/58fa8919-4a82-4126-9cc9-b6b4744a1c18.webp" alt="" style="display:block;margin:0 auto" />

<p><em><strong>1. Input:</strong></em> A user types a message or question into a chat interface.</p>
<p>Example: "How are you?".</p>
<p><em><strong>2. Tokenization:</strong></em> Now the input is divided into numbers of tokens.</p>
<p>Example: ["How", "are", "you", "?"] - 4 tokens.</p>
<pre><code class="language-python">#make your own tokenizer
tokenizer={'A':1, 'a':111, 'B':2, 'b':222, 'C':3, 'c':333, 'D':4, 'd':444, 'E':5, 'e':555, 'F':6, 'f':666, 'G':7, 'g':777, 'H':8, 'h':888, 'I':9, 'i':999, 'J':10, 'j':1010, 'K':11, 'k':1111, 'L':12, 'l':1212, 'M':13, 'm':1313, 'N':14, 'n':1414, 'O':15, 'o':1515, 'P':16, 'p':1616, 'Q':17, 'q':1717, 'R':18, 'r':1818, 'S':19, 's':1919, 'T':20, 't':2020, 'U':21, 'u':2121, 'V':22, 'v':2222, 'W':23, 'w':2323, 'X':24, 'x':2424, 'Y':25, 'y':2525, 'Z':26, 'z':2626, ' ':0, ',':27, '.':28, '?':29, ':':30, ';':31, 'क':32, 'ख':33, 'ग':34, 'घ':35, 'ङ':36, 'च':37, 'छ':38, 'ज':39, 'झ':40, 'ञ':41, 'ट':42, 'ठ':43, 'ड':44, 'ढ':45, 'ण':46, 'त':47, 'थ':48, 'द':49, 'ध':50, 'न':51, 'प':52, 'फ':53, 'ब':54, 'भ':55, 'म':56, 'क़':57, 'ख़':58, 'ग़':59, 'ज़':60, 'ड़':61, 'ढ़':62, 'फ़':63, 'य':64, 'र':65, 'ल':66, 'ळ':67, 'व':68, 'ह':69, 'श':70, 'ष':71, 'स':72, 'ऱ':73, 'ऴ':74, 'अ':75, 'आ':76, 'इ':77, 'ई':78, 'उ':79, 'ऊ':80, 'ऋ':81, 'ॠ':82, 'ऌ':83, 'ॡ':84, 'ए':85, 'ऐ':86, 'ओ':87, 'औ':88, '०':89, '१':90, '२':91, '३':92, '४':93, '५':94, '६':95, '७':96, '८':97, '९':98, '0':2986387, '1':987654, '2':98765, '3':98754, '4':972352765, '5':347384638364, '6':87648764864, '7':777777, '8':8888888, '9':9999999 }
class encoder:
    def encode(str):
        encoded=[]
        for char in str:
            encoded.append(tokenizer[char])
        return encoded
class decoder:
    def decode(arr):
        decoded=[]
        for num in arr:
            decoded.append(next(k for k,v in tokenizer.items() if v==num))
        return "".join(decoded)

#converting string to tokens
tokens=encoder.encode("hey how are you?")
print(tokens)

#converting tokens back to string
s=decoder.decode(tokens)
print(s)
</code></pre>
<blockquote>
<p>You can try : <a href="https://tiktokenizer.vercel.app/">Tokenization</a></p>
</blockquote>
<p><em><strong>3. Vector Embeddings:</strong></em> As the machines can't understand human language directly, so we convert the sequence of tokens into numerical vectors or numbers simply which captures context or semantic meaning of each token. These embeddings allow model to process textual data mathematically, which helps it to understand the details and relationship of language. Similar meanings will have similar embeddings.</p>
<p>Example: (A) - "How" = [-0.004, -0.011, ..., 0.014], "are" =[0.013, 0.023, ..., -0.024], "you"=[0.201, 0.232, ..., 0.121], "?"=[0.121, 0.012, ..., -0.011].</p>
<p>(B) - the word "Good" will be represented as the set of numbers that capture its positive sentiments and common use as an adjective. That means it will be placed close to words which also have similar-meaning like "great" or "pleasant", allowing the model to understand that these words are related.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6ac64ead971136340615b3da/99157855-65c2-439e-8c26-d582e43461bb.webp" alt="" style="display:block;margin:0 auto" />

<img src="https://cdn.hashnode.com/uploads/covers/6ac64ead971136340615b3da/26f532e6-955b-4e04-83f6-227f146a9dbe.webp" alt="" style="display:block;margin:0 auto" />

<p><em><strong>4. Positional Encoding:</strong></em> This is also included to help the model understand the position of a token within a sequence, ensuring the order and relative positions of tokens are understood and considered during processing.</p>
<p>Example: "The cat sat on the mat" and "The mat sat on the cat." are entirely different. - position matters!</p>
<p><em><strong>5. Encoder:</strong></em> The encoder helps process and prepare the input data. The encoder contains two mechanisms: the <strong>self-attention</strong> and <strong>feed-forward</strong> mechanisms.</p>
<p>The <strong>self-attention mechanism</strong> relates every word in the input sequence to every other word, allowing the process to focus on the most important words. It's like giving each word a score that represents how much attention it should pay to every other word in the sentence.</p>
<p>The <strong>feed-forward mechanism</strong> is like your fine-tuner. It takes the scores from the self-attention process and further refines the understanding of each word. This helps optimize the learning process.</p>
<p><em><strong>6. Decoder:</strong></em> After the encoder has done its part, the decoder takes the stage. It uses its own previous outputs — the output embeddings from the previous time step of the decoder — and the processed input from the encoder.</p>
<p>This dual input strategy ensures that the decoder takes into account both the original data and what it has produced thus far. The goal is to create a contextually appropriate final output sequence.</p>
<p><em><strong>7. Output:</strong></em> At this stage we have got a new sequence of tokens representing the final output.</p>
<p>It's just like the final roar of victory from Optimus Prime after a hard-fought battle!</p>
<h3>Some Terms:</h3>
<ul>
<li><p><em><strong>Softmax function:</strong></em> The softmax function takes a set of numbers and converts them into a set of probabilities, where the probabilities add up to 1. The model uses it to choose the next token.</p>
<img src="https://cdn.hashnode.com/uploads/covers/6ac64ead971136340615b3da/091343d8-afbc-4ef2-837a-e065052e23f0.png" alt="" style="display:block;margin:0 auto" />
</li>
<li><p><em><strong>Multi-head attention:</strong></em> The self-attention mechanism is implemented using multi-head attention, <strong>which allows the model to attend to multiple parts of the input sequence simultaneously.</strong></p>
</li>
<li><p><em><strong>Temperature:</strong></em> Temperature in AI models controls how random or creative their text generation is. Low temperatures (≈0–0.3) make outputs precise and factual, while higher ones (≈0.9–1.5) add creativity and unpredictability.</p>
</li>
<li><p><em><strong>Knowledge cutoff:</strong></em> It refers to the point in time after which an AI model has not been trained on new data.</p>
</li>
<li><p><em><strong>Vocab size:</strong></em> It refers to the total number of unique tokens (words, subwords, or characters) that an AI model can recognize.</p>
</li>
</ul>
<p><strong>In a nutshell:</strong> ChatGPT is a product built on GPT, and GPT is built on the Transformer. Text is split into tokens, turned into numbers, run through attention to figure out what matters, and the model predicts the next token over and over until the answer is complete. Terms like softmax, temperature, and vocab size are the knobs and building blocks behind that process.</p>
]]></content:encoded></item></channel></rss>