Question: what are query key value?
Answer: Given a query q and a set of key-value pairs (K, V), attention can be generalised to compute a weighted sum of the values dependent on the query and the corresponding keys. The query determines which values to focus on; we can say that the query 'attends' to the values.