Machine Don

What is query, key, and value?

The three roles each word plays in attention: the query says what it's looking for, the key says what each word offers, and the value is the information that gets passed along.

Also called: query / key / value, query/key/value.

An analogy

At a library: you show up with a question (query), check the label on each shelf (key), and take home the book from the right shelf (value).

Where it shows up in the course

Related terms