Canonical: https://weaveos.com/glossary/category/llm-fundamentals/page/3

[Home](https://weaveos.com/)/[Glossary](https://weaveos.com/glossary)/LLM fundamentals

A reference from Weave

# LLM fundamentals glossary

Build a practical understanding of language models, prompts, tokens, and context. Focus on the concepts that affect real applications and engineering workflows.

Search the glossary

Topic

- All topics
- Engineering analytics
- Developer productivity
- DORA and DevOps
- Flow and capacity planning
- Code quality and technical debt
- Code review
- Reliability and observability
- Measurement and experimentation
- AI coding and agents
- LLM fundamentals
- Model routing and gateways
- Inference performance
- Evaluations and benchmarks
- Token costs and AI ROI

Search

[All](https://weaveos.com/glossary/category/llm-fundamentals)0-9[A](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=A)[B](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=B)[C](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=C)[D](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=D)[E](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=E)[F](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=F)[G](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=G)[H](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=H)[I](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=I)[J](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=J)K[L](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=L)[M](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=M)[N](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=N)[O](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=O)[P](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=P)Q[R](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=R)[S](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=S)[T](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=T)[U](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=U)[V](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=V)[W](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=W)XY[Z](https://weaveos.com/glossary/search?category=llm-fundamentals\&letter=Z)

## Explore by topic

- [Engineering analytics191](https://weaveos.com/glossary/category/engineering-analytics)
- [Developer productivity176](https://weaveos.com/glossary/category/developer-productivity)
- [DORA and DevOps174](https://weaveos.com/glossary/category/dora-devops)
- [Flow and capacity planning158](https://weaveos.com/glossary/category/flow-capacity-planning)
- [Code quality and technical debt237](https://weaveos.com/glossary/category/code-quality-technical-debt)
- [Code review109](https://weaveos.com/glossary/category/code-review)
- [Reliability and observability140](https://weaveos.com/glossary/category/reliability-observability)
- [Measurement and experimentation127](https://weaveos.com/glossary/category/measurement-experimentation)
- [AI coding and agents150](https://weaveos.com/glossary/category/ai-coding-agents)
- [LLM fundamentals148](https://weaveos.com/glossary/category/llm-fundamentals)
- [Model routing and gateways120](https://weaveos.com/glossary/category/model-routing-gateways)
- [Inference performance100](https://weaveos.com/glossary/category/inference-performance)
- [Evaluations and benchmarks98](https://weaveos.com/glossary/category/evaluations-benchmarks)
- [Token costs and AI ROI80](https://weaveos.com/glossary/category/token-costs-ai-roi)

## All terms

148 terms

- ### [Prompt engineering↗](https://weaveos.com/glossary/prompt-engineering)

  Prompt engineering is the practice of designing and testing instructions, examples, context, and output requirements that guide a language model toward a useful result. It is an iterative engineering activity supported by evaluation and observability.

  LLM fundamentals

- ### [Prompt injection↗](https://weaveos.com/glossary/prompt-injection)

  Prompt injection is an attack or unintended instruction that causes a language model to treat untrusted content as higher-priority guidance. It can redirect an application, expose data, or trigger tools in ways the developer did not intend.

  LLM fundamentals

- ### [Prompt injection defense↗](https://weaveos.com/glossary/prompt-injection-defense)

  Prompt injection defense is a language-model concept about instruction design and control. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Prompt registry↗](https://weaveos.com/glossary/prompt-registry)

  Prompt registry is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Prompt robustness↗](https://weaveos.com/glossary/prompt-robustness)

  Prompt robustness is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Prompt template↗](https://weaveos.com/glossary/prompt-template)

  Prompt template is a language-model concept about generation behavior and sampling. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Prompt variable↗](https://weaveos.com/glossary/prompt-variable)

  Prompt variable is a language-model concept about context selection and limits. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Prompt version↗](https://weaveos.com/glossary/prompt-version)

  Prompt version is a language-model concept about instruction design and control. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Proximal policy optimization↗](https://weaveos.com/glossary/proximal-policy-optimization)

  Proximal policy optimization is a language-model concept about serving behavior and operational tradeoffs. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Random seed↗](https://weaveos.com/glossary/random-seed)

  Random seed is a language-model concept about context selection and limits. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Reasoning trace↗](https://weaveos.com/glossary/reasoning-trace)

  Reasoning trace is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Reinforcement learning from AI feedback↗](https://weaveos.com/glossary/reinforcement-learning-from-ai-feedback)

  Reinforcement learning from AI feedback is a language-model concept about training behavior and measurement. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Relative positional encoding↗](https://weaveos.com/glossary/relative-positional-encoding)

  Relative positional encoding is a language-model concept about serving behavior and operational tradeoffs. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Repetition control↗](https://weaveos.com/glossary/repetition-control)

  Repetition control is a language-model concept about generation behavior and sampling. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Residual connection↗](https://weaveos.com/glossary/residual-connection)

  Residual connection is a language-model concept about serving behavior and operational tradeoffs. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Response prefilling↗](https://weaveos.com/glossary/response-prefilling)

  Response prefilling supplies a partial assistant response as input so a compatible language model continues from that prefix.

  LLM fundamentals

- ### [Retrieval augmented generation↗](https://weaveos.com/glossary/retrieval-augmented-generation)

  Retrieval augmented generation, or RAG, is an architecture that retrieves relevant documents or records and supplies them to a language model as context for generating a response. It can ground answers in a changing or private information source without retraining the model for every update.

  LLM fundamentals

- ### [Reward model↗](https://weaveos.com/glossary/reward-model)

  Reward model is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Rotary positional embedding↗](https://weaveos.com/glossary/rotary-positional-embedding)

  Rotary positional embedding is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Self-consistency decoding↗](https://weaveos.com/glossary/self-consistency-decoding)

  Self-consistency decoding is a language-model concept about context selection and limits. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Self-critique prompting↗](https://weaveos.com/glossary/self-critique-prompting)

  Self-critique prompting is a language-model concept about generation behavior and sampling. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Sentence representation↗](https://weaveos.com/glossary/sentence-representation)

  Sentence representation is a language-model concept about context selection and limits. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Sparse autoencoder↗](https://weaveos.com/glossary/sparse-autoencoder)

  Sparse autoencoder is a language-model concept about evaluation design and failure analysis. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Special token↗](https://weaveos.com/glossary/special-token)

  Special token is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Step-back prompting↗](https://weaveos.com/glossary/step-back-prompting)

  Step-back prompting is a language-model concept about generation behavior and sampling. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Structured output↗](https://weaveos.com/glossary/structured-output)

  Structured output is a model response constrained to a defined shape such as JSON with named fields and types. It gives application code a predictable contract while leaving the model responsible for generating the field values.

  LLM fundamentals

- ### [Superposition↗](https://weaveos.com/glossary/superposition)

  Superposition is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Task decomposition prompting↗](https://weaveos.com/glossary/task-decomposition-prompting)

  Task decomposition prompting is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Temperature↗](https://weaveos.com/glossary/temperature)

  Temperature is a generation parameter that changes how a language model samples from the probability distribution of possible next tokens. Higher values generally allow more variation, while lower values generally favor higher-probability choices.

  LLM fundamentals

- ### [Temperature scaling↗](https://weaveos.com/glossary/temperature-scaling)

  Temperature scaling is a language-model concept about instruction design and control. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Token embedding↗](https://weaveos.com/glossary/token-embedding)

  Token embedding is a language-model concept about generation behavior and sampling. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Tokenization↗](https://weaveos.com/glossary/tokenization)

  Tokenization is the process of converting text into the token units a language model receives and generates. A token can represent a word, part of a word, punctuation, or another piece of text, depending on the tokenizer.

  LLM fundamentals

- ### [Top-k sampling↗](https://weaveos.com/glossary/top-k-sampling)

  Top-k sampling is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Top-p sampling↗](https://weaveos.com/glossary/top-p)

  Top-p sampling, also called nucleus sampling, selects the next token from the smallest group whose cumulative probability reaches a chosen probability p. Lower p values restrict the candidate set, while higher values allow more candidates.

  LLM fundamentals

- ### [Training batch size↗](https://weaveos.com/glossary/training-batch-size)

  Batch size is a language-model concept about serving behavior and operational tradeoffs. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Training data contamination↗](https://weaveos.com/glossary/training-data-contamination)

  Training data contamination is a language-model concept about training behavior and measurement. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Training loss↗](https://weaveos.com/glossary/training-loss)

  Training loss is a language-model concept about training behavior and measurement. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Training step↗](https://weaveos.com/glossary/training-step)

  Training step is a language-model concept about training behavior and measurement. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Transformer block↗](https://weaveos.com/glossary/transformer-block)

  Transformer block is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Tree of thoughts↗](https://weaveos.com/glossary/tree-of-thoughts)

  Tree of thoughts is a language-model concept about instruction design and control. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Typical sampling↗](https://weaveos.com/glossary/typical-sampling)

  Typical sampling is a language-model concept about context selection and limits. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Underfitting↗](https://weaveos.com/glossary/underfitting)

  Underfitting is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Validation loss↗](https://weaveos.com/glossary/validation-loss)

  Validation loss is a language-model concept about serving behavior and operational tradeoffs. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Vector index↗](https://weaveos.com/glossary/vector-index)

  Vector index is a language-model concept about instruction design and control. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Vector normalization↗](https://weaveos.com/glossary/vector-normalization)

  Vector normalization is a language-model concept about context selection and limits. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Vector similarity↗](https://weaveos.com/glossary/vector-similarity)

  Vector similarity is a language-model concept about representation and similarity. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Warmup steps↗](https://weaveos.com/glossary/warmup-steps)

  Warmup steps is a language-model concept about mechanism and information flow. It names a mechanism, representation, training practice, or operational behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

- ### [Zero-shot prompting↗](https://weaveos.com/glossary/zero-shot-prompting)

  Zero-shot prompting is a language-model concept about instruction design and control. It names a mechanism, representation, prompting pattern, decoding control, or context behavior that can change how an AI system processes input and produces output.

  LLM fundamentals

[← Previous](https://weaveos.com/glossary/category/llm-fundamentals/page/2)Page 3 of 3
