Based on the following article, I created a notebook for similar image search using an autoencoder.

The notebook is available below.

You can verify its operation by selecting "Runtime" > "Run all."

I hope this is helpful.