Generative AI and Agentic Systems
Generative AI covers models and systems that create text, images, structured outputs, plans, tool calls, or multimodal responses. This section separates model-training concepts from application architecture: a language model can be pretrained and aligned, but a useful product still needs retrieval, context construction, tools, evaluation, privacy controls, and serving constraints.
Read the early pages for foundation-model mechanics, then follow the branch for the system you are building — RAG for evidence and retrieval, agents for tool-mediated loops, and the safety pages for behavior constraints.
Knowledge map
Foundation-model mechanics feed generation control, retrieval, and multimodal generation; retrieval and generation combine into agents; serving and safety wrap everything that ships.
flowchart TD FM[Foundation Models and Training] --> Gen[Generation Control] FM --> RAG[Retrieval-Augmented Generation] Gen --> Agents[Tool Use and Agents] RAG --> Agents FM --> MM[Multimodal and Image Generation] Gen --> Serving[Serving, Cost, Quantization] Agents --> Safety[Guardrails, Injection, Privacy] RAG --> Safety
Reading path
Read foundation-model mechanics and generation control first, then retrieval, agents, multimodal generation, serving, and safety.
- Foundation Models: what a large pretrained model is and is not.
- Language Model Architecture: the transformer stack behind LLMs.
- Tokenization: the units an LLM reads and generates.
- Pretraining: self-supervised learning on large corpora.
- LLM Training: the full pretraining-to-alignment pipeline.
- Instruction Tuning: teaching a base model to follow instructions.
- Alignment: shaping behavior toward helpfulness and safety.
- In-Context Learning: adapting from examples in the prompt.
- Prompting: structuring inputs to steer generation.
- Sampling and Decoding: turning logits into tokens.
- Top-k and Top-p Sampling: truncated sampling rules.
- Temperature and Determinism: controlling randomness.
- Determinism and Reproducibility: making runs repeatable.
- Structured Output: constraining generations to a schema.
- RAG: grounding generation in retrieved evidence.
- Embeddings: vector representations for retrieval.
- Chunking: splitting documents into retrievable units.
- Vector Databases: storing and searching embeddings.
- Retrieval Pipelines: the offline and online retrieval contracts.
- Hybrid Retrieval: combining lexical and dense signals.
- Query Rewriting: reshaping the query before retrieval.
- Reranking: reordering candidates with a stronger model.
- Context Construction: assembling the final prompt context.
- Grounding: tying claims to sources.
- Citations: attributing generated statements to evidence.
- Hallucination Mitigation: reducing unsupported output.
- RAG Evaluation: measuring retrieval and answer quality.
- RAG Architecture Comparison: trade-offs across RAG designs.
- RAG Benchmark Design: building trustworthy RAG benchmarks.
- Fine Tuning Versus RAG: when to train versus retrieve.
- Tool Use and Function Calling: the model’s action layer.
- Tool Schemas: declaring callable tools.
- Tool Routing: choosing which tool to call.
- Agent Loops: the observe-decide-act cycle.
- Agentic Systems: systems that plan and act over many steps.
- Planning: decomposing goals into steps.
- Memory: persisting state across steps and sessions.
- Reflection and Reviewer Patterns: self-critique against a rubric.
- Multi-Agent Systems: coordinating multiple roles.
- Harnesses: the runtime scaffolding around a model.
- LangChain: a configurable framework for models, tools, middleware, retrieval, and agent loops.
- LangGraph: graph orchestration for durable, stateful, long-running agents.
- Agent Evaluation: measuring multi-step task success.
- LLM-as-Judge: using models to score outputs.
- Multimodal Models: models over text, image, and more.
- Vision-Language Models: joint image-text models.
- Stable Diffusion: latent-diffusion image generation.
- Local Versus Hosted Models: where the model runs.
- Model Serving: the runtime layer for reliable calls.
- Quantization: lower-precision weights for cheaper serving.
- Cost and Latency Optimization: making systems affordable and fast.
- Guardrails: runtime behavior constraints.
- Prompt Injection: the core adversarial-input risk.
- Data Privacy: protecting user and training data.
- PII Protection: detecting and redacting personal information.
Connections
- Deep Learning and Natural Language Processing supply the architectures and language tasks underneath.
- Information Retrieval provides the retrieval half of RAG, and Responsible AI governs deployed behavior.
Nav
Learning path — Generative AI systems