We focus on the encoder-decoder attention, which builds the connection between source and target by informing the decoder which area of the source text should be attended to.
in the encoder-decoder attention, Q is the single vector coming from the current position of the decoder, K and V are the same sequence of vectors that are the outcomes of the encoder at all source positions.