Build vector search with Postgres
- Milan Jovanović’s May 22 YouTube tutorial shows developers how to build vector search in.NET with PostgreSQL and the pgvector extension. - pgvector’s core pitch is “Store your vectors with the rest of your data,” letting teams add similarity search without a separate database. - The tutorial video and linked source code are available on YouTube and through Jovanović’s code download page.
A May 22 YouTube tutorial by Milan Jovanović walks through building vector search in.NET with PostgreSQL and pgvector, a Postgres extension for similarity search. The video describes a path for adding semantic retrieval to an application without introducing a separate vector database, according to the YouTube listing. The description links to downloadable source code for the project. pgvector describes itself as open-source vector similarity search for Postgres and says users can “store your vectors with the rest of your data.” ### Why are.NET developers looking at Postgres for vector search? PostgreSQL is already a common operational database for web applications, and pgvector extends it with vector data types and nearest-neighbor search inside the same system. The pgvector project says it supports storing embeddings in Postgres and creating indexes for faster similarity search. That setup lets a team keep transactional data, metadata and embeddings in one database while testing search or retrieval features. (youtube.com) Microsoft’s ASP.NET Core documentation positions the framework as a way to build web apps and services that are fast, secure and cloud-based. In practice, that makes a.NET Web API plus Postgres a familiar stack for developers who want to add semantic search to an existing service rather than build a separate retrieval system first. (github.com) ### What does the tutorial appear to build? The YouTube listing for the May 22 video says it covers vector search in.NET with Postgres and pgvector, and the linked code package indicates a hands-on implementation rather than a conceptual overview. The card briefing for the video says the walkthrough includes a.NET Web API, embedding generation, vector storage in Postgres and pgvector indexes with metadata filters. (learn.microsoft.com) That matches the standard semantic-search flow used in many application prototypes: convert text into embeddings, store those embeddings alongside source records, and query for the nearest matches at request time. A typical implementation stores a source document, its embedding and ordinary relational fields such as category, date or tenant ID in the same table or related tables. That matters because filters on ordinary columns can be combined with vector search, which is often necessary in production systems where results must stay within a user, workspace or content type. The pgvector documentation and related implementation guides both describe index-backed approximate search and filtered queries as part of normal usage. (youtube.com) ### Which pgvector features matter most in a first project? pgvector’s documentation highlights HNSW and IVFFlat as index options for approximate nearest-neighbor search. The project says IVFFlat uses less memory and builds faster, while HNSW offers a better speed-recall tradeoff in many cases. For a prototype, that gives developers a concrete set of tradeoffs to test inside Postgres rather than moving immediately to a separate vector store. (github.com) The extension also supports multiple distance functions, which affects how embeddings are compared. In practical.NET projects, developers usually choose a distance operator that matches the embedding model they are using, then expose the search through a Web API endpoint that returns top matches and any attached metadata. That pattern is reflected in recent.NET implementation guides built around ASP.NET Core, PostgreSQL and pgvector. (pgxn.org) ### Where does this fit in a retrieval-augmented application? Retrieval-augmented systems usually begin with a search layer that can fetch the most relevant passages or documents before an LLM generates an answer. A Postgres-plus-pgvector design can cover that retrieval step for early-stage products, internal tools or applications with moderate scale, while keeping the data model close to the rest of the backend. (dev.to) The advantage is architectural simplicity: one database, one backup story and one set of operational tools. That is an inference from the documented capabilities of pgvector and the structure of the tutorial, not a claim made in the video listing itself. The next step for readers is concrete. The May 22 YouTube video includes a code link in its description, and pgvector’s official repository documents installation, indexing and query patterns for PostgreSQL. Developers who want to reproduce the build can start with an ASP.NET Core Web API, enable pgvector in Postgres, load embeddings into a table and test filtered similarity queries against sample documents. (youtube.com)