sagarshiroya.hashnode.devPower of JavaScript's this keyword 1. this in global context // `this` inside global space console.log(this); // global object Javascript not only runs on browser. It runs on many different devices and environments as well as on node.7h ago·9 min read
sagarshiroya.hashnode.devExplaining Vector Embeddings to My Mom (Indian Style)Imagine we’re in D-Mart on a Sunday. It’s crowded, there are hundreds of products, and we’re trying to find exactly what we need without wasting time. That’s what Vector Embeddings help computers do, find things fast by knowing how they’re related. ...Aug 15, 2025·2 min read
sagarshiroya.hashnode.devTokenization in AI: A Simple Guide for FreshersWhen you first step into the world of Artificial Intelligence (AI) and Natural Language Processing (NLP), you’ll hear a term over and over again — tokenization. It might sound complex, but it’s actually one of the simplest and most important concepts...Aug 15, 2025·3 min read
sagarshiroya.hashnode.dev🧸 Explaining GPT to a 5-Year-OldImagine you have a magic talking teddy bear. You can ask it anything—“Tell me a bedtime story about dinosaurs,” “What’s 2 + 2?”, or even “Can you make a poem about my cat eating pizza?”—and it will answer you right away. That’s kind of what GPT is. B...Aug 15, 2025·2 min read
sagarshiroya.hashnode.devHow to Turn a Standard AI Model into a “Thinking” Machine with Chain-of-Thought PromptingAI is powerful - but sometimes it feels like it’s just spitting answers instead of actually thinking through problems.You ask a complex question, and the reply is short, rushed, or even wrong. What if you could make a standard AI model think like a r...Aug 15, 2025·3 min read