InterviewTreedInterviewTreed
All learning paths

AI & AI Engineering

Generative AI & LLMs

Prepare for Generative AI and Large Language Models, including transformer architecture, prompt engineering, embeddings, model training, fine-tuning, evaluation, and practical LLM applications.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

Generative AI fundamentals

Discover the fundamentals of generative AI, how it creates new content, its underlying technologies, and its applications in modern software.

Start learning

Introduction to Generative AI

Explore the evolution of generative AI, its capabilities, different model types, and how businesses use AI-generated content.

Start learning

Large Language Models (LLMs)

Understand how large language models are trained, how they process text, predict tokens, and generate human-like responses.

Start learning

LLM architecture and components

Explore the internal architecture of LLMs, including token embeddings, transformer layers, attention blocks, and output generation.

Start learning

Transformer architecture

Learn how transformer networks process sequences using attention mechanisms, positional information, and encoder or decoder architectures.

Start learning

Attention mechanism

Understand how attention calculates relationships between tokens and helps neural networks focus on relevant information.

Start learning

Self-attention and multi-head attention

Explore query, key, and value vectors, attention scores, and how multiple attention heads capture different relationships between tokens.

Start learning

Encoder and decoder architectures

Compare encoder-only, decoder-only, and encoder-decoder models and understand their architecture and practical applications.

Start learning

Tokenization and tokenizers

Learn how tokenizers split text into tokens, convert them into token IDs, and prepare input for language models.

Start learning

Tokens and context windows

Understand tokens, context-window limits, input and output capacity, and their impact on LLM performance and API costs.

Start learning

Vocabulary and embeddings

Learn how model vocabularies map tokens to numerical IDs and how embedding layers convert these IDs into vector representations.

Start learning

Word and text embeddings

Explore numerical representations of words and text, embedding dimensions, semantic relationships, and vector similarity.

Start learning

Positional encoding

Understand how positional encoding provides sequence-order information to transformer models and enables them to process token positions.

Start learning

Prompt engineering fundamentals

Learn how to design effective prompts using clear instructions, relevant context, examples, constraints, and well-defined objectives.

Start learning

System prompts and user prompts

Understand the difference between system and user prompts, instruction hierarchy, and how different message roles influence model behaviour.

Start learning

Zero-shot and few-shot learning

Compare zero-shot and few-shot prompting and learn how examples help language models perform tasks without additional training.

Start learning

Chain-of-thought prompting

Explore reasoning-oriented prompting approaches for complex tasks and understand their benefits, limitations, and appropriate use cases.

Start learning

Role-based prompting

Learn how role-based instructions establish context, define model behaviour, and guide responses toward specific tasks and audiences.

Start learning

Prompt templates and reusable prompts

Discover how reusable prompt templates use variables, placeholders, and structured instructions to create consistent AI workflows.

Start learning

Structured outputs and JSON responses

Learn how to generate structured JSON responses, define output schemas, enforce formatting requirements, and validate model responses in applications.

Start learning

LLM parameters and configuration

Understand important LLM configuration parameters, including context limits, generation settings, token limits, and model-specific options.

Start learning

Temperature and sampling

Explore temperature, probability distributions, and sampling strategies that control the randomness and diversity of generated responses.

Start learning

Top-K and Top-P sampling

Compare Top-K and Top-P sampling and understand how candidate-token selection influences text generation and response diversity.

Start learning

Model training fundamentals

Explore the fundamentals of training language models, including datasets, model parameters, optimization, training stages, and computational requirements.

Start learning

Pretraining and fine-tuning

Compare large-scale pretraining with task-specific fine-tuning and understand how pretrained models are adapted for specialized applications.

Start learning

Instruction tuning

Learn how instruction tuning adapts pretrained language models to understand user instructions and perform tasks more effectively.

Start learning

Supervised fine-tuning (SFT)

Understand supervised fine-tuning, instruction datasets, training examples, and how labelled input-output pairs improve model behaviour.

Start learning

Reinforcement Learning from Human Feedback (RLHF)

Explore reinforcement learning from human feedback, reward models, preference datasets, and techniques for aligning language models with human preferences.

Start learning

Parameter-efficient fine-tuning (PEFT)

Learn parameter-efficient fine-tuning techniques that adapt large language models while reducing trainable parameters and computational requirements.

Start learning

LoRA and QLoRA

Understand LoRA and QLoRA, low-rank adaptation, quantized model training, and efficient customization of large language models.

Start learning

Model quantization

Explore model quantization techniques, numerical precision, reduced memory usage, and the trade-offs between inference speed and model quality.

Start learning

Open-source vs closed-source models

Compare open-weight and proprietary language models across customization, hosting, licensing, privacy, cost, and deployment considerations.

Start learning

LLM inference and generation

Understand how trained language models generate responses during inference, including decoding, token prediction, batching, and latency considerations.

Start learning

LLM APIs and integration

Learn how to integrate language models into applications using APIs, request parameters, authentication, response handling, and error management.

Start learning

Streaming LLM responses

Explore streaming techniques that deliver generated tokens incrementally and improve responsiveness in chatbots and interactive AI applications.

Start learning

LLM hallucinations

Understand why language models generate unsupported information and explore techniques for identifying, evaluating, and reducing hallucinations.

Start learning

LLM limitations and challenges

Explore challenges involving factual accuracy, reasoning, context limitations, training data, bias, privacy, and reliable model behaviour.

Start learning

LLM evaluation fundamentals

Learn how to evaluate language models using representative datasets, task-specific metrics, human feedback, safety checks, and application-level testing.

Start learning

Model benchmarks and evaluation metrics

Understand model benchmarking, accuracy metrics, perplexity, task-based evaluation, and methods for comparing language model performance.

Start learning

Responsible AI and ethical considerations

Explore responsible AI principles, fairness, transparency, privacy, bias mitigation, accountability, and ethical considerations in generative AI systems.

Start learning

Practical Generative AI applications

Explore real-world generative AI applications, including intelligent chatbots, document processing, content generation, coding assistants, and business automation.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 100 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 100 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path