Categories › AI Engineering

AI Engineering

LLM applications, RAG, embeddings, transformers, and the engineering choices behind production AI features.

Filter and search

How modern models work well enough to build on them: transformers and attention, embeddings and retrieval, prompting and structured output, fine-tuning decisions, inference optimization, and the system design that turns a model call into a product feature.

43 posts, from beginner to advanced. Each ends with what to read next.

Fine-Tuning and Post-Training: LoRA, SFT, DPO, and Reasoning RL

What actually happens after pretraining, and when you should do any of it yourself. Parameter-efficient fine-tuning with LoRA, supervised fine-tuning data, preference optimization, and the reinforcement learning recipe behind reasoning models, with a decision framework and a project you can run on one GPU.

#fine-tuning#post-training#rl#reasoning-models#huggingface#llm

LLM Context Windows: What They Mean for System Design

Context window size shapes every architectural decision in LLM applications. This post covers how to reason about context allocation, the limits that still matter even with large windows, and the patterns that scale.

#llm#system-design#transformers

Common ML Architectures Reference: CNN, RNN, Transformer, MoE

A concise technical reference for the neural network architectures that power modern ML - what each one does, how it works, when to use it, and what to watch out for.

#cnn#reference#moe#deep-learning#rnn#transformer

Building a Streaming API With LLMs

Streaming transforms LLM user experience - users see the first token in under a second instead of waiting for full generation. This post covers the implementation patterns for both server and client.

#llm#system-design#openai

Attention Is All You Need - But What Is Attention?

The attention mechanism is the core of every modern language model. This post explains what it computes, why it works, and how to reason about it when building with transformers.

#attention#transformers#deep-learning

Chunking Strategies for RAG: What Actually Works

Chunking is the most underrated decision in RAG system design. This post benchmarks the main strategies and gives you a framework for choosing and evaluating them.

#rag#embeddings#llm

Tokenization: The Part of LLMs Nobody Explains Well

LLMs do not see words or characters - they see tokens. Understanding tokenization explains why LLMs fail at some surprisingly easy tasks and how to work around it.

#llm#transformers#nlp

Structured Output From LLMs: Techniques and Tradeoffs

JSON, schemas, tool calling, constrained decoding - four ways to get parseable output from LLMs. Here is when to use which and how to handle each failure mode.

#llm#openai#anthropic#python

When to Fine-Tune vs. Prompt vs. RAG

Three tools for adapting LLMs to specific use cases. They solve different problems - picking the wrong one wastes months. This post gives you the decision framework.

#fine-tuning#rag#llm

How to Evaluate an LLM Application

Evaluation is the hardest part of LLM engineering. This post covers the evaluation stack: reference-based metrics, LLM-as-judge, task-specific evals, and how to build a reliable eval pipeline.

#llm#evaluation#rag

Building a RAG System From Scratch

A complete walkthrough of building a production-ready RAG system: document ingestion, chunking, embedding, vector search, reranking, and generation with citation.

#rag#vector-search#embeddings#python

Retrieval-Augmented Generation in Practice

RAG in production is harder than RAG in a demo. This guide covers chunking strategies, retrieval quality, reranking, failure modes, and the evaluation framework that tells you whether your system is actually working.

#rag#vector-database#llmops

System Design for AI Products

AI system design is different from traditional system design. This guide covers the unique tradeoffs - quality vs. latency vs. cost, data pipelines, model serving, evaluation infrastructure, and how to structure these decisions in an interview.

#system-design#ai-architecture#reliability#mlops#llm

Neural Networks and Transformers Basics

From perceptrons to transformers: the intuition behind neural network training, how attention works, why transformers replaced everything else, and what you need to know before using them.

#deep-learning#transformers#attention

Embeddings, Retrieval, and RAG Systems

Cover the most common product pattern in current AI systems: retrieval-augmented generation.

#embeddings#rag#vector-search

LLM Application Engineering

Building applications on top of large language models requires a different engineering discipline than training them. This guide covers prompt design, evaluation, reliability, and the production patterns that matter.

#llm#prompt-engineering#evaluation

Transformers and Modern NLP Fundamentals

Bridge into LLM systems with practical understanding of tokenization, attention, and fine-tuning.

#transformers#nlp#deep-learning#attention

Transformer Inference and Context Engineering

Move from transformer intuition into serving reality: KV cache behavior, long-context tradeoffs, and prompt/context packing.

#inference#transformers#branch#llm#serving#attention

RAG Evaluation and Failure Analysis

Treat retrieval-augmented generation as an evaluable system by separating retrieval, grounding, synthesis, and user-answer failure modes.

#evaluation#rag#branch#llm

Deep Learning With PyTorch

Move from theory to practical model building in the most common deep learning framework.

#deep-learning#pytorch#neural-networks

Neural Networks From Scratch

Build a neural network once from first principles so later deep learning abstractions make sense.

#neural-networks#deep-learning#python

LLM Product Engineering

Focus on what teams actually ship with LLMs instead of toy chatbot wrappers.

#llm#system-design#openai#anthropic

Inference Optimization and Performance

Optimize model serving latency and throughput while controlling quality and cost.

#inference#performance#milestone-2#deployment#serving#deep-learning#llm#prompt-caching#slm#on-device

AI System Design and Reliability

Build reliable AI systems with SLO-driven architecture and operational safeguards.

#system-design#sre#milestone-2#deployment#llm

RAG and Vector Search Systems

Engineer scalable retrieval systems with index strategy, reranking, and relevance metrics.

#rag#vector-search#milestone-2#embeddings

Deep Learning for Product Engineers

Learn deep learning choices that matter most for product behavior and reliability.

#deep-learning#product-engineering#milestone-2#neural-networks#llm

Milestone Gate 2: Applied AI Engineering

Validate your ability to debug, design, and communicate AI engineering tradeoffs.

#gate#milestone-2#assessment#rag#agents#llm#system-design

AI System Design for Product Constraints

Design AI systems with explicit latency, cost, reliability, and governance tradeoffs.

#system-design#reliability#milestone-2#llm#deployment

LLM App Engineering

Build production-style LLM services with prompt design, tool use, and fallback behavior.

#llm#product-engineering#milestone-2#system-design#deployment#openai

RAG Foundations and Retrieval Quality

Build retrieval pipelines and measure whether they return the evidence your product actually needs.

#rag#retrieval#milestone-2#vector-search#embeddings#llm

Transformers and Attention in Practice

Move from attention intuition to practical transformer architecture design decisions.

#transformers#attention#milestone-2#deep-learning#llm

Neural Networks Fundamentals

Build intuition and implementation skill for dense networks, optimization, and regularization.

#deep-learning#neural-networks#milestone-2