← AI Hub

Concepts

AI and ML concept explainers with optional interactive visualizations. Follow a learning path or explore individual topics.

All Concepts

Intermediate

Retrieval-Augmented Generation (RAG)

Learn how RAG lets an LLM answer questions using relevant external documents fetched at query time.

intermediate 8 min read

Vector Databases & Approximate Nearest Neighbors (ANN)

Interactive

Learn what vector databases store, why nearest-neighbor search must be approximate at scale, and how ANN indexes (like HNSW and IVF) make retrieval fast.

intermediate 10 min read

Context Windows & Prompt Budgeting

Build a practical mental model for context limits and how to allocate tokens for better cost, speed, and answer quality.

intermediate 9 min read

Decoding & Sampling

Understand how token selection strategies control output quality, diversity, and consistency.

intermediate 9 min read

Embeddings & Semantic Search

Interactive

Learn how embeddings turn text into vectors and enable semantic search by finding meaning-based similarity instead of keyword matches.

intermediate 9 min read

How Attention Mechanisms Work

Interactive

Learn how attention helps models decide what matters, from query-key-value math to multi-head behavior in modern transformers.

intermediate 12 min read

PEFT (LoRA) and Fine-Tuning Recipes

Learn why LoRA-style parameter-efficient tuning is the default in practice and how to choose robust fine-tuning recipes.

intermediate 11 min read

Tool Use / Function Calling

Understand how models call external code safely and reliably using structured outputs, validation, and execution boundaries.

intermediate 10 min read

Transformer Architecture

Understand how Transformers use attention to process sequences in parallel and power modern LLMs.

intermediate 10 min read

Chunking & Indexing Strategies for RAG

Learn how to split documents into retrievable chunks, attach the right metadata, and index content so RAG retrieves the right context reliably.

intermediate 11 min read

Fine-Tuning vs Prompt Engineering

Learn when to shape an LLM with prompts versus when to change its behavior with fine-tuning, and the trade-offs of each.

intermediate 10 min read

Reranking & Hybrid Retrieval

Learn why two-stage retrieval and keyword+vector fusion improve relevance in real-world RAG systems.

intermediate 10 min read