# AI and software engineering articles

Source: https://krishparekhdev.com/blog

- [Sovereign RAG: data sovereignty on AWS](https://krishparekhdev.com/blog/sovereign-rag/index.md): Explore data sovereignty in a Sydney-region RAG system: regional Bedrock inference, S3 Vectors, IAM controls and interactive AWS architecture explanations.

- [Wayfinder: A2A agents and long-term memory](https://krishparekhdev.com/blog/wayfinder/index.md): Explore A2A agent communication and long-term AgentCore memory in Wayfinder, with interactive examples, architecture diagrams and links to the AWS services.

- [Transformer attention from first principles](https://krishparekhdev.com/blog/attention/index.md): Understand transformer attention with interactive QKV projections, softmax, causal masks and multi-head diagrams, with worked examples and NumPy/PyTorch code.

- [Inside Cursor's Git Host](https://krishparekhdev.com/blog/cursor-origin-git-s3/index.md): Origin stores git as a log in S3, ordered by one conditional write. 120 pushes a second, 100 replicas, and the trade-offs against GitHub Spokes.

- [Backpropagation from first principles](https://krishparekhdev.com/blog/backpropagation/index.md): Learn backpropagation with interactive gradient diagrams, the chain rule and worked neural network examples. Check the calculations using finite differences.

- [Evaluating your RAG pipeline](https://krishparekhdev.com/blog/rag-evaluation-deepeval/index.md): Read 50 to 100 real traces, build a golden dataset, then score retrieval and generation separately with five DeepEval metrics for RAG pipelines.

- [API gateways for LLM calls](https://krishparekhdev.com/blog/llm-api-gateway/index.md): Why retries fail on a 429 rate limit, and how Portkey or LiteLLM add fallbacks, cooldowns and caching. Semantic cache only applies under 8,191 tokens.

- [Guardrails for RAG](https://krishparekhdev.com/blog/rag-guardrails-nemotron/index.md): Put an 8B Nemotron safety classifier in front of your 70B model. Input, retrieval and output rails in NeMo Guardrails, with YAML configs for RAG.

- [Knapsack Maze with Partial Information](https://krishparekhdev.com/blog/knapsack-maze-with-partial-information/index.md): Knapsack-Maze: A technical deep dive into BFS, probability, and dynamic programming for optimal solutions.

- [Build a Discord bot with Node.js](https://krishparekhdev.com/blog/discord-bot-with-nodejs/index.md): Discover the ultimate guide to creating a Discord bot using Node.js in our comprehensive blog.

- [Bias Variance Tradeoff](https://krishparekhdev.com/blog/bias-variance-tradeoff/index.md): Unveil the secrets to perfecting machine learning algorithms with our deep dive into the Bias-Variance Tradeoff.

- [Gradient Descent](https://krishparekhdev.com/blog/gradient-descent/index.md): Discover the power of Gradient Descent in AI. Gain insights into its intuition, formula, and learn how to implement it.

- [The Art of Context Switching : Maximizing OS Efficiency](https://krishparekhdev.com/blog/the-art-of-context-switching-maximizing-os-efficiency/index.md): Explore how you can maximize your operating system's performance with our deep dive into Context Switching. Learn how this core OS concept can be optimized.

- [Linear Regression: Everything You Need to Know](https://krishparekhdev.com/blog/linear-regression-everything-you-need-to-know/index.md): Discover the power of Linear Regression, a popular supervised algorithm. Learn techniques to improve your model's accuracy and enhance your decisions

- [Firebase Email/Password Authentication: An In-Depth Guide for Android Developers using Kotlin](https://krishparekhdev.com/blog/firebase-emailpassword-authentication-an-in-depth-guide-for-android-developers-using-kotlin/index.md): This comprehensive guide on Firebase Email Authentication covers everything from understanding Firebase's handling of authentication to building a complete

- [Kotlin and Firebase: A Hands-On Guide to Authentication](https://krishparekhdev.com/blog/kotlin-and-firebase-a-hands-on-guide-to-authentication/index.md): Learn how to set up Firebase Authentication in your Android app with this step-by-step guide using Kotlin. Discover how to secure your app.

- [Enum vs Sealed Classes](https://krishparekhdev.com/blog/enum-vs-sealed-classes/index.md): This article explain the difference between enum and sealed classes and explain how enum can be differentiated and why we use enum and sealed classes.

- [Requesting Multiple Runtime Permission Made EASY](https://krishparekhdev.com/blog/requesting-multiple-runtime-permission-made-easy/index.md): Requesting runtime permission in android kotlin with minimum boiler plate code and

