<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut" -->

---
title: Semantic search using OpenAI, pg_embedding and Neon
description: A walkthrough of how Neon built a YCombinator idea matcher app using semantic search powered by OpenAI embeddings, the pg_embedding Postgres extension, and...
canonical: https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Semantic search using OpenAI, pg_embedding and Neon | daily.dev
og:description: A walkthrough of how Neon built a YCombinator idea matcher app using semantic search powered by OpenAI embeddings, the pg_embedding Postgres extension, and...
og:url: https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut
og:image: https://api.daily.dev/og/posts/jIWJ28Iut.png
og:image:alt: Semantic search using OpenAI, pg_embedding and Neon
og:image:width: 1200
og:image:height: 630
og:locale: 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.

# Semantic search using OpenAI, pg_embedding and Neon

**[Neon](https://daily.dev/sources/neontech)** · 7 min read · 0 upvotes · 0 comments

## Summary

A walkthrough of how Neon built a YCombinator idea matcher app using semantic search powered by OpenAI embeddings, the pg_embedding Postgres extension, and Neon's serverless database. Covers vector embedding concepts, how cosine/Euclidean/Manhattan similarity search works in Postgres, data collection from the YC public API, and the Next.js + Vercel edge function architecture. Also touches on rate limiting with Upstash, request validation with Zod, and HNSW indexing for scaling to larger datasets.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://neon.com/blog/semantic-search>

## Similar posts on daily.dev

- [Build AI Search in .NET using Postgres and pgvector](https://daily.dev/posts/build-ai-search-in-net-using-postgres-and-pgvector-bcwbj2v0i) · Waseem .NET Newsletter · 0 upvotes · 0 comments

---

Tags: [#nlp](https://daily.dev/tags/nlp), [#openai](https://daily.dev/tags/openai), [#postgresql](https://daily.dev/tags/postgresql), [#vector-search](https://daily.dev/tags/vector-search)

[View this post on daily.dev](https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Semantic search using OpenAI, pg_embedding and Neon","url":"https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut"},"datePublished":"2026-07-09T06:58:02.298Z","dateModified":"2026-07-09T07:06:20.663Z","description":"A walkthrough of how Neon built a YCombinator idea matcher app using semantic search powered by OpenAI embeddings, the pg_embedding Postgres extension, and...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/84ac9f772b43546774ffa94cbad3bd20?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/84ac9f772b43546774ffa94cbad3bd20?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Neon","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Neon","logo":"https://media.daily.dev/image/upload/s--65EDghou--/f_auto/v1724339118/logos/neontech","url":"https://daily.dev/sources/neontech"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/semantic-search-using-openai-pg-embedding-and-neon-jiwj28iut","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"nlp,openai,postgresql,vector-search","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Neon","item":"https://daily.dev/sources/neontech"},{"@type":"ListItem","position":3,"name":"Semantic search using OpenAI, pg_embedding and Neon"}]}
```

