Tutorials
Filter & sort
295 tutorials
Tooling & Workflows
Adding, Switching, and Verifying Codex Accounts with Cockpit Tools
Manage multiple personal Codex accounts by following the step-by-step sequence of installation, account addition, browser authorization, switching and launching, and verifying the active login identity.
Troubleshooting
Step-by-Step Troubleshooting for Codex Reconnection Loops and TUN Mode
When Codex works under TUN mode but repeatedly reconnects under standard proxy modes, follow this five-step sequence to isolate, restart, switch modes, and verify nodes and ports.
Troubleshooting
Codex Reconnecting Troubleshooting: Proxy Environment Variable Setup and Verification
Follow the five legacy steps for creating a proxy environment variable file, understand the eight configuration lines, verify real local listening ports and version compatibility, and test launching from a proxy-configured terminal.
Troubleshooting
Troubleshooting Codex Launching Without a Window on Windows
Work through seven ordered recovery steps for missing windows, lingering background processes, and first-run initialization stalls on Windows, including a read-only PowerShell check and a four-step diagnostic loop.
Data & Databases
Matplotlib: The Foundational Plotting Library for Python
Matplotlib organizes charts through Figure, Axes, and Artist objects for fine-grained customization and export. Holding explicit fig and ax references in multi-panel scripts avoids implicit global state bugs.
Data & Databases
NumPy: The Foundation of Numerical Computing
NumPy organizes numerical data into multi-dimensional arrays characterized by shape, dtype, and strides, dispatching vectorized array operations to compiled low-level kernels. Actual performance depends on the operation, array scale, data type, and memory layout.
Data & Databases
OpenPyXL: Reading and Writing Excel Workbooks in Python
OpenPyXL reads and writes Office Open XML (.xlsx) workbooks—handling cells, styling, formula strings, and charts without launching Excel or evaluating formulas.
Data & Databases
Pandas: Tabular Data Analysis (3.x)
pandas represents labeled tabular data with Series and DataFrame, supporting ingestion, filtering, grouping, joins, and export. Version 3.x enforces Copy-on-Write by default so edits to derived views never silently mutate the source table.
Data & Databases
Plotly: Interactive Charts in Python
Plotly's Python library constructs JSON-serializable figure objects rendered as interactive browser charts by plotly.js, with distinct options for HTML and static image export.
Data & Databases
Polars: High-Performance DataFrames (2.x)
Polars organizes tabular transformations through column expressions and lazy query plans optimized before execution; Polars 2.0 defaults to the streaming engine while operator support still governs out-of-core spilling.
Data & Databases
PyArrow: Columnar In-Memory Format and Parquet
PyArrow provides Apache Arrow in-memory data structures, compute kernels, and zero-copy interchange alongside Parquet I/O. Arrow's in-memory layout and Parquet's on-disk format serve complementary roles.
Data & Databases
Seaborn: Statistical Data Visualization
Seaborn provides a high-level statistical plotting interface atop Matplotlib, mapping DataFrame columns to grouped distributions, relational plots, and configurable error bars.
Data & Databases
Streamlit: Building Interactive Data and AI Apps in Pure Python
Streamlit turns Python scripts into interactive web UIs where standard widget interactions re-run the script top to bottom, while caching decorators and session_state manage expensive computations and per-user state.
Programming Foundations
Breakpoints and Interactive Debuggers
Breakpoints pause execution at a specific line or condition so you can inspect stack frames, variables, and step-by-step execution, though timing-sensitive concurrency bugs still require logs.
Programming Foundations
Clean Code
Clean code communicates intent, boundaries, and invariants clearly so maintainers can reason about and verify the impact of changes. Focused functions, descriptive naming, and consistent formatting are means toward correct behavior and maintainability.
Programming Foundations
Code Review
Code review has a reviewer other than the author inspect changes and their surrounding context for correctness, design, test coverage, and maintainability. Automated checks and AI suggestions surface leads, while final review decisions require verifiable reasoning.
Programming Foundations
Code Smells
A code smell is a surface indicator that a design may warrant closer inspection—such as duplicated logic, tangled responsibilities, or long parameter lists. It is a starting point for investigation, not an automatic mandate to rewrite.
Programming Foundations
Debugging
Debugging turns a gap between expected and actual behavior into a reproducible problem, isolates the root cause through observation, hypothesis testing, and experimentation, and verifies the fix with regression checks.
Programming Foundations
Declarative Programming
Declarative programming specifies the desired outcome, constraints, or relationships while leaving the step-by-step execution strategy to the runtime, query engine, or framework.
Programming Foundations
Design Patterns
Design patterns are named summaries of recurring software design problems, their applicability conditions, and structural trade-offs, providing a shared vocabulary that should be adapted to your language and project scale.
Programming Foundations
Software Documentation
Software documentation explains how to use a feature, what constraints govern an interface, and why key design choices were made across tutorials, how-to guides, reference docs, and explanations.
Programming Foundations
Exception Handling
Exception handling propagates failures from where they occur to the layer equipped to decide what to do next, using explicit exception types, cause chains, and cleanup blocks to support error reporting, retries, or graceful degradation.
Programming Foundations
Functional Programming
Functional programming emphasizes function composition, higher-order functions, and explicit data transformations. Pure functions and immutable data are core tools, while real-world applications still manage file and network side effects at the boundary.
Programming Foundations
Imperative Programming
Imperative programming uses assignments, branches, and loops to describe step by step how a program mutates state to reach a result.
Programming Foundations
Logging
Logging records program events by severity level with timestamps, logger origins, and correlation fields to reconstruct execution history, working alongside metrics and distributed traces to support troubleshooting.
Programming Foundations
Object-Oriented Programming (OOP)
Object-oriented programming organizes data and behavior into objects, managing state through encapsulation, interfaces, and collaboration while ensuring different implementations honor shared behavioral contracts.
Programming Foundations
Programming Paradigms
A programming paradigm is an approach to structuring programs. Imperative code specifies execution steps, while declarative code specifies goals or relationships; functional, object-oriented, and other paradigms can be combined within the same codebase.
Programming Foundations
Refactoring
Refactoring restructures internal code while preserving agreed observable behavior, making future comprehension and changes easier through small, verified steps.
Programming Foundations
SOLID Principles
SOLID brings together Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion to contain the blast radius of changing requirements.
Programming Foundations
Stack Traces
A stack trace records the sequence of call frames an exception travels through; combining exception types, messages, and causal chains lets you trace a crash back to its root cause.
Programming Foundations
Asynchronous Programming with async / await
async and await define suspendable coroutines. asyncio typically advances tasks cooperatively on a single event-loop thread so non-blocking I/O wait times overlap.
Programming Foundations
Python Context Managers
Context managers govern resource lifecycles and temporary runtime state via an entry/exit protocol; the with statement guarantees cleanup on both normal exit and exceptions.
Programming Foundations
Decorators in Python
A decorator receives a function or class right after definition and rebinds its name to the returned object, commonly used for wrapping behavior, registering handlers, and attaching metadata.
Programming Foundations
Generators
A generator function returns a generator object when called; each step of iteration advances to yield, produces one value, and suspends execution until resumed from its saved state—making it ideal for on-demand data streams.
Programming Foundations
Iterators and Iterables
An iterable can produce an iterator; an iterator tracks the current position, yields elements one by one via next(), and signals completion with StopIteration. Every iterator is itself an iterable.
Programming Foundations
Multiprocessing in Python
Multiprocessing distributes work across independent OS processes to parallelize CPU-bound tasks and isolate memory, subject to process startup, serialization, IPC, and memory overhead.
Programming Foundations
Mutability and Hashability in Python
Mutability describes whether an object's state can be modified in place, whereas hashability determines whether it can serve as a dict key or set member.
Programming Foundations
Names, Objects, and References in Python
Python names bind to objects: assignment rebinds a name rather than copying an object, and in-place mutations to a shared mutable object are visible through all references to it.
Programming Foundations
Python Multi-Threading and Free-Threaded Builds
Multi-threading runs concurrent execution flows sharing memory inside a single process; standard GIL builds excel at I/O concurrency while free-threaded Python enables multi-core CPU parallelism.
Programming Foundations
Type Hints
Type hints declare expected type contracts for static type checkers, IDEs, and runtime frameworks; the Python interpreter itself does not automatically validate argument types at runtime based on annotations alone.
Mathematics & Algorithms
Breadth-First Search (BFS)
BFS uses a queue to expand nodes layer by layer according to their edge distance from the start node, yielding the fewest-edge path in unweighted graphs or graphs with uniform positive edge weights. Marking nodes upon enqueueing prevents redundant expansion.
Mathematics & Algorithms
Big O: Time and Space Complexity
Big O notation describes the asymptotic upper bound on how an algorithm's time or memory usage grows with input size, requiring clear specification of worst-case, average-case, or amortized regimes.
Mathematics & Algorithms
Binary Search
Binary search repeatedly narrows the search interval over a sorted sequence or a search space with a monotonic predicate, typically requiring O(log n) comparisons per query.
Mathematics & Algorithms
Depth-First Search (DFS)
DFS explores as deep as possible along each branch using recursion or an explicit stack before backtracking. Standard graph traversal visits each vertex and edge once, taking O(V+E) time with an adjacency list.
Mathematics & Algorithms
Dijkstra's Shortest Path Algorithm
In graphs with non-negative edge weights, Dijkstra's algorithm repeatedly extracts the node with the smallest tentative distance, finalizes its shortest path, and relaxes its outgoing edges using a priority queue.
Mathematics & Algorithms
Dynamic Programming
Dynamic programming defines states and transitions, stores and reuses subproblem results, and computes target values in dependency order. It applies to optimisation, counting, and probability summation — not just finding optimal solutions.
Mathematics & Algorithms
Greedy Algorithms
A greedy algorithm commits to a single step under a local rule without exploring future branches. Global optimality must be proved per problem; looking best locally is not sufficient.
Mathematics & Algorithms
Merge Sort
Merge sort recursively sorts sub-sequences and merges them back together. Standard array implementations guarantee O(n log n) worst-case time using O(n) auxiliary space, with stability preserved when ties favor the left sub-array.
Mathematics & Algorithms
Quicksort and Partitioning
Quicksort partitions an array around a chosen pivot and recursively sorts the subarrays, achieving O(n log n) expected time with randomized pivots while retaining an O(n²) worst-case bound.
Mathematics & Algorithms
Shortest Path Problems Overview (BFS / Bellman-Ford / Floyd-Warshall)
Shortest path algorithms minimize total edge weight. Choosing the right algorithm depends on edge weight conditions, graph structure, and the source-target query scope: use BFS for unweighted graphs, Dijkstra for non-negative weights, and Bellman-Ford when negative weights are present.
Mathematics & Algorithms
Arrays and Python Lists
An array organizes elements by contiguous index; CPython's list uses a dynamically resized array of object pointers, offering O(1) indexed access and amortized O(1) tail appends while requiring O(n) element shifts for head insertions.
Mathematics & Algorithms
Binary Trees and Binary Search Trees (BST)
A binary tree gives each node at most two children, while a Binary Search Tree enforces ordering across left and right subtrees; operation cost scales with tree height, and an unbalanced BST can degenerate into a linked list.
Mathematics & Algorithms
Graph Data Structures
Graphs model pairwise relationships using vertices and directed, undirected, or weighted edges, trading off memory and lookup speed between adjacency lists and adjacency matrices.
Mathematics & Algorithms
Hash Tables and Python's dict / set
A hash table maps a key's hash value to a candidate bucket slot and confirms matches via equality comparison. With good hashing and load-factor control, lookups, insertions, and deletions run in average O(1) time.
Mathematics & Algorithms
Heaps and Priority Queues
A binary min-heap packs a complete binary tree into an array where every parent is no greater than its children, offering O(1) access to the minimum element and O(log n) insertion and removal.
Mathematics & Algorithms
Linked Lists
A linked list chains nodes together via pointer references. Given a node or its predecessor, pointer links can be spliced locally in O(1), whereas locating a value or indexing by position requires linear traversal.
Mathematics & Algorithms
Queues and Deques
Queues process items in First-In, First-Out (FIFO) order while deques support O(1) operations at both ends; thread, coroutine, and process queues add blocking synchronization.
Mathematics & Algorithms
Stack
A stack provides Last-In, First-Out (LIFO) access; in Python, list.append and trailing list.pop() implement a stack in amortized O(1) time and allow converting recursive traversals into explicit loops.
Mathematics & Algorithms
Trees
A rooted tree organizes nodes hierarchically so every node except the root has exactly one parent—ideal for recursively decomposable hierarchies, while an unrooted tree is a connected acyclic undirected graph.
Mathematics & Algorithms
Trie (Prefix Tree)
A Trie shares common paths by character or token prefix, supporting exact lookup, prefix matching, and autocomplete. Lookup cost scales with key length, while enumerating completions also scales with output size.
Mathematics & Algorithms
Bayes' Theorem and Bayesian Inference
Bayes' theorem updates a prior into a posterior using the likelihood. Every update requires an explicit hypothesis, evidence, and their joint or conditional probability model.
Mathematics & Algorithms
Derivatives: Rate of Change, Numerical Differentiation, and the Chain Rule
A derivative measures the instantaneous rate of change of a function at a point. The chain rule handles composite functions; finite differences approximate derivatives numerically, whereas automatic differentiation computes exact derivatives along elementary operations.
Mathematics & Algorithms
Eigenvalues and Eigenvectors
For a square matrix A, a nonzero vector v satisfying Av = λv is an eigenvector and λ is its eigenvalue. Negative real eigenvalues reverse direction, while a zero eigenvalue collapses the vector to zero.
Mathematics & Algorithms
Gradients and Backpropagation
The gradient collects the partial derivatives of a scalar function. At differentiable points under Euclidean unit directions, it points along steepest ascent; backpropagation applies the chain rule efficiently across a computation graph.
Mathematics & Algorithms
Linear Algebra Overview: Linear Systems, Linear Transformations, and Rank
Linear algebra studies vector spaces, linear mappings, and systems of linear equations. Once a basis is chosen for a finite-dimensional space, linear mappings can be represented as matrices; mappings with a bias term in neural networks are affine transformations.
Mathematics & Algorithms
Loss Functions: MSE, Cross-Entropy, and Perplexity
A loss function defines the objective optimised during training. MSE, MAE, Huber, and cross-entropy suit different error models; language model perplexity is the exponential of the average negative log-likelihood under a specified token evaluation protocol.
Mathematics & Algorithms
Matrices and Matrix Operations
Matrices organise coordinates or data in rows and columns. Matrix multiplication composes linear mappings and computes inner products in batches; dimensional compatibility is a necessary condition for the operation to be well-defined.
Mathematics & Algorithms
Normalization: Feature Scaling, BatchNorm, LayerNorm, and RMSNorm
Normalization and standardization rescale data along chosen dimensions. Input feature scaling and neural network layers such as BatchNorm, LayerNorm, and RMSNorm compute statistics over different axes and learn different affine parameters.
Mathematics & Algorithms
Optimization: Gradient Descent, Momentum, and Adam
Optimization searches for parameters that minimize an objective function. Gradient descent, Momentum, and Adam apply different update directions and step-size rules whose trajectories depend on the objective landscape, initialization, and hyperparameters.
Mathematics & Algorithms
Probability: Random Variables, Distributions, and Softmax Sampling
Probability quantifies uncertainty over events, while distributions characterize how random variables take values. Language models produce conditional token distributions via logits and normalization, then select outputs according to a decoding strategy.
Mathematics & Algorithms
Regularization: L1, L2, Dropout, and Weight Decay
Regularization improves generalization by constraining parameters, updates, model capacity, or the training procedure through techniques such as L1/L2 penalties, Dropout, early stopping, and data augmentation.
Mathematics & Algorithms
Statistics: Descriptive Metrics, Confidence Intervals, and Hypothesis Testing
Statistics summarizes data from samples and infers population properties, expressing uncertainty through standard errors, confidence intervals, and hypothesis tests aligned with the sampling and pairing design.
Mathematics & Algorithms
Vectors: Norms, Dot Products, and Cosine Similarity
In real coordinate space, a vector is an ordered tuple of coordinates. Norms measure magnitude, dot products connect magnitude with angle, and cosine similarity compares the direction of non-zero vectors.
Model Foundations
Diffusers: Diffusion Models Library
Diffusers provides composable neural backbones, noise schedulers, and pipelines for diffusion and flow-matching generative models, illustrated here through DDPM forward noising and reverse denoising.
Model Foundations
JAX: Composable Function Transformations for Numerical Computing
JAX combines a NumPy-like array API with composable function transformations such as grad, jit, and vmap to build differentiable, XLA-compiled, and automatically vectorized numerical programs.
Model Foundations
PEFT and LoRA: Parameter-Efficient Fine-Tuning
Parameter-efficient fine-tuning updates only a small subset of added or selected parameters; LoRA represents weight updates via low-rank matrices while keeping the base model frozen.
Model Foundations
PyTorch: Dynamic-Graph Deep Learning Framework
PyTorch provides tensor computation, automatic differentiation, and neural network modules, structuring training around forward passes, loss computation, backward gradient propagation, and optimizer steps.
Model Foundations
Scikit-learn: The Classical Machine Learning Toolkit
scikit-learn provides a unified estimator interface, preprocessing transformers, model selection utilities, and evaluation metrics for classical machine learning. Wrapping preprocessing and estimators inside a Pipeline prevents data leakage during cross-validation.
Model Foundations
TensorFlow and Multi-Backend Keras
TensorFlow provides tensors, automatic differentiation, and compiled execution graphs; Keras 3 serves as a high-level modeling API across TensorFlow, JAX, and PyTorch backends.
Model Foundations
Hugging Face Transformers: A Unified Interface for Pre-trained Models
Transformers provides configuration, tokenization, model loading, inference, and training interfaces across model architectures. While Auto classes reduce boilerplate, input formats, task heads, and generation settings still require per-model verification.
Model Foundations
Activation Functions
Activation functions introduce nonlinearity into neural networks; their derivatives, saturation regions, and output scales directly shape optimization behavior.
Model Foundations
Backpropagation
Backpropagation applies the chain rule backward along a computation graph to compute gradients of the loss with respect to intermediate quantities and parameters, while parameter updates are executed separately by an optimiser.
Model Foundations
Convolutional Neural Networks (CNNs)
Convolutional neural networks scan local neighborhoods with shared convolutional kernels and stack layers to build hierarchical feature representations.
Model Foundations
Diffusion Models
Diffusion models learn the reverse generative process of a gradual forward noising schedule, synthesizing data from noise across multi-step or distilled sampling trajectories.
Model Foundations
Forward Propagation
Forward propagation executes layer-by-layer transformations along a model's computation graph to map inputs to predictions or loss values without updating parameters.
Model Foundations
Generative Adversarial Networks (GANs)
A Generative Adversarial Network jointly trains a generator and a discriminator so that generated samples approximate the real data distribution under the chosen objective.
Model Foundations
Long Short-Term Memory Networks (LSTM)
An LSTM uses input, forget, and output gates to regulate its cell state and hidden state, providing an additive path for learning long-range sequence dependencies.
Model Foundations
Neural Networks
A neural network composes learnable linear or affine transformations with non-linear activation functions, adapting to input-output relationships through training.
Model Foundations
The Perceptron
A perceptron performs binary classification via a linear score and threshold, updating its weights whenever an example is misclassified.
Model Foundations
Recurrent Neural Networks (RNN)
Recurrent neural networks pass a hidden state from one sequence step to the next so that current computations depend on earlier context.
Model Foundations
Vision Transformer (ViT)
A Vision Transformer represents an image as a sequence of visual patch tokens and models their relationships using Transformer attention blocks.
Model Foundations
Attention Mechanism
Scaled dot-product attention computes alignment weights from queries and keys to aggregate values; multi-head attention combines outputs from multiple parallel projection subspaces.
Model Foundations
Context Window
A context window is the token range or budget a model can process in a single pass; upper limits and input/output counting rules depend on the model and service.
Model Foundations
Direct Preference Optimization (DPO)
Building on a reference policy, DPO directly optimizes the policy using preference pairs and a relative log-probability loss; classic offline DPO requires neither a separate reward model nor online rollouts.
Model Foundations
Embeddings
An embedding encodes discrete tokens or complex inputs into dense vectors whose similarity structure reflects the training objective and downstream usage.
Model Foundations
Fine-Tuning
Fine-tuning continues optimisation from pre-trained parameters to adapt a model to a target task, domain, or output behaviour.
Model Foundations
Inference
Inference computes model predictions; autoregressive LLMs typically prefill the prompt first, then iteratively decode and select output tokens.
Model Foundations
Instruction Tuning (SFT)
Instruction tuning trains a model on supervised data pairing instructions with target responses to improve how it follows tasks and conversational conventions.
Model Foundations
Large Language Models (LLM)
Large language models are large-scale models trained on massive text corpora; this tutorial focuses on generative LLMs that autoregressively predict the next token using a Transformer architecture.
Model Foundations
Pre-training
Pre-training first learns transferable representations or generative capabilities on broad datasets; the example in this tutorial uses a text self-supervised next-token prediction objective.
Model Foundations
Reasoning Models
Reasoning models improve multi-step inference through dedicated training and test-time compute allocation, without necessarily exposing their full internal reasoning trace to the user.
Model Foundations
Reinforcement Learning from Human Feedback (RLHF)
RLHF uses human feedback as a learning signal; the classic LLM pipeline trains a reward model on preferences and improves generation with constrained policy optimization.
Model Foundations
Tokenisation
Tokenisation converts input text into tokens and their integer IDs; granularity and special tokens are determined by the tokeniser paired with the target model.
Model Foundations
Transformer
The Transformer organises sequence computation using attention, feed-forward modules, and residual connections, with encoder-only, decoder-only, and encoder-decoder variants.
Model Foundations
Bias-Variance Tradeoff
Under squared error loss, the bias-variance decomposition splits expected prediction error into systematic squared bias, variance induced by training-set sampling, and irreducible noise.
Model Foundations
Classification
Classification learns to map inputs to discrete categories, supporting decisions through class probabilities, decision scores, or direct label predictions.
Model Foundations
Clustering
Clustering organises similar samples into groups based on a chosen distance metric, density criterion, or model assumption, without pre-assigning business categories to individual samples.
Model Foundations
Cross-Validation
Cross-validation repeatedly partitions data into training and validation splits, using multiple validation results to evaluate a fixed learning pipeline.
Model Foundations
Feature Engineering
Feature engineering transforms raw data into model-ready representations through encoding, scaling, interaction terms, mathematical transforms, and domain aggregations.
Model Foundations
Feature Selection
Feature selection retains a subset of input features to reduce cost, improve interpretability, or control overfitting.
Model Foundations
Overfitting
Overfitting occurs when a learning pipeline adapts too closely to incidental noise or quirks in the training or tuning data, so generalization fails to improve alongside training performance.
Model Foundations
Regression
Regression models learn the relationship between input features and a numerical target, producing continuous predictions evaluated with task-appropriate error metrics.
Model Foundations
Semi-Supervised Learning
Semi-supervised learning combines a small labeled dataset with a larger pool of unlabeled examples, leveraging distributional or consistency assumptions to improve learning.
Model Foundations
Supervised Learning
Supervised learning fits a mapping from inputs to outputs using labeled examples with target values, and evaluates generalization on held-out data not used during fitting.
Model Foundations
Train, Validation, and Test Splits
Splitting data into training, validation, and test sets separates parameter fitting, model selection, and final evaluation; the splitting strategy should mirror real deployment targets and temporal order.
Model Foundations
Underfitting
Underfitting occurs when the current feature representation, model capacity, or training procedure cannot adequately capture the underlying task relationship, resulting in poor performance on both training and validation sets.
Model Foundations
Unsupervised Learning
Unsupervised learning discovers structure in data without designated target labels, such as clustering, dimensionality reduction, and density estimation.
AI Engineering
Agent Loop
An agent loop repeatedly executes model decision-making, tool invocation, and observation feedback until the task finishes or a code-level termination guard triggers.
AI Engineering
AI Agents
In this tutorial, an LLM Agent dynamically chooses actions based on a goal and observations, while the host application executes tools and manages state, budgets, and termination.
AI Engineering
AutoGen
AutoGen structures multi-agent applications around message passing and model clients; this guide covers the layered Core, AgentChat, and Extensions APIs.
AI Engineering
CrewAI
CrewAI coordinates collaboration across models, tools, and tasks using high-level abstractions such as Agent, Task, Crew, and Flows.
AI Engineering
Function Calling
A function calling protocol lets a model propose tool names and structured arguments, which the host application executes and returns matched by call ID.
AI Engineering
LangChain
LangChain composes LLM applications through standardized model, prompt, and tool interfaces, using langchain-core Runnables to build execution pipelines.
AI Engineering
LangGraph
LangGraph models stateful workflows and agents as explicit graphs of shared state, nodes, and edges, complete with execution checkpointing.
AI Engineering
LlamaIndex
LlamaIndex structures LLM applications around data connectors, Nodes, indexes, retrieval, and response synthesis, while also providing Agent and event-driven Workflow components.
AI Engineering
Agent Memory
An agent memory system persists within-session or cross-session information in application state or external storage and selectively loads relevant facts into context.
AI Engineering
Multi-Agent Systems
A multi-agent system coordinates multiple decision-making units through specialized roles, scoped tools, and structured communication patterns to complete a task.
AI Engineering
Planning
Planning specifies goals, subtasks, and dependencies while adjusting execution schedules based on observations; a DAG is a natural representation for acyclic dependencies.
AI Engineering
Reasoning in Agents (ReAct)
Agent reasoning organizes goals and environmental observations into next actions or final conclusions; ReAct demonstrates an interleaved reasoning, action, and observation loop.
AI Engineering
Reflection (Self-Refine)
Reflection inspects an initial draft using unit tests, environment signals, or evaluator feedback and revises it; actual gains depend on whether the feedback accurately pinpoints real defects.
AI Engineering
Tool Calling
Tool calling encompasses tool schema definitions, model-proposed invocations, application-side validation and authorised execution, and feeding execution results back to the model.
AI Engineering
Workflow Orchestration
Workflow orchestration schedules tasks according to explicit control logic, managing dependencies, branching, concurrency, retries, and state recovery.
AI Engineering
Benchmarks
A benchmark standardizes the dataset, task format, and scoring protocol to provide a shared reference point for comparing models or AI systems, whether public or internal.
AI Engineering
Evaluation Pipeline
An evaluation pipeline organizes dataset loading, system execution, scoring, aggregation, and gating reports into a repeatable, auditable workflow.
AI Engineering
Golden Datasets for AI Evaluation
A golden dataset organizes application inputs, reference evidence, and grading criteria into a reviewed, traceable evaluation set.
AI Engineering
Hallucination Detection
Hallucination detection identifies contradictions against trusted facts or provided evidence, unsupported claims, and fabricated answers when evidence is insufficient.
AI Engineering
Human Evaluation
Human evaluation relies on reviewers annotating correctness, preference, or other quality dimensions under explicit guidelines, serving as an evidence source for building and calibrating evaluations.
AI Engineering
LLM-as-a-Judge
An LLM judge evaluates outputs against a scoring rubric to provide a scalable automated evaluation signal, which must be calibrated against reliable reference samples.
AI Engineering
Quality Metrics (EM, F1, ROUGE, Recall@k, MRR, nDCG)
Quality metrics convert target system behaviors into numerical scores, with generation overlap, retrieval recall, and ranking quality measuring distinct dimensions.
AI Engineering
Regression Testing for LLM Apps
Regression testing compares system behavior before and after changes on an agreed dataset and setup, tracks item-by-item regressions and improvements, and enforces preset release gates.
AI Engineering
Chain-of-Thought (CoT) Prompting
Chain-of-Thought prompting uses intermediate-step examples or instructions to guide a model through multi-step responses, serving as an evaluable technique for specific models and tasks.
AI Engineering
Context Compression
Context compression shortens input length through extraction, summarisation, or other transformations while retaining as much task-relevant information as possible.
AI Engineering
Context Management
Context management selects system instructions, dialogue history, retrieved documents, tool outputs, and external memory to fit the current task and token budget.
AI Engineering
Few-shot Prompting
Few-shot prompting places several task demonstrations directly into the context window to illustrate target labels, formatting, or handling patterns without updating model weights.
AI Engineering
JSON Schema
JSON Schema uses standard keywords to describe constraints on JSON instances, validating structure, types, and field values.
AI Engineering
Prompt Design
Prompt design specifies the task, context, input boundaries, constraints, and output conventions so a model can produce evaluable work.
AI Engineering
Structured Output
Structured output ensures model responses conform to an agreed data schema through prompting, validation with retry, or inference-time decoding constraints.
AI Engineering
System Prompt
A system prompt provides application-level role and behavioral guidance to a model, with exact role names, priority, and delivery defined by the model or API.
AI Engineering
Chroma
Chroma manages vectors, documents, and metadata in collections, supporting in-memory, local persistent, and client-server deployments.
AI Engineering
Document Chunking
Document chunking splits source material into units suited for model context limits and retrieval granularity while preserving provenance and essential context.
AI Engineering
Embedding Model
An embedding model encodes text and other inputs into vectors, supporting retrieval and downstream tasks through similarity metrics aligned with its training objective.
AI Engineering
FAISS
Faiss is a library for efficient vector similarity search and clustering, providing exact and approximate index families that run directly inside your application process.
AI Engineering
Hybrid Search
Hybrid search combines candidates or rankings from multiple retrieval methods to leverage their complementary strengths across lexical and semantic matching.
AI Engineering
Keyword Search (BM25)
Keyword search matches tokenized lexical terms, and BM25 ranks documents by combining term-frequency saturation, inverse document frequency (rarity), and document-length normalization.
AI Engineering
Knowledge Base
A knowledge base combines searchable documents, provenance and version metadata, and maintenance workflows for permissions, incremental updates, and deletions.
AI Engineering
Metadata Filtering
Metadata filtering adds structured constraints—such as version, timestamp, category, tenant, or access scope—directly into the retrieval process.
AI Engineering
Milvus
Milvus provides vector and scalar data retrieval across Lite, Standalone, and Distributed deployment modes.
AI Engineering
pgvector
pgvector adds a vector data type, distance operators, and approximate nearest-neighbor indexes to PostgreSQL, integrating vector retrieval directly with SQL filtering and ACID transactions.
AI Engineering
Qdrant
Qdrant organizes data as points carrying vectors and JSON payloads, supporting filtered similarity search across embedded, single-node, and distributed deployments.
AI Engineering
RAG (Retrieval-Augmented Generation)
Retrieval-Augmented Generation retrieves external evidence first and then prompts the model to answer using that evidence; retrieval, generation, and citations each require separate validation.
AI Engineering
Reranker
A reranker rescores and reorders retrieved candidate passages, commonly implemented as a cross-encoder that jointly encodes the query and document.
AI Engineering
Semantic Search
Semantic search matches queries against documents using learned representations; this tutorial focuses on dense vector retrieval.
AI Engineering
Vector Databases
A vector database manages embedding vectors alongside their associated payload data, providing similarity search together with update, filtering, and persistence capabilities.
Data & Databases
Data Cleaning
Data cleaning normalizes formats according to a data contract, identifies missing values, duplicates, and anomalies, and preserves both processing provenance and quarantined records.
Data & Databases
Database Indexes
A database index maintains an auxiliary data structure used to locate, sort, or cover queries efficiently, trading off extra storage space, index maintenance, and write amplification.
Data & Databases
ETL (Extract, Transform, Load)
ETL extracts source data, transforms it according to explicit validation and normalization rules, and loads it into target storage; ELT loads raw data into the target system first and runs transformations inside the warehouse.
Data & Databases
MongoDB (Document Database)
MongoDB organizes data as BSON documents and provides querying, aggregation, indexing, schema validation, and transactions depending on deployment configuration.
Data & Databases
MySQL (InnoDB Relational Database)
MySQL is a relational database management system; focusing on the InnoDB storage engine, this tutorial covers clustered indexes, transactions, character sets, and consistent nonlocking reads.
Data & Databases
NoSQL (Non-Relational Databases)
NoSQL is an umbrella term for document, key-value, wide-column, and graph databases; systems must be evaluated by their specific data model, query capabilities, transaction semantics, and consistency guarantees.
Data & Databases
Data Pipelines and Workflow Orchestration
A data pipeline organizes processing tasks and their dependencies into an executable DAG, while orchestration manages scheduling, retries, checkpoint state, failure propagation, and observability.
Data & Databases
PostgreSQL (Object-Relational Database)
PostgreSQL is an object-relational database supporting SQL, ACID transactions, MVCC, JSONB, partial indexes, and extensions such as pgvector within a single system.
Data & Databases
Redis (In-Memory Data Structure Server)
Redis provides low-latency reads and writes, expiration, counters, and other service capabilities across multiple data structures, commonly used for caching, sessions, and quotas.
Data & Databases
SQL (Structured Query Language)
SQL declaratively specifies the target of queries and data manipulations while the database engine selects an execution plan based on relational semantics and optimizer rules; exact syntax, constraints, and transactional behaviors vary across SQL dialects.
Data & Databases
Data Validation
Data validation checks whether datasets satisfy schema, business, and batch-level contracts, emitting traceable failure reports for quarantine or pipeline gating.
Data & Databases
Data Versioning
Data versioning locates input datasets through traceable snapshots or identifiers and preserves sufficient blobs, manifests, and processing metadata to support auditing, reproduction, and rollback.
Data & Databases
Data Warehouses (OLAP, Columnar Storage, and Star Schemas)
A data warehouse stores integrated historical data optimized for analytical scans and aggregations, commonly using columnar storage and dimensional star schemas.
Local Deployment
API Gateway / LLM Gateway
An API gateway serves as a unified, controlled entry point for clients accessing backend services, centralizing authentication, authorization, request validation, rate limiting, routing, and metering. An LLM gateway must also handle model capability differences, token budgets, and streaming protocols rather than assuming identical behavior just by swapping base_url.
Local Deployment
Batch Inference
Batch inference groups multiple inputs into jointly scheduled compute work to raise hardware utilization and amortize per-request overhead. Autoregressive generation still involves multiple forward passes; submitting a batch of requests does not reduce an entire multi-token response to a single forward pass. Provider offline Batch APIs operate at a separate scheduling layer.
Local Deployment
Caching in LLM Applications: Exact Response Cache, Semantic Cache, and Prefix KV Cache
LLM caching reuses generated responses, retrieval results, or internal inference states when input context and validity constraints permit. Exact response caching, semantic similarity caching, and prefix KV caching reuse different artifacts, giving each distinct hit conditions, permission boundaries, and error risks.
Local Deployment
LLM Inference Latency Optimization
Latency optimization reduces the time to first valid output or total completion time along an explicitly defined request path. Measure queueing, prefill, decode, and network segments first, then evaluate context reduction, state reuse, scheduling, or compute reduction alongside output quality.
Local Deployment
llama.cpp: CPU and Edge LLM Inference Engine
llama.cpp is a C/C++ project providing LLM inference, quantization utilities, and an HTTP server across CPUs and diverse accelerator backends. GGUF is a binary file format storing tensors and metadata; by itself it does not guarantee model compatibility, quantization quality, or a specific inference speed.
Local Deployment
Load Balancing for Model Serving
Load balancing distributes requests across multiple model replicas according to capacity, health status, and routing policy. It reduces per-replica queueing hotspots and improves fault tolerance, though it cannot create extra compute capacity when total demand exceeds cluster capacity.
Local Deployment
Model Serving
Model serving exposes model inference as a managed service interface and handles lifecycle management, input constraints, scheduling, fault handling, and observability. Having a similar API shape does not imply full compatibility with a commercial API or production-grade capacity.
Local Deployment
Ollama (Local LLM Runtime and Serving Tool)
Ollama is a local runtime tool providing model management, configuration, and inference APIs. It loads models on demand, retains or unloads runtime state, and exposes both a native API and a partial OpenAI-compatible API; actual backend engines and capabilities vary by model and version.
Local Deployment
Streaming Inference for LLMs
Streaming inference delivers incremental generation chunks to the client progressively so users can begin reading before the full response finishes.
Local Deployment
TensorRT (NVIDIA GPU Inference Optimization Engine)
TensorRT is NVIDIA's inference optimization and execution toolchain that compiles supported models into engines tailored to a target GPU environment. Model typing, dynamic shapes, precision representation, and hardware compatibility modes depend on the target TensorRT version; legacy build flags cannot be treated as version-independent interfaces.
Local Deployment
Triton Inference Server (NVIDIA Multi-Framework Serving)
NVIDIA Triton Inference Server manages model repositories, backend execution, dynamic batching, instance groups, and observability endpoints across multiple frameworks.
Local Deployment
vLLM (High-Throughput LLM Inference and Serving Engine)
vLLM is an inference and serving engine for large language models providing request scheduling, KV state management, and model execution via PagedAttention and continuous batching.
Model Foundations
BF16 (bfloat16, Brain Floating Point)
BF16 is a 16-bit floating-point format with 1 sign bit, 8 exponent bits, and 7 explicit fraction bits—matching FP32's normal dynamic range with coarser precision than FP16.
Model Foundations
Knowledge Distillation
Knowledge distillation trains a student model using supervision signals—such as output probability distributions, intermediate features, or generated completions—from a teacher model.
Model Foundations
FP16 (Half-Precision Floating Point)
FP16 typically refers to IEEE 754 binary16, representing numbers with 1 sign bit, 5 exponent bits, and 10 explicit fraction bits. It cuts storage in half compared to FP32 but has a much narrower normal dynamic range; training in FP16 typically pairs it with FP32 accumulation, FP32 master weights, and dynamic loss scaling.
Model Foundations
FP32 (Single-Precision Floating-Point)
FP32 typically refers to IEEE 754 binary32: 1 sign bit, 8 exponent bits, and 23 explicit fraction bits, providing 24 bits of significand precision for normal numbers (roughly 7 decimal digits) while remaining subject to rounding, overflow, underflow, and accumulation error.
Model Foundations
INT4 / 4-Bit Quantization (Including NF4 and GGUF K-Quants)
4-bit quantization represents weights and other tensors using 4-bit codes, typically packing two codes per byte. Uniform INT4, NF4, and mixed-precision GGUF K-quants use distinct codebooks, block sizes, and metadata, so they should not be treated as a single uniform integer arithmetic format.
Model Foundations
INT8 Quantization
INT8 quantization represents approximate numerical values using 8-bit integer codes along with scale factors and zero points. Whether both weights and activations are quantized, and whether execution uses integer matrix multiplication or runtime dequantization, depends on the scheme; signed 8-bit codes span -128 to 127, though symmetric implementations often deliberately restrict the range to -127 to 127.
Model Foundations
LoRA (Low-Rank Adaptation Fine-Tuning)
Standard LoRA freezes base model weights on selected layers and trains low-rank matrices A and B to represent incremental weight updates. Trainable parameters and optimizer states are typically reduced by orders of magnitude; whether biases or extra modules are trained, whether adapters are merged, and runtime serving overhead all depend on configuration.
Model Foundations
Pruning
Pruning masks or removes neural network parameters or structural units according to an importance criterion. Zeroing out weights produces only a mask or sparse values; reducing actual memory footprint and inference compute requires structural compaction, a sparse storage format, or hardware-matched sparse execution kernels.
Model Foundations
QLoRA: LoRA Fine-Tuning on a 4-Bit Quantized Base Model
QLoRA trains LoRA adapters on top of a frozen, quantized base model, combining 4-bit NormalFloat (NF4), double quantization, and paged optimizers to reduce training memory. Base model parameters remain frozen while adapters train in higher precision, with gradients backpropagating through the dequantized base weights to the adapters.
Model Foundations
Quantization
Quantization encodes weights, activations, or states into lower-bit numerical representations together with decoding rules such as scale factors, zero points, or codebooks. Its goal is typically to reduce storage, memory bandwidth, or compute cost; actual speedups and accuracy trade-offs must be validated across kernels, hardware, and target tasks.
AI Engineering
Cost Optimization for LLM Applications
LLM cost optimization reduces total end-to-end expenditure per completed task under acceptable quality, latency, and reliability constraints—accounting for model calls, retries, tools, caching, routing, storage, and self-hosted resources.
AI Engineering
Graceful Degradation: Retries, Circuit Breakers, Fallback Models, and Static Fallbacks
Graceful degradation switches to fallback capabilities, cached responses, human handoff, or explicit failure according to predefined quality and availability targets when dependencies fail or resources run short. Retries are recovery attempts and circuit breakers are protective mechanisms; they work alongside degradation but are distinct concepts.
AI Engineering
Error Boundary
An error boundary is an explicit fault-handling boundary around a component: it limits resource usage and wait times, logs failures, and decides according to business rules whether to propagate, retry, or return a marked fallback result. In backend engineering this is a practical design pattern rather than an exact equivalent of React's rendering error boundary.
AI Engineering
Failure Analysis (Error Analysis for LLM Applications)
Failure analysis is the process of identifying failure categories, auditing annotations, formulating fix hypotheses from traceable samples and explicit scoring criteria, and validating changes on held-out data.
AI Engineering
Model Routing
Model routing selects a candidate model or execution path for each request under given permission, quality, cost, and latency constraints. Prompt length, classifier probabilities, and self-reported confidence are only routing signals that must be validated against real task outcomes.
AI Engineering
Observability for AI Systems
AI observability is the ability to determine what a request passed through and where it slowed down or failed using telemetry signals generated by the system, combined with evaluation to analyze output quality. Logs, metrics, and traces provide evidence, but do not automatically prove an answer is correct or identify root causes.
AI Engineering
Telemetry and OpenTelemetry
Telemetry is the mechanism for collecting, processing, and transmitting runtime signals; OpenTelemetry provides vendor-neutral APIs, SDKs, protocols, and a Collector. It standardizes instrumentation, though backend capabilities, semantic convention versions, and retention policies still require separate configuration.
AI Engineering
Distributed Tracing
Distributed tracing records related operations as timestamped, context-carrying spans connected via parent-child relationships or span links. While a trace often appears as a call tree, asynchronous messaging, batching, and multi-source workflows may also require link relationships.
Programming Foundations
C/C++ (Low-Level Performance and the Foundation of AI Frameworks)
C and C++ are distinct systems programming languages; C++ inherits much of C's syntax and adds classes, templates, and RAII, though it is not a strict superset of C. Both are widely used in numerical libraries, runtimes, and performance-critical kernels of AI frameworks.
Programming Foundations
CUDA (General-Purpose Computing on NVIDIA GPUs)
CUDA is NVIDIA's parallel computing platform and programming model, enabling workloads to run on supported GPUs via C++, Python, and accelerated libraries. A CUDA kernel organizes massive numbers of threads into blocks and grids, with real-world performance governed by workload arithmetic intensity and memory access patterns.
Programming Foundations
Go (Concurrency & Cloud-Native Services)
Go is a general-purpose compiled language with static typing, garbage collection, goroutines, and channels; the standard toolchain typically builds a single executable embedding the Go runtime, though dynamic linking and deployment dependencies still depend on cgo, OS libraries, and build flags.
Programming Foundations
Java (Enterprise Backends and the JVM Toolchain)
Java is a general-purpose statically typed language with classes, interfaces, and records, typically compiled to JVM bytecode; the JVM provides just-in-time compilation, garbage collection, and concurrency runtimes, while the language is not restricted to pure object-oriented design or a single deployment model.
Programming Foundations
JavaScript / TypeScript Toolchain (Runtimes, Packages, and Build Tools)
The JavaScript and TypeScript toolchain spans language specifications, execution runtimes, module systems, package managers, static type checkers, bundlers, and application frameworks. Each layer has a distinct responsibility, and TypeScript's compile-time types cannot replace runtime validation of external data.
Programming Foundations
Rust (Memory-Safe Systems Programming Language)
Rust enforces memory safety and data-race freedom in safe Rust at compile time through ownership, borrowing, and lifetime rules, managing resources deterministically via RAII without a tracing garbage collector; inside unsafe blocks and FFI boundaries, upholding safety invariants remains the author's responsibility.
Programming Foundations
SQL (From a Data Processing Perspective)
SQL is a family of declarative languages for querying and manipulating relational data; database engines choose execution plans based on query semantics, table statistics, and storage structures, while dialect syntax, transaction isolation, and type coercion differ across SQLite, PostgreSQL, and MySQL.
Web & Self-Hosting
Cloud Computing (On-Demand Compute, Storage & Managed Services)
Cloud computing provides on-demand access to a shared pool of configurable computing resources and services characterized by network access, resource pooling, rapid elasticity, and measured service; pay-as-you-go billing is the standard commercial model, while specific SLAs, isolation guarantees, and responsibility boundaries depend on the service tier.
Web & Self-Hosting
Containers (Processes Isolated by Namespaces and Bounded by cgroups)
A Linux container in this tutorial is a group of isolated processes organized by a container runtime using namespaces, cgroups, filesystem mounts, and kernel security mechanisms; standard Linux containers share the host Linux kernel while the container image supplies the user-space filesystem.
Web & Self-Hosting
Docker (Tools for Building, Running, and Managing Containers)
Docker provides a toolchain for building, distributing, and running containers; the CLI communicates with its backend daemon to manage images, containers, networks, and persistent volumes, with exact behavior depending on Docker Engine or Desktop, the host platform, and configuration.
Web & Self-Hosting
Docker Compose (Multi-Container Application Orchestration)
Docker Compose declares multi-service applications alongside their networks, volumes, and configurations in a Compose file, creating, updating, and stopping those resources through the Docker Engine. Dependency conditions coordinate startup order, while runtime fault recovery must still be handled by the application.
Web & Self-Hosting
Container Images (Layering, Build Cache & Security)
A container image consists of a manifest, a configuration object, and filesystem layers referenced by content digests; running containers typically mount a writable layer on top of these immutable layers. Image tags are mutable, whereas a digest identifies a specific immutable content object.
Web & Self-Hosting
Kubernetes (Container Orchestration)
Kubernetes manages containerized workloads through declarative API objects and reconciliation control loops that drive observed cluster state toward desired state; it provides scheduling, service discovery, and lifecycle management, though convergence and high availability still depend on underlying compute, network, and application health.
Web & Self-Hosting
Linux Commands (Text Processing, File Search, and Permissions)
The Linux command line uses the shell to coordinate commands, file descriptors, and pipelines to operate the system; this tutorial focuses on text processing, file discovery, and mode permissions on GNU/Linux, noting that not every command reads standard input and writes standard output.
Web & Self-Hosting
Process Management (Processes, Signals, Exit Codes, and Resource Limits)
A process is an operating-system-managed execution instance of a program, encompassing address space, threads, file descriptors, and identity state. Process management covers inspection, signal delivery, wait/reaping, and resource limits through OS-specific interfaces.
Web & Self-Hosting
Shell Scripting (Writing Defensive Bash Scripts)
A shell script is a command program interpreted by a shell; Bash provides variables, control flow, functions, redirection, and job control to orchestrate CLI tools, but does not automatically provide transactions, privilege isolation, or comprehensive error handling.
Web & Self-Hosting
SSH (Secure Remote Login and Tunneling)
SSH is a cryptographic protocol suite providing server host verification, encrypted transport, and user authentication; OpenSSH builds on it to support remote command execution, file transfer, and port forwarding, with server host keys and user authentication keys serving distinct roles.
Account Security
Access Control (Least Privilege & Default Deny)
Access control ensures that principals can perform only explicitly authorized actions on authorized resources; default-deny and least-privilege policies must evaluate identity, resource scope, action, expiration, and execution context together rather than relying solely on a role name or scope string.
Account Security
Authentication (Verifying Who You Are)
Authentication establishes the identity of a requesting principal by verifying credentials and their trust chain; password verification, sessions, JWTs, and OIDC each require strict validation rules—merely presenting a credential or decoding a JWT does not mean authentication succeeded, and authorization remains a separate subsequent decision.
Account Security
Authorization (What You Are Allowed to Do)
Authorization determines whether an authenticated subject is permitted to perform a specific action on a resource under given environmental attributes. Models such as RBAC, ABAC, and ReBAC express policies, while enforcement points must cover every server-side access path.
Account Security
Data Leakage (Sensitive Information Disclosure in AI Systems)
Data leakage occurs when information reaches an unauthorized party in violation of its access policy; API responses, logs, unhandled exceptions, retrieval pipelines, caches, and model outputs can all act as leakage channels, while sensitivity depends on data classification and business rules.
Account Security
Jailbreak (Bypassing Model Safety Policies)
A jailbreak generally refers to inputs and interactions crafted to induce a model into bypassing its safety policies. OWASP LLM01:2025 treats it as one objective of prompt injection; while research terminology boundaries vary, applications must independently block unauthorized actions.
Account Security
Prompt Injection
Prompt injection is the risk that crafted input causes a language model or downstream system to deviate from the application's intended instructions; indirect prompt injection works through external content—such as web pages, retrieved chunks, or tool outputs—by disguising low-trust data as executable instructions.
Account Security
Sandboxing (Isolated Environments for Running Untrusted Code)
A sandbox is a constrained execution environment built around an explicit threat model; filesystem, network, identity, syscall, resource, and lifecycle boundaries jointly define its isolation strength, whereas timeouts, chdir, clearing environment variables, or stripping Python builtins alone cannot contain hostile code.
Account Security
Secret Management (Generation, Storage, Injection & Rotation)
Secret management governs the full lifecycle of credentials from generation, provisioning, storage, and runtime use to rotation, revocation, and destruction; outbound calls to third-party services require retrieving the original secret from protected storage, whereas verifying inbound high-entropy tokens only requires storing a cryptographic verification digest.
AI Engineering
Branching Strategies (Git Flow, GitHub Flow, and Trunk-Based Development)
A branching strategy is a team convention defining branch responsibilities, lifespan, code review and merge workflows, and release practices. Git Flow, GitHub Flow, and Trunk-Based Development are practical collaboration patterns whose selection depends on release cadence, multi-version maintenance, and automated verification maturity.
AI Engineering
CI/CD (Continuous Integration and Continuous Delivery/Deployment)
Continuous Integration (CI) is the practice of integrating small changes frequently into a shared mainline and getting rapid feedback through automated builds and tests. Continuous Delivery keeps software ready to release on demand; Continuous Deployment goes further by automatically promoting changes that pass the release pipeline into production.
AI Engineering
Git (Distributed Version Control System)
Git is a distributed version control tool that organizes version history through content-addressable objects and references. A standard full clone allows committing and inspecting history locally; a branch is a movable reference pointing to a commit, and HEAD normally points to the current branch or directly to a commit.
AI Engineering
GitHub (Code Hosting & Collaboration Platform)
GitHub is a platform built around Git repositories that provides code hosting, Pull Request reviews, Issues, workflow automation, and access control. Git manages versions locally while GitHub manages collaborative services around repositories; the two can be used independently.
AI Engineering
GitLab (Integrated DevOps Platform)
GitLab is a platform providing Git repository hosting, Merge Requests, CI/CD, and related DevOps capabilities across both hosted and self-managed deployments. GitLab creates jobs from pipeline configurations for Runners to pick up and execute; features and licensing depend on the deployment model and edition.
AI Engineering
Package Management (Dependency Declaration, Resolution, and Lockfiles)
Package managers resolve and install dependencies based on version constraints, target platforms, and available artifacts. Lockfiles record resolved versions along with sources, markers, or hashes to help reconstruct dependencies across covered environments, though they do not by themselves guarantee identical runtime behavior across operating systems.
AI Engineering
Pipeline (DAGs, Parallelism & Caching)
A pipeline breaks work into dependent steps scheduled by an executor. This tutorial models pipelines as a DAG where nodes represent steps and edges represent prerequisite dependencies; parallelism, retries, caching, and failure handling must each be defined explicitly.
AI Engineering
Version Control
A version control system records explicitly saved file versions and their relationships, supporting diff inspection, history tracing, and collaborative merging. It does not automatically save every keystroke; which states can be restored depends on saved objects, references, and retention policies.
Web & Self-Hosting
CSS (Cascading Style Sheets: Cascade, Box Model, and Layout)
CSS specifies document presentation using selectors and declarations. When multiple declarations compete, the browser resolves the winner through the cascade algorithm by weighing applicability, origin and importance, cascade layers, inline styles, specificity, and source order; specificity alone is not the entire algorithm.
Web & Self-Hosting
Django (Batteries-Included Full-Stack Python Web Framework)
Django is a Python web framework that bundles an ORM, schema migrations, authentication, templates, forms, and an admin interface under unified conventions, while data modeling, endpoint authorization, query performance, and deployment security still require careful application design.
Web & Self-Hosting
FastAPI (Type-Hinted Python Asynchronous Web Framework)
FastAPI is a Python ASGI web framework built on Starlette and Pydantic that uses type annotations and data models for parameter parsing, validation, and OpenAPI generation. Path operations can be defined as asynchronous or synchronous functions, with actual concurrency determined by the call chain, executor, and resource limits.
Web & Self-Hosting
Flask (Lightweight Python Web Framework)
Flask is a WSGI-based Python web microframework that provides routing, request/response handling, templating, and signed-cookie sessions out of the box, while letting you compose databases, forms, and authentication as needed. Calling it a microframework describes its focused core, not a limit on application scale.
Web & Self-Hosting
HTML (Document Structure & the DOM)
HTML is the markup language that describes web page structure and semantics; browsers parse HTML into a DOM tree and combine it with stylesheets, scripts, and other assets to build the page. The live DOM can differ from the raw HTML source and can be mutated by JavaScript after loading.
Web & Self-Hosting
HTTP (Hypertext Transfer Protocol)
HTTP is an application-layer protocol centered on request and response semantics, where method, target, header fields, status code, and content together express an interaction. HTTP/1.1, HTTP/2, and HTTP/3 preserve these core semantics while differing in message encoding and underlying transport.
Web & Self-Hosting
JavaScript (The Universal Language of Browsers and Node.js)
JavaScript is a dynamic language whose core semantics are defined by the ECMAScript specification and executed across hosts such as browsers and Node.js. A single JavaScript execution agent typically schedules work via an event loop, while Workers can run on separate threads and browsers also execute WebAssembly.
Web & Self-Hosting
Next.js (Full-Stack React Framework)
Next.js is a React-based web framework providing file-system routing, Server and Client Components, data fetching, rendering modes, and Route Handlers. When a page renders and how it is cached depend on route configuration, the data APIs it reads, and the caching mechanisms applied.
Web & Self-Hosting
React (Declarative Component UI Library)
React is a component library for building user interfaces. Components describe the UI from props and state; updates trigger necessary render calculations, which the commit phase reconciles into the host UI. In the browser DOM, the number of component function renders does not equal the number of actual DOM mutations.
Web & Self-Hosting
REST API (Resource-Oriented HTTP Interface Design)
REST is an architectural style centered on resources and their representations under a set of constraints including stateless interactions, cacheability, and a uniform interface. JSON-over-HTTP APIs can borrow these principles, though using noun URLs, JSON payloads, and HTTP verbs alone does not constitute full REST compliance.
Web & Self-Hosting
TypeScript (JavaScript with Static Types)
TypeScript adds static type syntax and compile-time checking on top of JavaScript. Type annotations and interfaces are typically erased when emitting or stripping down to JavaScript; certain extension syntax emits runtime code, and static checking does not automatically validate network or file payloads at runtime.
Web & Self-Hosting
Vue (Progressive Reactive Frontend Framework)
Vue is a frontend framework designed for progressive adoption. Vue 3 tracks dependencies using reactive objects and refs, coordinating with template compilation, scheduling, and rendering to update the UI; reactive relies primarily on Proxy, while ref participates in tracking through .value accessors.
Web & Self-Hosting
WebSocket (Full-Duplex Real-Time Communication)
WebSocket provides ordered, bidirectional message communication. This tutorial demonstrates the RFC 6455 HTTP/1.1 Upgrade handshake and subsequent WebSocket framing; HTTP/2 and HTTP/3 also support WebSocket via Extended CONNECT, so not every WebSocket connection exclusively upgrades a dedicated TCP connection.
Payment Tools
Roogoo Card Usage Scope, Subscription Limits, and 23-Item Restricted List
A structured archive of seven card-usage scenarios, five subscription guidelines, fifteen high-risk transaction categories, and twenty-three restricted merchants, distinguishing historical user notes from current payment rules.
Account Security
AI Account Security: Sessions, Keys, Authorizations, and Appeals
Protect web login sessions, API Keys, and third-party authorizations independently. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Harness
Choosing an AI Coding Agent: Tools, Permissions, and Workflows
Select a coding or office agent that fits your current tasks and system environment, verify its sandbox and permission settings through hands-on practice, and troubleshoot step by step.
Harness
Downloading, Installing, and Launching Your First AI Agent
Distinguish between desktop installers and terminal commands, verify your installation, and use your first working agent to help configure and troubleshoot additional tools.
Creative Practice
AI-Assisted Game Development: Editorial Stance, Prototyping, and Verification
Start from a minimal playable prototype and verify gameplay and code step by step, with practical examples, diagrams, and checkpoints for your first practice run and troubleshooting.
Programming Foundations
AI Tool Glossary: Harnesses, Models, Gateways, and Errors
Disambiguate overloaded AI terms by context and read configuration fields and error messages accurately, with lookup tables and step-by-step verification checkpoints.
Creative Practice
AI Video Editing & Generation: Assets, Workflows, and Publishing Checks
Distinguish high-ROI AI video editing from generative video synthesis, walk through a short-form production workflow, and verify content labeling rules.
Creative Practice
AI-Assisted Fiction Writing: Editorial Stance, Practical Uses, and Proofreading Workflow
Preserve your own voice and creative agency by using AI as a research, continuity, and proofreading assistant rather than a ghostwriter.
API Setup
API Error Quick Reference: Status Codes, Error Bodies, and Retries
Tell from an error response whether to fix your config, check your quota, or run bounded retries. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Programming Foundations
Bash Basics: Directories, Quoting, Scripts, and Exit Codes
Run small scripts in a practice directory and distinguish standard output from exit codes, with practical examples, safety tables, and step-by-step checkpoints.
Programming Foundations
C Language Basics: Saving Source Files, Compiling, Running, and Debugging Errors
Save Hello World to a source file, compile it, and run the binary separately, with practical examples, diagrams, and checkpoints to help you read compiler and runtime errors.
Tooling & Workflows
Using Claude Code: Installation, Permissions, and Project Workflows
Install Claude Code, configure permission modes and OS-level sandboxing, organize CLAUDE.md project instructions, and understand OAuth vs. API gateway boundaries.
Tooling & Workflows
Using Codex Locally: Installation, Permissions, Project Rules, and Troubleshooting
Launch Codex inside a local practice repository, configure sandbox and approval policies, manage AGENTS.md rules and profiles, and troubleshoot common issues.
Tooling & Workflows
Codex Cloud Tasks and ChatGPT: From Requirements to Code Review
Separate requirement refinement, cloud VM task execution, and diff review before merging, while configuring least-privilege network and secret settings.
Local Deployment
ComfyUI Getting Started: Installation, Nodes, Model Files, and Your First Image
Generate your first image from a reproducible base node workflow in ComfyUI, understand how checkpoints, CLIP, KSampler, and VAE connect, and manage model files safely.
Programming Foundations
C++ Basics: Source Files, Standard Library, Builds, and Template Errors
Save and compile a C++ program and isolate the first real compiler error from template output, with practical examples, diagrams, and step-by-step checkpoints.
Programming Foundations
C# Basics: .NET Projects, Execution, and Exception Debugging
Create and run a console application with the .NET SDK, with practical examples, diagrams, and checkpoints to help you diagnose compiler and runtime errors.
Tooling & Workflows
Using Cursor: Project Rules, Execution Modes, and Bring Your Own Key
Review code changes clearly inside the IDE and understand the exact scope of Bring Your Own Key (BYOK). Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Web & Self-Hosting
Domains & Static Websites: Publishing, DNS, and HTTPS
Get an accessible static site running first, then bind a custom domain and enable HTTPS, with step-by-step examples, diagrams, and verification checkpoints.
Creative Practice
Game Engine Selection Guide: Target Platforms, Learning Curve, and Licensing
Choose a game engine around a small project you can actually finish, with practical examples, comparison tables, diagrams, and verification checkpoints.
Tooling & Workflows
Using Grok Build: Installation, Permissions, Sandbox, and Goal Tasks
Verify that the CLI works and complete a task inside a controlled directory. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Programming Foundations
Java Basics: JDK, Compilation, Execution, and Exception Stack Traces
Verify your JDK setup and distinguish source files, bytecode, and runtime execution commands, with practical examples, diagrams, and debugging checkpoints.
Model Foundations
How Large Language Models Work: Tokens, Context, Generation, and Hallucinations
Understand token prediction, context windows, temperature, reasoning modes, and why models hallucinate — plus how to distinguish raw generation from web search and RAG.
Local Deployment
Local Model Deployment Costs & Suitability: Hardware, VRAM, Power, and Time
Benchmark on your existing hardware first and calculate hardware depreciation, VRAM ceilings, electricity, and maintenance time before buying GPUs for local LLMs.
Model Foundations
Model Families Explained: LLMs, Diffusion, JEPA, World Models, and Agents
Classify AI systems by their inputs, outputs, and core mechanisms — comparing autoregressive LLMs, diffusion models, JEPA, decision policies, and application-layer Agents.
Evaluation Methods
Hands-On Model Evaluation: Controlled Conditions, Test Bank, and Rubric
Obtain reproducible model evaluation results through multi-round blind testing from a fixed baseline, complete with a practical test bank and scoring sheet.
Web & Self-Hosting
Networking, Regions, and Web Hosting Basics: IPs, Accounts, and Servers
Distinguish between local addresses, public IPs, account region eligibility, and web hosting fundamentals across VPS instances, domains, and static sites.
Local Deployment
Ollama Getting Started: Downloading Models, Chat, API, and Modelfile
Download a local model that fits your hardware, verify that it runs locally on your machine, and connect it via CLI, REST API, or Modelfile.
Local Deployment
Open WebUI Getting Started: Installation, Model Connections, and Knowledge Base
Deploy Open WebUI within a private access boundary, connect local Ollama or OpenAI-compatible APIs, and verify grounded document Q&A.
Agent
Getting Started with OpenClaw: Isolated Environments, Configuration, and Security Boundaries
Configure a private, personal-only assistant inside an isolated environment. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Programming Foundations
PowerShell Basics: Cmdlets, Object Pipelines, and Errors
Verify your PowerShell version, read files in a practice directory, and understand how object pipelines and error records work.
Programming Foundations
Python Basics: Virtual Environments, Running Scripts, and Tracebacks
Create an isolated virtual environment and verify that pip and Python point to the same interpreter, with practical examples, diagrams, and step-by-step checkpoints.
Tooling & Workflows
Using Qoder: IDE, CLI, Permissions, and Custom Models
Distinguish between IDE and CLI settings and complete a controlled coding task. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Creative Practice
SillyTavern Illustrated Guide: Connections, Character Cards, World Info, and Prompts
Set up SillyTavern locally, understand how the prompt stack assembles character cards, World Info lorebooks, and chat history, and run your first custom character chat.
Standard Subscriptions
Choosing AI Subscriptions and APIs: Billing Models and Usage Tracking
Compare plans based on your actual usage and confirm renewal and cancellation paths before paying. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Evaluation Methods
AI Subscriptions and Model Evaluation: Billing, Payments, and Capability Testing
Understand subscription vs. usage-based billing, recognize payment-chain and session-sharing risks, and run a 30-minute hands-on model evaluation.
Model Foundations
Pre-training, Fine-tuning, LoRA, and RAG: Concepts and Differences
Separate missing-knowledge problems from output-behavior problems, and learn which customization layer makes sense for individual builders.
Model Foundations
Multimodal & Video Understanding: Frame Sampling, Audio Tracks, and Timestamps
Analyze short videos with verifiable timestamps by understanding how multimodal models sample video frames and process audio tracks.
Model Foundations
Adding Vision to Text-Only Models: OCR, Image Captions, and Vision Tools
Convert screenshots, error dialogs, and diagrams into structured text that text-only models can process, using OCR, captioning models, or MCP tools.
Web & Self-Hosting
VPS First Steps: Connections, Accounts, Firewalls, and Routine Maintenance
Confirm that your login recovery path works before progressively tightening access controls. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
AI Productivity
Using WorkBuddy: Workspaces, Document Tasks, and Model Settings
Generate an openable, verifiable document from a practice source file. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Tooling & Workflows
Using ZCode: Model Connections, Execution Modes, and Goal Tasks
Connect the right billing endpoint and complete a verifiable small task. Work through practical examples, diagrams, and checkpoints for your first exercise, then troubleshoot common issues step by step.
Offers & Credits
ChatGPT 2026 Student Offer: Eligibility, Verification, and Renewal
Check US higher-education student eligibility via the official portal, complete personal SheerID verification, and review offer deadlines and renewal terms.
No matching tutorials
Try another keyword or browse all tutorials.