#Fundamentals

Articles about Fundamentals — exploring patterns, best practices, and real-world implementations in production systems.

23 posts tagged with fundamentals. ← All posts

#A/B Testing (3)#A2A (14)#ADK (8)#AG-UI (6)#AI (9)#AI Agents (335)#AI Architecture (22)#AI Cost (10)#AI Cost Optimization (8)#AI Engineering (282)#AI Evaluation (9)#AI Financial Engineering (14)#AI Gateway (8)#AI Governance (40)#AI Red Teaming (9)#AI Research (9)#AI Safety (12)#AI Security (29)#AI in Production (12)#AML (3)#API Design (10)#API Security (8)#APIs (59)#AWS (17)#Accountability (8)#Accounting (9)#Agent Skills (11)#Agentic AI (25)#Agentic Commerce (12)#Agentic RAG (8)#Agents (4)#Amazon Bedrock (8)#Analytics (3)#Architecture (42)#Attention (3)#Audit (4)#Authentication (11)#Authorization (3)#Automation (11)#Azure (11)#Azure AI Foundry (9)#Backend Engineering (310)#Benchmarks (3)#Best Practices (4)#BigQuery (6)#Business Finance (8)#Business Strategy (55)#C (8)#CI/CD (16)#Caching (11)#Capital Markets (14)#Card Payments (12)#Cards (13)#Career (25)#Causal Inference (8)#Cellular Automata (8)#Checkpointing (4)#Claude Code (8)#Cloud (5)#Cloud Architecture (3)#Cloud Native (10)#Code Review (9)#Coding Agents (8)#Collaboration (5)#Communication (9)#Complexity (8)#Compliance (54)#Computer Networking (9)#Computer Science (40)#Computer Vision (15)#Computer-Use Agents (8)#Concurrency (40)#Consulting (5)#Containers (10)#Context Engineering (14)#Conversational AI (8)#Cost Optimisation (5)#Cost Optimization (3)#Credit (16)#Credit Risk (16)#CrewAI (8)#Crypto (12)#Cryptocurrency (12)#Cryptography (9)#Custody (9)#DSPy (8)#Data (14)#Data Engineering (24)#Data Science (8)#Data Structures (10)#Databases (41)#Deep Learning (20)#Deployment (5)#Design (3)#Design Patterns (10)#DevOps (24)#DevSecOps (22)#Developer Experience (5)#Developer Tools (5)#Differential Privacy (3)#Distributed Systems (100)#Documentation (3)#Edge AI (8)#Embeddings (21)#Emotional Intelligence (8)#Energy (8)#Engineering (14)#Engineering Culture (3)#Engineering Judgment (7)#Engineering Practices (16)#Error Handling (4)#Evaluation (68)#Event-Driven Architecture (8)#Explainable AI (8)#FREE-AI (8)#FX (5)#Feature Engineering (3)#Feedback (4)#FinOps (23)#FinTech (6)#Financial AI (14)#Financial Engineering (8)#Financial Systems (129)#Fine-Tuning (12)#Fintech (131)#Flutter (8)#Forecasting (10)#Foreign Exchange (5)#Forward Deployed Engineer (22)#Forward Deployed Engineering (8)#Fraud (10)#Function Tools (5)#Functional Programming (3)#Fundamentals (23)#Fundraising (8)#GCP (5)#GPU (8)#GUI Automation (8)#Gemma (4)#Generative AI (3)#Git (8)#Go (220)#Go-to-Market (13)#Google ADK (36)#Governance (61)#Granite (6)#Graph Neural Networks (8)#GraphQL (3)#Growth (3)#Guardrails (34)#HIPAA (3)#HTTP (3)#Harness Engineering (8)#Hiring (8)#Hugging Face (8)#Human-in-the-Loop (9)#IBM watsonx (8)#Identity (11)#Inference (8)#Information Retrieval (8)#Integration (3)#Intellectual Property (8)#Interfaces (3)#Interpretability (8)#JavaScript (8)#KYC (11)#KYC and AML (12)#Kafka (11)#Knowledge Graphs (10)#Kubernetes (17)#LLM (5)#LLM Inference (8)#LLM Infrastructure (8)#LLM-as-Judge (3)#LLMOps (8)#LLMs (192)#LangChain (8)#LangGraph (11)#Leadership (29)#Ledger (12)#Legal (8)#Lending (14)#Linux (9)#LlamaIndex (8)#Load Balancing (3)#MCP (22)#MLOps (36)#Machine Learning (109)#Marketing (16)#Markets (4)#Mathematical Finance (8)#Memory (15)#Memory Management (5)#Metrics (7)#Microservices (3)#Microsoft Agent Framework (150)#Middleware (6)#Migration (9)#Mixture of Experts (5)#Model Risk (3)#Monitoring (5)#Multi-Agent (10)#Multi-Agent AI (14)#Multi-Agent Systems (73)#Multimodal (3)#Multimodal AI (11)#NIM (5)#NVIDIA (8)#Networking (3)#OAuth (3)#OWASP (7)#Observability (50)#On-Device AI (8)#Ontology (8)#Open Source (7)#OpenTelemetry (5)#Operating Systems (9)#Operations (13)#Opinion (6)#Orchestration (10)#Organizational Design (8)#Payment Rails (16)#Payments (54)#People (8)#Performance (56)#Personalization (9)#Platform Engineering (9)#Policy as Code (3)#PreSales (8)#Privacy (13)#Privacy Engineering (3)#Process (4)#Product (30)#Product Management (8)#Production (22)#Programming (10)#Programming Languages (48)#Prompt Engineering (80)#Prompt Injection (15)#Protocol Buffers (3)#Protocols (9)#Providers (4)#Pydantic AI (8)#Python (142)#Quality (3)#Quantitative Finance (22)#RAG (70)#RBI (3)#REST (5)#Rails (16)#Real-Time (8)#Reasoning Models (8)#Recommender Systems (8)#Reconciliation (3)#RegTech (8)#Regulation (10)#Reinforcement Learning (9)#Reliability (56)#Resilience (4)#Responsible AI (5)#Retrieval (3)#Risk (14)#Risk Management (11)#Rust (32)#SLSA (3)#SRE (23)#Sales (9)#Scalability (6)#Search (10)#Security (102)#Security Engineering (8)#Self-Evolving Agents (16)#Semantic Web (8)#Sessions (3)#Settlement (9)#Soft Skills (8)#Software (3)#Software Architecture (36)#Software Delivery (9)#Software Engineering (152)#Spanner (4)#Speech (8)#Startups (30)#Statistics (8)#Strands (8)#Strategy (6)#Stream Processing (8)#Streaming (36)#Structured Output (4)#Supply Chain Security (9)#Sustainability (8)#System Design (32)#Systems Programming (56)#Testing (66)#Threat Modeling (3)#Time Series (9)#Tool Use (23)#Tooling (5)#Tools (4)#Trading (8)#Treasury (6)#Trust (3)#Type System (3)#Type Systems (11)#TypeScript (8)#Validation (3)#Valuation (3)#Vector Databases (22)#Vector Search (11)#Venture Capital (8)#Version Control (9)#Voice AI (9)#Web Development (6)#Workflow (4)#Workflows (14)#eBPF (8)#gRPC (13)#smolagents (8)
Pratik Dhanave · ·6 min read

What Financial Engineering Is

Financial engineering is what happens when you point the tools of mathematics, computer science, and engineering at money. It is the discipline behind pricing a derivative, measuring the risk of a portfolio, and deciding what a future cash flow is worth today. For engineers, it is a surprisingly familiar world — models, assumptions, edge cases, and a relentless question of what a thing is really worth. This series builds it from first principles.

Financial engineering applies math, statistics, and computation to money — and under the jargon it rests on three ideas an engineer will recognize: the time value of money, the trade-off between risk and return, and no-arbitrage. This series builds quant finance from those foundations. (Educational, not financial advice.)

Pratik Dhanave · ·7 min read

What AI Financial Engineering Is — Where Quant Finance Meets AI

Financial engineering has always been computational, but a new layer is reshaping it: artificial intelligence applied not just to predict prices but to read documents, structure judgment, monitor risk, and preserve institutional decision-making. AI financial engineering is the discipline of building these systems end to end — and doing it in an industry where being wrong costs real money and being unexplainable is often illegal. This series builds that discipline from first principles to production.

Financial engineering has always been computational; AI now extends it into reading documents, structuring judgment, and monitoring risk. What AI financial engineering is — the synthesis of model-driven quant and data-driven AI — and why finance (real money, mandatory explainability, auditability, adversarial data, human judgment) makes it uniquely hard. (Educational, not financial advice.)

Pratik Dhanave · ·5 min read

What an Ontology Is — Meaning You Can Compute With

"Ontology" sounds like philosophy, and historically it was — the study of what exists. In computing it means something more concrete and more useful: a formal, explicit description of the things in a domain and how they relate, written so a machine can reason about it. As AI systems increasingly need to ground their answers in structured truth rather than guess from text, ontologies and the knowledge graphs built on them have become quietly essential. This series builds both from first principles.

'Ontology' sounds like philosophy; in computing it's a formal, machine-readable description of a domain's things and relationships. The ladder from schema to taxonomy to ontology, the building blocks (classes, individuals, properties, axioms), and why ontologies give LLMs the verifiable source of truth they lack.

Pratik Dhanave · ·8 min read

The Agent Loop for Code — Read, Edit, Run, Observe

Every coding agent, under the hood, runs the same loop: understand the situation, take an action, observe what happened, and decide the next action — repeating until the task is done. This read-edit-run-observe loop is the engine of a coding agent, and it works for code precisely because each action produces concrete, verifiable feedback. This post builds that loop and shows why closing it against real results is what separates an agent from a code generator.

Every coding agent runs the same loop: observe the state, decide an action, act through a tool, observe the result, repeat. Closing the loop against code's concrete feedback (errors as rich signals) is what makes it an agent that converges to working code, not a one-shot generator — and the loop is only as reliable as the feedback driving it.

Pratik Dhanave · ·7 min read

How Computer-Use Agents Act — and the Perceive-Act Loop

Having understood the screen, a computer-use agent must act on it — move the cursor, click the right spot, type the right text — and then look again to see what happened. This perceive-act loop, running over a graphical interface with imprecise actions and visual feedback, is the engine of a computer-use agent, and it's both simple in shape and hard in execution. This post covers how agents act on a GUI and the loop that ties perception and action together.

An agent acts by simulating human input — mouse, keyboard, navigation — translating intent into precise physical actions on a visual surface where a click can mechanically succeed yet do the wrong thing. The perceive-act loop (visual on both ends, slow, per-step-fallible), and why closing it (verify, adapt) beats brittle scripted RPA.

Pratik Dhanave · ·6 min read

Q-Learning and Temporal-Difference Learning — Learning Value from Experience

The elegant idea of value functions becomes a practical algorithm through one trick: learn by comparing your prediction to a slightly-better prediction, and nudge toward the difference. Temporal-difference learning and its famous instance, Q-learning, are how an agent learns the value of its actions purely from experience — no model of the world required. This is the algorithm that first made reinforcement learning work, and its core idea quietly underlies much of the field.

Learn a guess from a better guess: temporal-difference learning and Q-learning nudge value estimates toward reward + γ × value-of-next, model-free, bootstrapping from every step. Off-policy learning, ε-greedy exploration, and why the Q-table can't scale — motivating deep RL.

Pratik Dhanave · ·6 min read

Markov Decision Processes — The Math That Frames Every RL Problem

Behind every reinforcement learning algorithm is one formal structure: the Markov decision process. It's the precise way of writing down "an agent making a sequence of decisions under uncertainty," and once a problem is framed as an MDP, the whole toolkit of RL applies to it. This post builds the MDP from its parts and explains the one assumption — the Markov property — that makes the entire theory work.

Behind every RL algorithm is one structure: the Markov decision process (states, actions, transitions, reward, discount). The Markov property that makes it tractable, why state design matters, and reward design as RL's subtle, decisive, error-prone part (reward hacking) — the problem RLHF later solves.

Pratik Dhanave · ·5 min read

What Reinforcement Learning Is — Learning from Consequences

Supervised learning needs a teacher who knows every right answer; reinforcement learning needs only a goal and the freedom to try. It's how a system learns to play a game, control a robot, or — increasingly — align a language model, not by being shown correct outputs but by acting, seeing what happens, and learning from the consequences. This series builds RL from first principles, and it starts with why "learning from reward" is a fundamentally different and more general kind of learning.

Supervised learning needs a teacher who knows every answer; RL needs only a goal and the freedom to try. Learning from consequences via the agent-environment-reward loop, the policy, delayed reward and credit assignment, and the exploration-exploitation dilemma that makes RL its own discipline.

Pratik Dhanave · ·6 min read

The Machine Learning Workflow — From Problem to Production

Knowing the algorithms is maybe 20% of doing machine learning. The other 80% is the workflow around them: framing the problem, preparing the data, iterating honestly, and getting a model into production where it keeps working. This closing post assembles the series into the end-to-end process real ML follows — and names the places where projects actually fail, which are almost never the algorithm.

Algorithms are ~20% of ML; the other 80% is the workflow — framing the problem, preparing data, iterating honestly, and keeping a model working in production where it decays (concept drift). Why classical ML isn't obsolete, and why these foundations are universal to deep learning and LLMs.

Pratik Dhanave · ·5 min read

Unsupervised Learning — Finding Structure Without Labels

Most data in the world is unlabeled, and labeling it is expensive — so some of the most useful machine learning finds structure in data with no answer key at all. Unsupervised learning groups similar things, compresses high-dimensional data, and flags the anomalies, all without being told what "right" looks like. This post covers the main unsupervised techniques and, just as importantly, how you tell whether they worked when there's no label to check against.

Most data is unlabeled, and some of the most useful ML finds structure without an answer key. Clustering, dimensionality reduction (the root of embeddings and semantic search), anomaly detection, and the hard problem of evaluating when there's no label to check against.

Pratik Dhanave · ·5 min read

Evaluating Models — Accuracy Is the Metric That Lies

The most dangerous number in machine learning is accuracy, because it's the one everyone reaches for and the one that most often misleads. A fraud model that's 99.9% accurate by never catching any fraud is useless and common. Choosing the right evaluation metric — and understanding what each one hides — is the difference between a model that looks good and a model that works. This post is about measuring models honestly.

The most dangerous number in ML is accuracy — a 99.9%-accurate fraud model that catches nothing is common. The confusion matrix, precision vs recall (a business decision), F1/ROC, regression metrics, segment-level evaluation (how bias is caught), and why every offline metric is a proxy (Goodhart's law).

Pratik Dhanave · ·5 min read

Overfitting and Generalization — The Central Problem of Machine Learning

If there is one idea that separates people who understand machine learning from people who can run a library, it is this: the goal is never to do well on the data you have, but on the data you don't. A model that nails its training data and fails in production hasn't learned — it has memorized. Overfitting is the central failure mode of ML, and the techniques to fight it (the train/test split, regularization, the bias-variance trade-off) are the discipline's core craft.

The goal is never to do well on the data you have, but on the data you don't. Overfitting vs underfitting, the bias-variance trade-off, the train/test split (why training accuracy is meaningless and leakage/contamination fools you), and regularization as Occam's razor for models.

Pratik Dhanave · ·5 min read

Trees and Ensembles — Why Gradient Boosting Still Wins on Tabular Data

If you have a spreadsheet and a prediction to make, the state of the art is probably not a neural network — it's a gradient-boosted ensemble of decision trees. Decision trees are intuitive, handle messy real-world data gracefully, and when combined into ensembles become the most consistently winning approach to tabular machine learning. This post builds from a single tree to the ensembles that quietly power a huge fraction of production ML.

If you have a spreadsheet and a prediction to make, the state of the art is probably not a neural network — it's a gradient-boosted ensemble of trees. From a single decision tree to random forests and boosting, and the useful heuristic: tabular → trees, unstructured → deep learning.

Pratik Dhanave · ·5 min read

Regression and Linear Models — The Workhorses You Should Understand First

Before neural networks, the two models that still quietly run more of the world's predictions than anything else are linear and logistic regression. They are simple enough to understand completely, fast enough to train on anything, and interpretable enough to explain to a regulator — and understanding them teaches the mechanics (fitting, loss, gradient descent) that every more complex model shares. This post builds both from scratch and shows why "just use a linear model" is often the right answer.

Linear and logistic regression still run more of the world's predictions than anything else — and they teach the universal loop (model, loss, gradient descent) that scales all the way to training an LLM. Fitting a line, the learning rate, and the sigmoid that becomes the softmax.

Pratik Dhanave · ·5 min read

Data and Features — Where Machine Learning Is Really Won

The glamorous part of machine learning is the model; the decisive part is the data and the features. A mediocre model on great features beats a great model on poor ones, almost every time — which is why experienced practitioners spend most of their effort here and almost none picking algorithms. This post is about the unglamorous, high-leverage work of turning raw data into the features a model can actually learn from.

A mediocre model on great features beats a great model on poor ones. The data properties that govern what's possible (quantity, quality, representativeness — the root of bias) and feature engineering as the model's vocabulary — the highest-leverage, least-glamorous work in ML.

Pratik Dhanave · ·5 min read

What Machine Learning Is — Programs That Learn from Data

Most of this blog's AI content sits on top of machine learning without ever defining it. This series fixes that from the ground up: before transformers and LLMs, before fine-tuning and RAG, there is the plain idea of a program that improves at a task by learning patterns from data instead of being explicitly told the rules. Understanding that idea — and its three core flavors — is the foundation everything else in modern AI is built on.

Before transformers and LLMs there is the plain idea of a program that learns patterns from data instead of being told the rules. What machine learning is, the vocabulary (features, model, training, generalization), and the three paradigms — supervised, unsupervised, reinforcement — the whole AI stack is built on.

Pratik Dhanave · ·5 min read

The Retrieval Problem — Finding the Needle in Billions of Haystacks

Every time you type into a search box and get useful results in milliseconds from billions of documents, a remarkable amount of engineering is hiding behind the cursor. Information retrieval is the science of finding relevant information in a large collection, and it's one of the oldest, most practical, and — in the age of RAG — most suddenly-relevant-again fields in computing. This series builds search from first principles, and it starts with why "just find the matching documents" is far harder than it sounds.

Finding relevant information in a huge collection in milliseconds is far harder than 'just find the matching documents'. The two problems hiding in search (matching and ranking), why scanning fails, and the offline-index/online-retrieve pipeline that makes search fast — and that RAG reuses directly.

Pratik Dhanave · ·5 min read

Message Passing — The Core Mechanism of Every GNN

Strip away the variations and every graph neural network does the same fundamental thing: each node repeatedly gathers information from its neighbors and updates itself. This is message passing, and it's the single idea you need to understand GNNs — GCN, GraphSAGE, GAT, and the rest are all just different choices for how a node listens to its neighbors. This post builds message passing from scratch and shows why it elegantly satisfies everything a graph architecture must.

Strip away the variations and every GNN does the same thing: each node repeatedly aggregates information from its neighbors and updates itself. Message passing, why stacking layers widens a node's view to its k-hop neighborhood (convolution generalized to graphs), and the failure modes (over-smoothing, over-squashing) that shape real GNNs.

Pratik Dhanave · ·6 min read

Why Graphs Need Their Own Deep Learning

Neural networks conquered images, text, and audio — but a huge amount of the world's most valuable data isn't any of those. It's graphs: social networks, molecules, knowledge graphs, payment networks, supply chains. Standard deep learning can't handle them, because graphs break the assumptions CNNs and transformers are built on. Graph neural networks are the architecture built for data whose meaning lives in its connections, and this series builds them from first principles.

Neural networks conquered images, text, and audio — but much of the world's most valuable data is graphs: social networks, molecules, knowledge graphs, payment networks. Why standard deep learning can't handle them, the two properties a graph architecture must have, and what a GNN learns instead.

Pratik Dhanave · ·6 min read

What Makes Time Series Special

Forecasting the future from the past is one of the oldest and most valuable things data can do — predict demand, traffic, revenue, load, prices. But time-series data breaks the assumptions most machine learning is built on, and treating it like ordinary data is the fastest way to build a forecaster that looks great in testing and fails in production. This series builds forecasting from first principles, starting with why time is different.

Forecasting the future from the past is one of data's oldest, most valuable jobs — but time-series data breaks ML's i.i.d. assumption (order matters, observations are dependent, the data is non-stationary). Why that dependence makes forecasting both possible and hard, and the vocabulary (trend, seasonality, noise, stationarity, horizon).

Pratik Dhanave · ·6 min read

Images as Data — Why Computer Vision Is Hard

Humans see so effortlessly that it's easy to forget vision is one of the hardest problems in computing. To a computer an image is just a grid of numbers, and turning those numbers into "that's a cat" requires bridging an enormous gap between raw pixels and meaning. This series builds computer vision from first principles — from pixels to classical methods to the deep learning that finally cracked it — and it starts with why the problem is so deceptively hard.

To a computer an image is just a grid of numbers, and turning those into 'that's a cat' means bridging the semantic gap — made brutal by viewpoint, lighting, scale, occlusion, and intra-class variation. Why vision defeats hand-written rules and is fundamentally a learning problem.

Pratik Dhanave · ·7 min read

Events, Streams, and Time — The Core Model

Stream processing has a small, elegant core model: everything is an event, events form streams, and time is a first-class concern. Getting these three ideas precise — especially the subtle and crucial distinction between when an event happened and when you process it — is what makes the rest of stream processing (windowing, state, correctness) comprehensible. This post builds the core vocabulary that everything else depends on.

The core model: events, streams, and time as first-class. The crucial, most-misunderstood distinction between event time (when it happened) and processing time (when you handle it), why correct answers depend on event time, and why that makes time the central problem of streaming.

Pratik Dhanave · ·6 min read

What Stream Processing Is — Computing on Data in Motion

Most software processes data at rest: you store it, then query it. Stream processing flips that — it computes on data in motion, as each event arrives, continuously and forever. This shift from "store then process" to "process as it flows" underpins fraud detection, real-time analytics, monitoring, and the event-driven systems that react to the world as it happens. This series builds stream processing from first principles, starting with why computing on data in motion is a fundamentally different model.

Most software processes data at rest; stream processing computes on data in motion, as each event arrives, continuously and forever. Batch vs stream, why unboundedness makes streaming hard, and when latency justifies its complexity over simpler batch.

All posts on this site are written by Pratik Dhanave, an Agentic AI Architect with 7+ years building production distributed systems, multi-agent AI platforms, and cloud-native infrastructure. About the author → Each article includes working code, architecture diagrams, and references to the specific frameworks and standards discussed. Browse all posts or explore related topics using the tag cloud above.