Connecting Compression Spaces with Transformer for Approximate Nearest Neighbor Search