Arun Dobriyal·Sep 15How to bring down your AI bill when building agents?A practical guide to Agentic builders on what cost savings actually work for production agents.
Arun Dobriyal·Sep 3Stop Swapping Models Mid-Conversation!Why “just downgrade to Sonnet halfway” is one of the worst routing ideas — and the narrow set of times it actually works.
Arun Dobriyal·Aug 29Contrastive Learning, InfoNCE, and Why Two-Tower Systems Train Their Own EmbeddingsEvery search or recommendation system hits the same wall eventually. You’ve got a query, ten million documents, and you need the top twenty…
Arun Dobriyal·Aug 25Why do transformers use sine and cosine for positional encoding?A friend of mine asked me a question I thought I’d internalized earlier this year:
Arun Dobriyal·Aug 24100K concurrent Virtual threads on 1 CPU coreI’ve read the Project Loom (Java virtual threads) pitch a dozen times. I wanted to confirm how far I could go with Virtual threads and…
Arun Dobriyal·Aug 2210K Threads Took Down My Mac. 1M Coroutines Didn’t Notice.I set out to answer a boring question: if I have a lot of things to wait on, what primitives should I use?
Arun Dobriyal·Aug 20How to add 3M entries in 1 second in a single Redis node!I’ve used Redis for years — cache here, session store there, rate limiter somewhere else. Never once had I sat down and asked: how fast can…
Arun Dobriyal·Apr 23, 2025Why is Redis so fast?𝗟𝗲𝘁’𝘀 𝗱𝗲𝗳𝗶𝗻𝗲 𝗳𝗮𝘀𝘁, are we talking about latency, throughput?
Arun Dobriyal·Apr 15, 2025Model Context Protocol and how it worksAnthropic recently launched Model Context Protocol, which has led to a lot of frenzy. Thist post is set out to explain how it works.
Arun Dobriyal·Mar 20, 2025Two tower model for Content basseHow does Two tower model in Content ranking (used by the likes of Meta, Youtube, Netflix, Amazon, Snap, TikTok) work?