TryHook learning library

AI Foundations

Accessible explanations of AI concepts, practical limitations and responsible use. Understand artificial intelligence, machine learning, language models and the systems built around them.

20 guides
Guide

AI vs Machine Learning vs Deep Learning

Artificial intelligence is the broad field of building systems that perform tasks associated with intelligence. Machine learning is a subset that learns patterns from data, and deep learning uses multi-layer neural networks.

Read guide →
Guide

What Is a Large Language Model?

A large language model is a neural network trained on large text datasets to predict and generate sequences of tokens. It can perform many language tasks through prompting.

Read guide →
Guide

What Are Tokens in AI?

Tokens are the text units a language model processes and generates. A token may be a word, part of a word, punctuation or another encoded text unit.

Read guide →
Guide

What Is Prompt Engineering?

Prompt engineering is the practice of structuring instructions and context so an AI model has a clearer task and produces a more useful response.

Read guide →
Guide

What Are Embeddings?

Embeddings are numerical representations of items such as text, images or audio, designed so that meaningful similarity can be measured in vector space.

Read guide →
Guide

What Is a Vector Database?

A vector database stores embeddings and supports similarity search, often alongside metadata filters and conventional database capabilities.

Read guide →
Guide

What Is Retrieval-Augmented Generation (RAG)?

Retrieval-augmented generation combines information retrieval with a language model so responses can use selected external documents as context.

Read guide →
Guide

What Is an AI Hallucination?

An AI hallucination is a response that presents unsupported or incorrect information as though it were true. It can occur when a model fills gaps with plausible patterns.

Read guide →
Guide

What Is Supervised Learning?

Supervised learning trains a model using examples paired with known target labels or values. The model learns a mapping that can be applied to new examples.

Read guide →
Guide

What Is Unsupervised Learning?

Unsupervised learning finds structure in data without relying on a target label for each training example. It can support clustering, dimensionality reduction and anomaly exploration.

Read guide →
Guide

What Is Reinforcement Learning?

Reinforcement learning trains an agent to choose actions in an environment using feedback in the form of rewards or penalties.

Read guide →
Guide

How Do Neural Networks Work?

A neural network is a model made of connected computational units arranged in layers. It learns weights that transform inputs into predictions or generated outputs.

Read guide →
Guide

AI Training vs Inference

Training is the process of fitting a model to data; inference is using a trained model to produce predictions or outputs for new inputs.

Read guide →
Guide

Fine-Tuning vs RAG

Fine-tuning changes a model’s learned parameters using additional examples; retrieval-augmented generation supplies external information at response time. They solve different problems.

Read guide →
Guide

What Is Computer Vision?

Computer vision is the field of enabling computers to interpret information from images and video, including objects, scenes, movement and visual patterns.

Read guide →
Guide

What Is Speech Recognition?

Speech recognition converts spoken audio into text or structured commands. It is used in transcription, voice interfaces and accessibility tools.

Read guide →
Guide

How Do AI Image Generators Work?

AI image generators create images from prompts or other inputs by learning patterns in image datasets. Many modern systems use diffusion or related generative methods.

Read guide →
Guide

What Is an AI Agent?

An AI agent is a system that can interpret a goal, select actions and use tools or services to make progress toward that goal, often in multiple steps.

Read guide →
Guide

How Are AI Models Evaluated?

Model evaluation measures how well a system performs on defined tasks and constraints. Good evaluation combines quantitative tests with human review where needed.

Read guide →
Guide

What Is AI Bias?

AI bias occurs when a system produces systematically unfair or skewed outcomes for particular people or groups, often reflecting data or design choices.

Read guide →