Talking Tokens
Ever wondered how AI, from creating images to writing text, actually “thinks”? It’s not a monolithic brain, but rather an intricate network built from countless tiny components. To truly grasp AI’s capabilities, we need to understand its fundamental building blocks: tokens. Think of the human brain. Its astounding ability to process information and generate thoughts…
Splitting Up Without Breaking Up: Partitioning Your Database with Style
WHY In the high-stakes world of database management, sometimes the healthiest relationship is one with boundaries. If your database is starting to feel overwhelmed, sluggish, or just plain unmanageable, it might be time for the “we need to talk” conversation. But don’t worry—this isn’t a breakup; it’s a strategic restructuring that will make your relationship…
Sharding is Caring: Distributing the Load for Database Health
Definition of the word shard /ʃɑːd/ noun a piece of broken ceramic, metal, glass, or rock, typically having sharp edges.”shards of glass flew in all directions” Why In today’s data-driven world, success often means rapid growth – and with that growth comes increasingly massive datasets. Traditional database setups eventually hit performance walls: queries slow down,…
Service Swaps: Your Ticket to Clean Code
Think of your local transit agency as a dependency container. You just want to get from Point A to Point B, right? If the train’s out of commission, the agency swaps in a replacement bus, no problem. You don’t really care how they get you there, just that you arrive. Disclaimer: Analogies are helpful, but…
Re-ranking in Vector search
Analogy to define the problem Imagine a child has a big box of Lego bricks of various colors. They’re asked to build a tower, but with a special rule: the bricks that are most similar to the color red should be placed at the top, and the bricks that are least similar to red should…
Augmenting part of RAG
What Since “augmenting” implies enhancing or expanding something, it naturally suggests that the LLM — already valuable on its own — serves as the foundation for this improvement. By feeding it additional context, its responses become more accurate, relevant, and informed. Why How This is by no means a comprehensive guide — rather, it’s a…
Vector Search, R of the RAG
What A vector is a quantity that has both magnitude (or length) and direction. A vector might represent the features of an image or a piece of text. In this context, the numbers within the vector represent values of those features. Why Imagine you’re searching for a car with a red color. In a traditional…
Syntactic sugar of async await in JavaScript
Most advances in modern programming languages, are striving towards making code more human readable. Some people call these features syntactic sugar, because often it doesn’t really change the way the runtime internally handles it. One such feature in JavaScript is async await. Lets first look at the simple diagram, comparing synchronous vs asynchronous calls. Courtesy…
The point of Svelte stores
Why In single-page applications, different pages are constructed using components. Often you need to share some data across them. Also, after the initial server render further interactions happen on the client-side, so, you need some way to store the initial state you got from the server. What Many frameworks have their respective recommended way of…
Using emojis to understand JS Spread and Destructuring
This is in a quest to explain things to a five-year-old(myself). And what better way than to have some pictures than text. Spread (…) Prefixing an array, string, or an object with spread(…) when calling a function or as part of an assignment will expand the array elements, in case of object into key-value pairs.…
Something went wrong. Please refresh the page and/or try again.
Follow My Blog
Get new content delivered directly to your inbox.