---
title: "Build AI Search in .NET using Postgres and pgvector"
url: https://daily.dev/posts/build-ai-search-in-net-using-postgres-and-pgvector-bcwbj2v0i
source_url: https://mwaseemzakir.substack.com/p/build-ai-search-in-net-using-postgres
type: article
source: "Waseem .NET Newsletter"
published: 2026-07-04T04:11:39.916Z
updated: 2026-07-04T04:12:01.160Z
tags: [".net", "postgresql", "vector-search", "embeddings", "pgvector"]
reading_time: 4
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Build AI Search in .NET using Postgres and pgvector

**[Waseem .NET Newsletter](https://daily.dev/sources/mwaseemzakir)** · 4 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to building semantic/AI-powered search in ASP.NET Core using PostgreSQL, pgvector, and the Gemini Embeddings API. Covers the limitations of keyword search, explains vector embeddings, and walks through adding an Embedding column to a Blog entity, configuring pgvector with EF Core, generating embeddings on record creation, and querying by cosine distance to return semantically relevant results. A complete demo repo with 100 seeded articles is provided.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://mwaseemzakir.substack.com/p/build-ai-search-in-net-using-postgres>

## Similar posts on daily.dev

- [Getting Started With PgVector in .NET for Simple Vector Search](https://daily.dev/posts/getting-started-with-pgvector-in-net-for-simple-vector-search-wqsbcjmkr) · Milan Jovanović · 5 upvotes · 0 comments

---

Tags: [#.net](https://daily.dev/tags/.net), [#postgresql](https://daily.dev/tags/postgresql), [#vector-search](https://daily.dev/tags/vector-search), [#embeddings](https://daily.dev/tags/embeddings), [#pgvector](https://daily.dev/tags/pgvector)

[View this post on daily.dev](https://daily.dev/posts/build-ai-search-in-net-using-postgres-and-pgvector-bcwbj2v0i)
