TL;DRSeq2seq uses an encoder to read input and a decoder to generate output — for translation.
Sequence-to-sequence models pair an encoder (compresses the input sequence into a context vector) with a decoder (generates the output sequence from it) — the original neural translation architecture. The bottleneck: cramming a whole sentence into one fixed vector lost information for long inputs. That bottleneck is exactly what attention was invented to fix.