<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we" -->

---
title: AI-powered semantic search using pgvector and embeddings
description: Implementing semantic search using pgvector and the OpenAI Embeddings API allows for accurate and efficient retrieval of data based on user queries.
canonical: https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: AI-powered semantic search using pgvector and embeddings | daily.dev
og:description: Implementing semantic search using pgvector and the OpenAI Embeddings API allows for accurate and efficient retrieval of data based on user queries.
og:url: https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we
og:image: https://api.daily.dev/og/posts/NXkJdu2WE.png
og:image:alt: AI-powered semantic search using pgvector and embeddings
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.

# AI-powered semantic search using pgvector and embeddings

**[habr](https://daily.dev/sources/habr)** · 9 min read · 2 upvotes · 0 comments

## Summary

Implementing semantic search using pgvector and the OpenAI Embeddings API allows for accurate and efficient retrieval of data based on user queries.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://habr.com/en/articles/792390/>

---

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

[View this post on daily.dev](https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we)

```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":"AI-powered semantic search using pgvector and embeddings","url":"https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we"},"datePublished":"2024-02-08T14:33:48.764Z","dateModified":"2024-07-02T02:12:53.696Z","description":"Implementing semantic search using pgvector and the OpenAI Embeddings API allows for accurate and efficient retrieval of data based on user queries.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2f922bf298df921841396781aea4762f?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2f922bf298df921841396781aea4762f?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"habr","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":"habr","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/habr","url":"https://daily.dev/sources/habr"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/ai-powered-semantic-search-using-pgvector-and-embeddings-nxkjdu2we","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai,embeddings,openai,pgvector,postgresql,vector-search","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"habr","item":"https://daily.dev/sources/habr"},{"@type":"ListItem","position":3,"name":"AI-powered semantic search using pgvector and embeddings"}]}
```

