# Artificial Intelligence

> The field of computer science focused on systems that learn from data and perform tasks requiring human intelligence. It covers language models, prompting, AI agents and tools that change how software is developed.

Learning level of Wonderium.dev with 154 cards. HTML version: https://wonderium.dev/ai.

## Basics

- [AI](https://wonderium.dev/ai/ai.md): The AI (Artificial Intelligence) is a field of computer science focused on creating systems that perform tasks requiring human intelligence.
- [Machine Learning](https://wonderium.dev/ai/machine-learning.md): The Machine Learning is a branch of AI in which systems learn patterns from data instead of being explicitly programmed.
- [Deep Learning](https://wonderium.dev/ai/deep-learning.md): The Deep Learning is a branch of machine learning based on neural networks with many layers.
- [Neural Network](https://wonderium.dev/ai/neural-network.md): The Neural Network is a machine learning model made of layers of connected nodes inspired by the brain.
- [Generative AI](https://wonderium.dev/ai/generative-ai.md): The Generative AI is a type of AI that creates new content such as text, images, code or audio.
- [Model](https://wonderium.dev/ai/model.md): The Model in AI is the result of training an algorithm on data, used to make predictions or generate content.
- [Foundation Model](https://wonderium.dev/ai/foundation-model.md): The Foundation Model is a large AI model trained on broad data that can be adapted to many different tasks.
- [Frontier Model](https://wonderium.dev/ai/frontier-model.md): The Frontier Model is one of the most capable AI models available at a given time.
- [Parameters](https://wonderium.dev/ai/parameters.md): The Parameters of an AI model are the internal values, mainly weights, learned during training.
- [Dataset](https://wonderium.dev/ai/dataset.md): The Dataset is a structured collection of data used to train, validate or test AI models.
- [Training](https://wonderium.dev/ai/training.md): The Training is the process of teaching an AI model by adjusting its parameters on data.
- [Inference](https://wonderium.dev/ai/inference.md): The Inference is the process of using a trained AI model to produce output for new input.
- [Benchmark](https://wonderium.dev/ai/benchmark.md): The Benchmark is a standardized set of tasks used to measure and compare the performance of AI models.
- [AGI](https://wonderium.dev/ai/agi.md): The AGI (Artificial General Intelligence) is a hypothetical AI that can perform any intellectual task a human can.

## Training & Architecture

- [Supervised Learning](https://wonderium.dev/ai/supervised-learning.md): The Supervised Learning is a machine learning approach where a model is trained on labeled examples.
- [Unsupervised Learning](https://wonderium.dev/ai/unsupervised-learning.md): The Unsupervised Learning is a machine learning approach where a model finds patterns in unlabeled data.
- [Reinforcement Learning](https://wonderium.dev/ai/reinforcement-learning.md): The Reinforcement Learning is a machine learning approach where an agent learns by receiving rewards for its actions.
- [Overfitting](https://wonderium.dev/ai/overfitting.md): The Overfitting is a situation when a model memorizes training data instead of learning general patterns.
- [Transformer](https://wonderium.dev/ai/transformer.md): The Transformer is a neural network architecture based on the attention mechanism, used by modern language models.
- [Attention](https://wonderium.dev/ai/attention.md): The Attention is a mechanism that lets a neural network weigh the importance of different parts of the input.
- [Mixture of Experts](https://wonderium.dev/ai/mixture-of-experts.md): The Mixture of Experts (MoE) is a model architecture where only a part of the network is activated for each token.
- [Diffusion Model](https://wonderium.dev/ai/diffusion-model.md): The Diffusion Model is a generative model that creates images or other data by gradually removing noise.
- [Pre-Training](https://wonderium.dev/ai/pre-training.md): The Pre-Training is the first and most expensive stage of training a model on huge amounts of general data.
- [Post-Training](https://wonderium.dev/ai/post-training.md): The Post-Training is the stage that turns a pre-trained base model into a useful assistant.
- [Fine-Tuning](https://wonderium.dev/ai/fine-tuning.md): The Fine-Tuning is a technique of additionally training a pre-trained model on specific data to adapt it to a task.
- [RLHF](https://wonderium.dev/ai/rlhf.md): The RLHF (Reinforcement Learning from Human Feedback) is a technique of training a model using human ratings of its answers.
- [Synthetic Data](https://wonderium.dev/ai/synthetic-data.md): The Synthetic Data is artificially generated data used to train or test AI models.
- [Distillation](https://wonderium.dev/ai/distillation.md): The Distillation is a technique of training a smaller model to imitate a larger one.
- [Quantization](https://wonderium.dev/ai/quantization.md): The Quantization is a technique that reduces the size of a model by storing its parameters with lower precision.
- [Alignment](https://wonderium.dev/ai/alignment.md): The Alignment is the process of making AI systems behave according to human intentions and values.

## Language Models

- [LLM](https://wonderium.dev/ai/llm.md): The LLM (Large Language Model) is a neural network trained on large amounts of text to understand and generate language.
- [Small Language Model](https://wonderium.dev/ai/small-language-model.md): The Small Language Model (SLM) is a compact language model designed to run fast and cheaply, often on a device.
- [Multimodal Model](https://wonderium.dev/ai/multimodal-model.md): The Multimodal Model is an AI model that can process and generate several types of data, such as text, images and audio.
- [Reasoning Model](https://wonderium.dev/ai/reasoning-model.md): The Reasoning Model is a language model trained to think through a problem step by step before answering.
- [Open-Weight Model](https://wonderium.dev/ai/open-weight-model.md): The Open-Weight Model is an AI model whose trained parameters are publicly available for download.
- [Local Model](https://wonderium.dev/ai/local-model.md): The Local Model is an AI model that runs on the user's own device or servers instead of a cloud API.
- [Token](https://wonderium.dev/ai/token.md): The Token is the basic unit of text that a language model processes.
- [Tokenizer](https://wonderium.dev/ai/tokenizer.md): The Tokenizer is a component that splits text into tokens and converts them into numbers for a language model.
- [Context Window](https://wonderium.dev/ai/context-window.md): The Context Window is the maximum amount of text in tokens that a language model can consider at once.
- [Knowledge Cutoff](https://wonderium.dev/ai/knowledge-cutoff.md): The Knowledge Cutoff is the date after which a language model has no information from its training data.
- [Hallucination](https://wonderium.dev/ai/hallucination.md): The Hallucination is a response of an AI model that sounds plausible but is factually incorrect or made up.
- [Grounding](https://wonderium.dev/ai/grounding.md): The Grounding is a technique of connecting model answers to reliable sources of information.

## Generation Settings

- [Temperature](https://wonderium.dev/ai/temperature.md): The Temperature is a parameter that controls how random the output of a language model is.
- [Top-p](https://wonderium.dev/ai/top-p.md): The Top-p (nucleus sampling) is a parameter that limits the choice of the next token to the most probable options.
- [Max Tokens](https://wonderium.dev/ai/max-tokens.md): The Max Tokens is a parameter that limits the length of a response generated by a language model.
- [Stop Sequences](https://wonderium.dev/ai/stop-sequences.md): The Stop Sequences are strings that make a language model stop generating when they appear.
- [Reasoning Effort](https://wonderium.dev/ai/reasoning-effort.md): The Reasoning Effort is a setting that controls how much a reasoning model thinks before answering.

## Prompting

- [Prompt](https://wonderium.dev/ai/prompt.md): The Prompt is the input text or instructions given to an AI model to produce a response.
- [Message Roles](https://wonderium.dev/ai/message-roles.md): The Message Roles define who authored each message in a conversation with a language model: system, user or assistant.
- [System Prompt](https://wonderium.dev/ai/system-prompt.md): The System Prompt is a set of instructions that defines the behavior, role and constraints of an AI model for a whole conversation.
- [Prompt Engineering](https://wonderium.dev/ai/prompt-engineering.md): The Prompt Engineering is the practice of designing prompts to get accurate and useful results from AI models.
- [Context Engineering](https://wonderium.dev/ai/context-engineering.md): The Context Engineering is the practice of selecting and organizing all information provided to an AI model for a task.
- [Zero-Shot Prompting](https://wonderium.dev/ai/zero-shot-prompting.md): The Zero-Shot Prompting is a technique of asking a model to perform a task without giving any examples.
- [Few-Shot Prompting](https://wonderium.dev/ai/few-shot-prompting.md): The Few-Shot Prompting is a technique of including several examples in the prompt to show the model the expected result.
- [Chain-of-Thought](https://wonderium.dev/ai/chain-of-thought.md): The Chain-of-Thought is a prompting technique that asks a model to reason step by step before answering.
- [Role Prompting](https://wonderium.dev/ai/role-prompting.md): The Role Prompting is a technique of assigning a role or persona to a model to shape its answers.
- [Prompt Chaining](https://wonderium.dev/ai/prompt-chaining.md): The Prompt Chaining is a technique of splitting a complex task into a sequence of prompts where each uses the previous result.
- [Prompt Template](https://wonderium.dev/ai/prompt-template.md): The Prompt Template is a reusable prompt with placeholders that are filled with data at runtime.
- [Structured Output](https://wonderium.dev/ai/structured-output.md): The Structured Output is a technique of making a language model return data in a strict format such as JSON matching a schema.

## Retrieval

- [RAG](https://wonderium.dev/ai/rag.md): The RAG (Retrieval-Augmented Generation) is an approach where relevant data is retrieved and added to the prompt before generating an answer.
- [Embeddings](https://wonderium.dev/ai/embeddings.md): The Embeddings are numerical vector representations of data that capture its meaning.
- [Chunking](https://wonderium.dev/ai/chunking.md): The Chunking is a technique of splitting documents into smaller pieces for indexing and retrieval.
- [Vector Database](https://wonderium.dev/ai/vector-database.md): The Vector Database is a database designed to store embeddings and quickly find the most similar vectors.
- [Cosine Similarity](https://wonderium.dev/ai/cosine-similarity.md): The Cosine Similarity is a measure of how similar two vectors are, based on the angle between them.
- [Semantic Search](https://wonderium.dev/ai/semantic-search.md): The Semantic Search is a search technique that finds results by meaning rather than by exact keyword matches.
- [Hybrid Search](https://wonderium.dev/ai/hybrid-search.md): The Hybrid Search is a search technique that combines keyword search with semantic search.
- [Reranking](https://wonderium.dev/ai/reranking.md): The Reranking is a technique of reordering retrieved results with a more accurate model to put the most relevant first.
- [Agentic Search](https://wonderium.dev/ai/agentic-search.md): The Agentic Search is a technique where an AI agent finds information by itself using search tools in several steps.

## AI Agents

- [AI Agent](https://wonderium.dev/ai/ai-agent.md): The AI Agent is a system where a language model works in a loop, choosing and using tools to complete multi-step tasks.
- [Agentic Workflow](https://wonderium.dev/ai/agentic-workflow.md): The Agentic Workflow is a system where language models and tools are orchestrated through predefined steps.
- [ReAct Pattern](https://wonderium.dev/ai/react-pattern.md): The ReAct (Reason and Act) is an agent pattern that alternates between reasoning and taking actions with tools.
- [Tool Calling](https://wonderium.dev/ai/tool-calling.md): The Tool Calling is a capability of a language model to request the execution of external functions with structured arguments.
- [Planning](https://wonderium.dev/ai/planning.md): The Planning in AI agents is the step of breaking a goal into a sequence of subtasks before executing them.
- [Agent Memory](https://wonderium.dev/ai/agent-memory.md): The Agent Memory is a way for an AI agent to store and reuse information beyond a single context window.
- [Sub-Agent](https://wonderium.dev/ai/sub-agent.md): The Sub-Agent is an AI agent launched by another agent for a separate subtask in its own context, often defined in a file with its own instructions and tools.
- [Multi-Agent System](https://wonderium.dev/ai/multi-agent-system.md): The Multi-Agent System is an architecture where several AI agents with different roles work together on a task.
- [Human-in-the-Loop](https://wonderium.dev/ai/human-in-the-loop.md): The Human-in-the-Loop is an approach where a person reviews or approves important actions of an AI system.
- [Computer Use](https://wonderium.dev/ai/computer-use.md): The Computer Use is a capability of AI agents to operate a computer interface by seeing the screen and using a mouse and keyboard.
- [Browser Agent](https://wonderium.dev/ai/browser-agent.md): The Browser Agent is an AI agent that navigates websites and performs actions in a web browser.
- [Deep Research](https://wonderium.dev/ai/deep-research.md): The Deep Research is an agentic mode where AI performs many searches and analyses sources to produce a detailed report.
- [Background Agent](https://wonderium.dev/ai/background-agent.md): The Background Agent is an AI agent that works on a task asynchronously, without the user watching each step.

## Voice AI

- [Speech-to-Text](https://wonderium.dev/ai/speech-to-text.md): The Speech-to-Text (STT), also called ASR, is a technology that converts spoken audio into written text.
- [Text-to-Speech](https://wonderium.dev/ai/text-to-speech.md): The Text-to-Speech (TTS) is a technology that converts written text into spoken audio.
- [Speech-to-Speech](https://wonderium.dev/ai/speech-to-speech.md): The Speech-to-Speech (STS) is an approach where one model takes speech as input and produces speech as output directly.
- [Voice Pipeline](https://wonderium.dev/ai/voice-pipeline.md): The Voice Pipeline is an architecture where speech recognition, a language model and speech synthesis run in sequence.
- [Voice Agent](https://wonderium.dev/ai/voice-agent.md): The Voice Agent is an AI agent that talks with users through speech in real time.
- [Realtime Model API](https://wonderium.dev/ai/realtime-api.md): The Realtime API is a type of AI model API that streams audio and text in both directions over a persistent connection.
- [Voice Activity Detection](https://wonderium.dev/ai/voice-activity-detection.md): The Voice Activity Detection (VAD) is a technique that detects when a person is speaking in an audio stream.
- [Turn Detection](https://wonderium.dev/ai/turn-detection.md): The Turn Detection is a technique that decides when a user has finished speaking and the agent should answer.
- [Barge-In](https://wonderium.dev/ai/barge-in.md): The Barge-In is the ability of a user to interrupt a voice agent while it is speaking.
- [Speaker Diarization](https://wonderium.dev/ai/speaker-diarization.md): The Speaker Diarization is a technique that determines who spoke when in an audio recording.
- [Word Error Rate](https://wonderium.dev/ai/word-error-rate.md): The Word Error Rate (WER) is a metric that measures the accuracy of speech recognition.
- [Voice Cloning](https://wonderium.dev/ai/voice-cloning.md): The Voice Cloning is a technique of creating a synthetic voice that imitates a specific person from audio samples.

## Model Context Protocol

- [MCP](https://wonderium.dev/ai/mcp.md): The MCP (Model Context Protocol) is an open protocol for connecting AI applications to external tools and data sources.
- [MCP Server](https://wonderium.dev/ai/mcp-server.md): The MCP Server is a program that exposes tools, resources and prompts to AI applications through the Model Context Protocol.
- [MCP Client](https://wonderium.dev/ai/mcp-client.md): The MCP Client is the part of an AI application that connects to MCP servers and uses their capabilities.
- [MCP Tool](https://wonderium.dev/ai/mcp-tool.md): The MCP Tool is a function exposed by an MCP server that an AI model can call to perform an action.
- [MCP Resource](https://wonderium.dev/ai/mcp-resource.md): The MCP Resource is data exposed by an MCP server, such as a file or a record, that an AI application can read as context.
- [MCP Prompt](https://wonderium.dev/ai/mcp-prompt.md): The MCP Prompt is a reusable prompt template exposed by an MCP server for users to invoke.
- [MCP Transport](https://wonderium.dev/ai/mcp-transport.md): The MCP Transport defines how MCP clients and servers exchange messages: locally through standard input and output or remotely over HTTP.

## APIs & Integrations

- [LLM API](https://wonderium.dev/ai/llm-api.md): The LLM API is an interface that allows applications to send requests to a language model and receive responses.
- [Streaming](https://wonderium.dev/ai/streaming.md): The Streaming is a technique of sending the response of a model in parts while it is being generated.
- [JSON Schema](https://wonderium.dev/ai/json-schema.md): The JSON Schema is a vocabulary for describing the structure of JSON data, used to define tools and structured outputs for AI models.
- [A2A](https://wonderium.dev/ai/a2a.md): The A2A (Agent2Agent) is an open protocol for communication and collaboration between AI agents.
- [Prompt Caching](https://wonderium.dev/ai/prompt-caching.md): The Prompt Caching is a technique of reusing the processed beginning of a prompt to reduce latency and cost.
- [Rate Limits](https://wonderium.dev/ai/rate-limits.md): The Rate Limits are restrictions on how many requests or tokens can be sent to an AI API in a period of time.
- [AI Gateway](https://wonderium.dev/ai/ai-gateway.md): The AI Gateway is a proxy layer between applications and AI model providers that adds routing, caching and monitoring.
- [Model Routing](https://wonderium.dev/ai/model-routing.md): The Model Routing is a technique of sending each request to the most suitable model based on task, cost or speed.
- [llms.txt](https://wonderium.dev/ai/llms-txt.md): The llms.txt is a Markdown file at the root of a website that gives language models a concise overview of its content.

## Agentic Coding

- [Vibe Coding](https://wonderium.dev/ai/vibe-coding.md): The Vibe Coding is an approach to building software by describing what you want to an AI and accepting its code without reading it closely.
- [Agentic Coding](https://wonderium.dev/ai/agentic-coding.md): The Agentic Coding is an approach where a developer delegates programming tasks to coding agents and guides and reviews their work.
- [Spec-Driven Development](https://wonderium.dev/ai/spec-driven-development.md): The Spec-Driven Development is an approach where a detailed specification is written first and then implemented with AI agents.
- [AI Code Completion](https://wonderium.dev/ai/code-completion.md): The AI Code Completion is an editor feature that suggests the next lines of code using a language model.
- [Coding Agent](https://wonderium.dev/ai/coding-agent.md): The Coding Agent is an AI agent that performs programming tasks by reading code, editing files and running commands.
- [Agent Harness](https://wonderium.dev/ai/agent-harness.md): The Agent Harness is the software around an AI model that turns it into an agent: the loop, tools, context management and permissions.
- [Plan Mode](https://wonderium.dev/ai/plan-mode.md): The Plan Mode is a mode of coding agents in which they research and propose a plan without changing files.
- [Context Compaction](https://wonderium.dev/ai/context-compaction.md): The Context Compaction is a technique of summarizing a long conversation to free space in the context window.
- [Context Rot](https://wonderium.dev/ai/context-rot.md): The Context Rot is the degradation of model performance as the context grows long and cluttered.
- [Agent Sandbox](https://wonderium.dev/ai/agent-sandbox.md): The Agent Sandbox is an isolated environment that limits what an AI agent can access and change.
- [Parallel Agents](https://wonderium.dev/ai/parallel-agents.md): The Parallel Agents is a technique of running several coding agents at the same time on independent tasks.
- [Headless Mode](https://wonderium.dev/ai/headless-mode.md): The Headless Mode is a way of running a coding agent non-interactively from scripts or CI pipelines.
- [AI Code Review](https://wonderium.dev/ai/ai-code-review.md): The AI Code Review is the practice of using AI models to analyze code changes and find issues.

## Agent Customization

- [Agent Instructions File](https://wonderium.dev/ai/agent-instructions-file.md): The Agent Instructions File is a Markdown file in a repository that gives coding agents project-specific instructions.
- [Agent Rules](https://wonderium.dev/ai/agent-rules.md): The Agent Rules are instruction files that apply to a coding agent only in specific folders or file types.
- [Agent Settings](https://wonderium.dev/ai/agent-settings.md): The Agent Settings are configuration files that control a coding agent's permissions, hooks, environment and defaults.
- [Agent Permissions](https://wonderium.dev/ai/agent-permissions.md): The Agent Permissions are rules that define which actions an AI agent may perform with or without user approval.
- [Agent Skills](https://wonderium.dev/ai/agent-skills.md): The Agent Skills are packaged folders of instructions, scripts and resources that an AI agent loads only when they are relevant.
- [SKILL.md](https://wonderium.dev/ai/skill-md.md): The SKILL.md is the main file of an agent skill with metadata and instructions in Markdown.
- [Progressive Disclosure](https://wonderium.dev/ai/progressive-disclosure.md): The Progressive Disclosure in AI agents is a technique of loading detailed instructions only when they are needed.
- [Skill Scopes](https://wonderium.dev/ai/skill-scopes.md): The Skill Scopes define where agent skills are stored and who can use them: personal, project or shared through plugins.
- [Slash Commands](https://wonderium.dev/ai/slash-commands.md): The Slash Commands are short commands starting with a slash that trigger predefined prompts or actions in AI tools.
- [Agent Plugins](https://wonderium.dev/ai/agent-plugins.md): The Agent Plugins are packages that bundle skills, commands, sub-agents, hooks and MCP servers for an AI agent.
- [Agent Hooks](https://wonderium.dev/ai/agent-hooks.md): The Agent Hooks are user-defined commands that run automatically at specific points of a coding agent's work.
- [Pre-Tool Hook](https://wonderium.dev/ai/pre-tool-hook.md): The Pre-Tool Hook is an agent hook that runs before a tool call and can block or modify it.
- [Post-Tool Hook](https://wonderium.dev/ai/post-tool-hook.md): The Post-Tool Hook is an agent hook that runs after a tool call completes.
- [Prompt Submit Hook](https://wonderium.dev/ai/prompt-submit-hook.md): The Prompt Submit Hook is an agent hook that runs when the user sends a prompt, before the agent processes it.
- [Session Start Hook](https://wonderium.dev/ai/session-start-hook.md): The Session Start Hook is an agent hook that runs when a new agent session begins.
- [Stop Hook](https://wonderium.dev/ai/stop-hook.md): The Stop Hook is an agent hook that runs when the agent finishes its response.

## Quality & Operations

- [Evals](https://wonderium.dev/ai/evals.md): The Evals are systematic tests that measure the quality and reliability of AI model outputs.
- [LLM-as-a-Judge](https://wonderium.dev/ai/llm-as-a-judge.md): The LLM-as-a-Judge is a technique of using a language model to evaluate the outputs of another model.
- [Guardrails](https://wonderium.dev/ai/guardrails.md): The Guardrails are rules and checks that limit what an AI system can receive, do or output.
- [AI Observability](https://wonderium.dev/ai/ai-observability.md): The AI Observability is the practice of tracing, logging and monitoring the behavior of AI applications in production.
- [LLMOps](https://wonderium.dev/ai/llmops.md): The LLMOps is a set of practices for deploying, monitoring and maintaining applications built on language models.
- [Token Cost](https://wonderium.dev/ai/token-cost.md): The Token Cost is the price of using an AI model, calculated by the number of input and output tokens.
- [Latency](https://wonderium.dev/ai/latency.md): The Latency of an AI model is the time it takes to receive a response, often measured as time to first token.

## Security & Ethics

- [Prompt Injection](https://wonderium.dev/ai/prompt-injection.md): The Prompt Injection is an attack where malicious instructions hidden in input make an AI model ignore its original instructions.
- [Indirect Prompt Injection](https://wonderium.dev/ai/indirect-prompt-injection.md): The Indirect Prompt Injection is an attack where malicious instructions are hidden in external content that an AI model processes.
- [Jailbreak](https://wonderium.dev/ai/jailbreak.md): The Jailbreak is an attempt to bypass the safety rules of an AI model with specially crafted prompts.
- [Data Poisoning](https://wonderium.dev/ai/data-poisoning.md): The Data Poisoning is an attack where manipulated data is added to a training or retrieval dataset to change model behavior.
- [Slopsquatting](https://wonderium.dev/ai/slopsquatting.md): The Slopsquatting is an attack where malicious packages are published under names that AI models tend to hallucinate.
- [Sensitive Data Leakage](https://wonderium.dev/ai/sensitive-data-leakage.md): The Sensitive Data Leakage is the risk of exposing secrets or personal data through AI tools.
- [AI Bias](https://wonderium.dev/ai/ai-bias.md): The AI Bias is a systematic unfairness in AI outputs caused by biased data or design choices.
- [Responsible AI](https://wonderium.dev/ai/responsible-ai.md): The Responsible AI is a set of principles and practices for developing and using AI safely, fairly and transparently.
- [EU AI Act](https://wonderium.dev/ai/eu-ai-act.md): The EU AI Act is a European Union regulation that sets rules for AI systems based on their level of risk.
