Skip to main content
GGenerative AI
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
SearchStart here
Menu
    • Start here
    • Learning paths5 paths
    • Modules11 modules
    • Projects5 projects
    • Quizzes
    • Flashcards
    • Homework
    • Interview prep8 question banks
    • Cheat sheets11 sheets
    • Glossary239 terms
    • Code snippets
    • Ask the mentor
    • My notes
    • My progress
  1. Reference
  2. Query, key and value (Q, K, V)

Glossary

Query, key and value (Q, K, V)

Three vectors computed for each token in attention. Queries are compared with keys to get weights, and the weights mix the values.

Where it is explained

  • How LLMs workLLM foundations

See also

Terms explained in the same lessons.

  • Autoregressive generation
  • Causal mask
  • Large language model (LLM)
  • Multi-head attention
  • Positional encoding
  • Self-attention
Previous termQuery transformationNext termRAG

All terms, A to Z

GGenerative AI

Learn generative AI from the first token to production systems.

  • Privacy
  • Search