Learn/Generative AI, RAG & Agents/APPENDIX A: GLOSSARY
Lesson 35 of 37 · 3 min read

Glossary

Agent: An AI system that uses an LLM to make decisions and take actions via tools, typically in a loop, to accomplish a goal.

Agentic search: Giving an LLM search tools (keyword search, file reads, queries) and letting it decide what to look up, in a loop, until it has enough to answer.

Attention: A mechanism in Transformer models that allows the model to weigh the relevance of different parts of the input when processing each piece.

The core innovation behind modern LLMs.

Chunk: A piece of a document, produced by splitting the document for indexing in a RAG system.

Context window: The maximum amount of text (measured in tokens) an LLM can process at once, including the prompt, conversation history, and generated response.

Cosine similarity: A measure of how similar two vectors are, based on the angle between them.

Used to compare embeddings.

Deep learning: A type of machine learning using neural networks with many layers, capable of learning very complex patterns.

Embedding: A vector of numbers representing the meaning of a piece of text.

Similar texts have similar embeddings.

Emergence: The phenomenon where larger AI models develop qualitatively new capabilities that smaller models lack.

Few-shot prompting: Including a few examples of the desired input/output format in a prompt to guide the model's behavior.

Fine-tuning: Further training a pre-trained model on specific data or for a specific task.

Function calling: The mechanism by which an LLM can request that the surrounding system execute a tool (function) on its behalf.

Generative AI: AI systems that produce new content (text, images, audio, etc.) rather than just classifying or analyzing inputs.

Hallucination: When an LLM generates plausible-sounding but false information.

Hybrid search: A retrieval approach combining semantic (embedding-based) search with keyword search.

LLM (Large Language Model): A neural network trained on huge amounts of text to predict the next token, capable of producing coherent and useful text.

Machine Learning (ML): A subset of AI in which systems learn from data rather than being explicitly programmed.

MCP (Model Context Protocol): An open standard for connecting AI applications to external data sources, tools and workflows.

Multi-agent system: A system in which multiple specialized AI agents collaborate to accomplish tasks.

Parameter: An adjustable number inside a neural network.

Large models have hundreds of billions of parameters.

Pre-training: The initial training phase where an LLM learns from massive amounts of text to predict the next token.

Prompt caching: A provider feature that lets a repeated prompt prefix be reused at a lower cost instead of being reprocessed each time.

Prompt: The input given to an LLM, including any instructions, context, examples, and the user's question.

Prompt engineering: The practice of crafting prompts to get good results from LLMs.

Prompt injection: A security vulnerability where untrusted text fed to an LLM contains instructions that override or subvert the intended behavior.

RAG (Retrieval Augmented Generation): A technique that retrieves relevant documents from a knowledge base and includes them in an LLM's prompt to ground the response.

ReAct: A pattern for agent design that interleaves Reasoning ("Thought") with Acting ("Action") and observing results.

Re-ranking: A second-stage filtering step in retrieval that uses a specialized model to more carefully score the relevance of candidate documents.

Reasoning model: A model that works through a problem internally ("thinks") before giving its answer, with a setting that controls how much it thinks.

RLHF (Reinforcement Learning from Human Feedback): A training technique that fine-tunes an LLM to produce responses humans rate highly.

Semantic search: Searching for text by meaning (using embeddings) rather than by exact keywords.

System prompt: A prompt set by the developer of an AI product, instructing the model how to behave throughout a conversation.

Token: A small piece of text (often a word, part of a word, or punctuation) that an LLM processes as a unit.

Tool: A function an agent can call to take an action in the world, like searching the web or sending an email.

Tool use: The ability of an LLM to call functions/APIs.

Also called function calling.

Transformer: The neural network architecture underlying virtually all modern LLMs, based on attention mechanisms.

Vector: A list of numbers.

In AI, often refers to embeddings.

Vector database: A specialized database for storing embedding vectors and quickly finding similar ones.


Keep going with a free account

A free account saves your progress across lessons and lets you pick up where you left off.