From the course: Advanced RAG Applications with Vector Databases

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Demo: Comparing images semantically

Demo: Comparing images semantically

- [Instructor] Now that we know how to store the data into a vector database, let's compare our images to each other to find the most similar sets of images. We start with where we left off in the last video. The first step here should be familiar. We turn our vector store into a retriever. Once we have a retriever, we can retrieve our images by invoking the retriever. Instead of passing text through, we should pass the encoded string of an image. In this example, we pass the encoded string representing the first cat. We get back the top four resulting images that are most similar to that cat image. As a sanity check, we can see that cat number one is our top results.

Contents