No, mapping to a _fixed length code_, that’s it. Note that the output domain need not be smaller than the input domain either.
If your model takes a sequence of 1 or 10,000 or N tokens and returns a vector of fixed length, say 1500 dimensions, then it is a hash function of sorts.
> A hash function is any function that can be used to map data of arbitrary size to fixed-size values