Language AI Handbook

Content from the Language AI Handbook, covering natural language processing, language models, and AI-powered language applications.

409 items · Page 3 of 9

Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12
Machine LearningLanguage AI Handbook

CLIP: Zero-Shot Computer Vision Through Language Supervision

Feb 8, 2026·49 min read

Explains how CLIP enables zero-shot classification by connecting vision and language. Examines dual-encoder architecture, contrastive learning.

Open notebook
Machine LearningLanguage AI Handbook

Vision Transformer (ViT) for Image Classification

Feb 7, 2026·53 min read

Explains how Vision Transformers work: from image patching and embeddings to self-attention. Topics include ViT architecture, inductive biases.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Throughput Optimization: Batch Size, GPU Utilization

Feb 6, 2026·58 min read

Covers LLM throughput optimization with continuous batching, batch size tuning, parallelism strategies, and measuring tokens-per-second under real workloads.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Latency Optimization: TTFT, Batching, Speculative Decoding

Feb 6, 2026·52 min read

Covers LLM serving latency from TTFT to TPOT. Topics include KV cache management, continuous batching, speculative decoding, streaming responses.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Model Serving: Frameworks, Loading

Feb 6, 2026·57 min read

Serve language models in production: weight loading strategies, tensor parallelism, request batching, rate limiting.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Agent Evaluation: Metrics, Benchmarks and Safety Standards

Feb 6, 2026·52 min read

Evaluate AI agents with task completion metrics, trajectory analysis, and safety testing. Topics include WebArena, SWE-bench, GAIA, and OSWorld benchmarks.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Agent Memory Systems: From Context to Persistent Storage

Feb 5, 2026·52 min read

Explains how AI agents manage short-term context and long-term memory. Examines vector databases, retrieval algorithms.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Probing Layers in Transformer Models

Feb 5, 2026·55 min read

Explains how layer probing maps linguistic properties across BERT layers, from surface features in lower layers to semantic content in upper layers.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Evaluation: Functional Correctness and pass@k

Feb 5, 2026·53 min read

Measure code LLM quality using execution-based evaluation, the pass@k metric, and key benchmarks like HumanEval, APPS, and SWE-bench.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Execution: Sandboxed Feedback and Iterative Refinement

Feb 4, 2026·53 min read

Explains how LLM agents safely execute generated code using sandboxed environments, capture execution feedback.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Tool Selection for LLM Agents: Routing Strategies

Feb 4, 2026·58 min read

Covers LLM tool selection through embedding-based routing, hybrid strategies, and semantic interfaces. Build scalable multi-tool agent systems.

Open notebook
Language AI HandbookMachine Learning

Agent Architectures: Control Loops, State & Planning

Feb 4, 2026·53 min read

Covers LLM agent architectures including control loops, state management strategies, planning mechanisms, and termination conditions for autonomous AI systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Information Extraction: NER, Relations, Structured Output

Feb 4, 2026·53 min read

Transform raw text into structured data using named entity recognition, relation extraction, event extraction, and LLM-based JSON output generation.

Open notebook
Language AI HandbookMachine Learning

ReAct: Reasoning and Action for LLM Agents

Feb 3, 2026·50 min read

Explains how the ReAct pattern enables LLM agents to interleave reasoning with tool execution.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Generation: Docstring-to-Code, Test-Driven, Strategies

Feb 3, 2026·52 min read

Covers code generation with LLMs, covering docstring-to-code, test-driven generation, sampling strategies, self-repair loops, and generation quality metrics.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Completion: Context, Ranking, Latency & UX

Feb 3, 2026·55 min read

Explains how LLM-powered code completion works: context assembly with fill-in-the-middle, candidate ranking, latency optimizations like speculative decoding.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Interpretability Goals: Debugging, Trust, and Safety

Feb 2, 2026·46 min read

Explains why interpretability matters for language models, covering debugging, trust, safety alignment, scientific understanding.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code Understanding: Explanation, Bug Detection, Review

Feb 2, 2026·48 min read

Language models can explain code, detect bugs, support review, and run semantic code search. Covers dual encoders, contrastive training, and evaluation.

Open notebook
Machine LearningLanguage AI Handbook

Function Calling: Structured Tool Use for LLMs

Feb 2, 2026·56 min read

Explains how function calling enables LLMs to invoke external tools and APIs through structured JSON schemas, bridging natural language and executable code.

Open notebook
Language AI HandbookMachine Learning

Tool Use Motivation: Why LLMs Need External Tools

Feb 1, 2026·57 min read

Explains why LLMs require external tools to overcome knowledge cutoffs, computational limits, and hallucinations. Topics include tool-augmented AI systems.

Open notebook
Machine LearningLanguage AI Handbook

RAG Prompt Engineering: Context Placement

Jan 31, 2026·53 min read

Covers RAG prompt engineering with strategic context placement, citation formats, and truncation strategies to improve LLM accuracy and reduce hallucinations.

Open notebook
Language AI Handbook

Reranking: Cross-Encoders for Precise Information Retrieval

Jan 30, 2026·61 min read

Explains how reranking with cross-encoders solves bi-encoder limitations. Topics include two-stage retrieval, training strategies.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Red Teaming LLMs: Methodology, Taxonomies, and Automation

Jan 30, 2026·61 min read

Explains how red teams systematically probe language models for safety failures, covering attack taxonomies, ASR metrics, RL-based automated attack generation.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Prompt Injection: Attacks, RAG Risks, and Defenses

Jan 29, 2026·50 min read

Covers direct and indirect prompt injection attacks, how RAG pipelines create injection surfaces, and the layered defense strategies used to mitigate them.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Code LLM Training: Tokenization, FIM, Pretraining Objectives

Jan 29, 2026·56 min read

Explains how code language models are trained: code data curation, code-specific tokenization, fill-in-the-middle objectives.

Open notebook
Language AI HandbookMachine LearningSoftware Engineering

Hybrid Search: BM25 and Dense Retrieval Combined

Jan 29, 2026·65 min read

Hybrid search combines BM25 keyword ranking with dense vector retrieval. Covers reciprocal rank fusion, weighted scores, recall, and tuning tradeoffs.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Hyperparameter Selection: Search, Transfer, Default Recipes

Jan 29, 2026·58 min read

Covers systematic strategies for hyperparameter search, how muP enables transfer across model scales.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Activation Steering: Vectors and Representation Engineering

Jan 29, 2026·47 min read

Explains how steering vectors and activation addition let you modify language model behavior at inference time.

Open notebook
Data, Analytics & AIMachine LearningLanguage AI Handbook

Product Quantization: Vector Compression for ANN Search

Jan 28, 2026·62 min read

Explains how Product Quantization compresses embeddings up to 100x using learned codebooks and asymmetric distance computation for scalable vector search.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Training Stability: Loss Spikes, Gradient Norms & Debugging

Jan 28, 2026·60 min read

Detect and prevent training instability in deep learning. Topics include loss spikes, gradient norm monitoring, gradient clipping.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Gradient Accumulation: Memory-Efficient Large Batch Training

Jan 27, 2026·49 min read

Explains how gradient accumulation simulates large batch sizes on limited GPU memory by splitting batches into micro-batches.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Weight Decay: L2 Regularization, AdamW, Decoupled Training

Jan 27, 2026·56 min read

Explains how weight decay regularizes neural networks, why AdamW decouples weight decay from adaptive gradients.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Large Batch Training: Scaling Rules, Limits, and LAMB

Jan 27, 2026·49 min read

Explains how batch size affects gradient noise and generalization, apply the linear scaling rule for learning rates, identify the critical batch size.

Open notebook
Machine LearningData, Analytics & AILanguage AI Handbook

IVF Index: Clustering-Based Vector Search & Partitioning

Jan 27, 2026·66 min read

Covers IVF indexes for scalable vector search. Topics include clustering-based partitioning, nprobe tuning, and IVF-PQ compression for billion-scale retrieval.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Safety Risks in Language AI: Harms, Misuse, Threat Models

Jan 26, 2026·52 min read

Examines harmful content categories, misuse scenarios, unintended harms, and structured threat models for reasoning about safety in language AI systems.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Cosine Learning Rate Schedule: Decay, Restarts, and Warmup

Jan 26, 2026·65 min read

Covers cosine learning rate schedule used in GPT and LLaMA training: the decay formula, warm restarts, key parameters, and comparison with linear decay.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

HNSW Index: Architecture for Fast Vector Search

Jan 26, 2026·67 min read

Covers Hierarchical Navigable Small World (HNSW) graphs for vector search. Topics include graph architecture, construction, and tuning for high-speed retrieval.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

QA: Extractive, Generative, and Open-Domain QA

Jan 26, 2026·59 min read

Covers question answering systems from span extraction with BERT to retrieval-augmented generation, covering evaluation metrics and open-domain QA pipelines.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Vector Similarity Search: Metrics & Approximate Methods

Jan 25, 2026·65 min read

Examines vector similarity search for RAG systems. Compare cosine, dot product, and Euclidean metrics, and implement exact vs. approximate search with FAISS.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Learning Rate Decay: Step, Exponential

Jan 24, 2026·51 min read

Explains how learning rate schedules improve neural network training. Topics include step decay, exponential decay, inverse square root with warmup.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Embedding Models: Architecture, Pooling & Selection

Jan 24, 2026·65 min read

Explains how embedding models convert text to vectors for RAG. Topics include bi-encoder architecture, pooling strategies, dimensionality trade-offs.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Document Chunking: Optimizing RAG Retrieval Pipelines

Jan 23, 2026·63 min read

Covers document chunking for RAG systems. Examines fixed-size, recursive, and semantic strategies to balance retrieval precision with context window limits.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Checkpointing and Recovery: Async I/O and Fault Tolerance

Jan 23, 2026·53 min read

Save and restore complete training state, choose checkpoint frequency, implement asynchronous I/O, and recover distributed LLM training runs from failures.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Contrastive Learning for Retrieval: InfoNCE and DPR

Jan 23, 2026·57 min read

Covers contrastive learning for dense retrieval. Train models using InfoNCE loss, in-batch negatives, and hard negative mining strategies effectively.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Communication Optimization: Gradient Compression, NCCL

Jan 23, 2026·55 min read

Covers distributed training communication: gradient compression, topology-aware all-reduce, NCCL tuning.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Mixed Precision Training: FP16, BF16, and Loss Scaling

Jan 22, 2026·58 min read

Explains how mixed precision training uses FP16 and BF16 floating point formats to speed up LLM training and cut memory usage without sacrificing accuracy.

Open notebook
Machine LearningData, Analytics & AILanguage AI Handbook

Dense Retrieval: Semantic Search & Bi-Encoder Implementation

Jan 22, 2026·62 min read

Covers dense retrieval for semantic search. Examines bi-encoder architectures, embedding metrics, and contrastive learning to overcome keyword limitations.

Open notebook
Data, Analytics & AISoftware EngineeringMachine LearningLanguage AI Handbook

Activation Checkpointing: Gradient Memory

Jan 22, 2026·56 min read

How activation checkpointing trades compute for memory by discarding and recomputing activations.

Open notebook
Community

Learn with the community

Create a free account to keep your reading organized, join thoughtful discussions, and get more from every chapter.

  • Keep your place across books and articles
  • Ask questions and take part in discussions
  • Read with fewer interruptions

Free to join · Takes less than a minute

Why

I created this space so readers can learn together, ask questions, and make sense of difficult ideas.

Michael Brenndoerfer
From readers1 / 12