Modern embedding models - including OpenAI's text-embedding-3 family - use a technique called Matryoshka Representation Learning.
Like Russian nesting dolls, the model packs the most important concepts into the earliest columns. This allows you to generate a 3,072-dimension vector and simply chop off the end to store only 512 or 1,024 numbers with minimal accuracy loss.