Vector Search with Azure AI Vision and PostgreSQL – MVP TechBytes

A few weeks ago, I had a great time recording a session for the brand-new virtual show “MVP TechBytes”. MVP TechBytes, hosted by Taswar Bhatti, attempts to highlight interesting projects created by Microsoft Most Valuable Professionals (MVPs). I would like to thank Taswar for including me on this show.

My presentation was about vector similarity search with the Azure AI Vision Image Retrieval APIs and the pgvector extension of Azure Cosmos DB for PostgreSQL. Does this sound interesting? If so, you can watch the recording of my presentation or read my post “Image Vector Similarity Search with Azure Computer Vision and PostgreSQL” for a written version.

My session

Vector search is a method that helps you find similar items based on their content rather than exact matches on properties like keywords, tags, or other metadata, as keyword-based search systems do. In this session, we will discuss about vector search with Azure AI Vision and Azure Cosmos DB for PostgreSQL. We will explore how to use Azure AI Vision embedding models and enable the pgvector extension, an open-source vector similarity search extension for PostgreSQL. We will then go on to show how to build a simple image vector similarity search app that can take advantage of these technologies.

What you will learn in this session:

  • Explore the concept of vector embeddings and vector similarity search.
  • Understand how the Image Retrieval APIs of Azure AI Vision work.
  • Use the Image Retrieval APIs in Python to search a collection of images to find those that are most similar to a given query image or text prompt.
  • Use the Azure Cosmos DB for PostgreSQL to store and query vector data.
Do you want to start coding right away? The source code, image files, and their vector embeddings can all be found on my GitHub repository.

Resources:

If you’d like to dive deeper into this topic, here are some helpful resources.

You May Also Like