Semantic Search with OpenAI and PostgreSQL in 10 Minutes
Blog post from Tiger Data
This article discusses the use of large language models, specifically retrieval-augmented generation (RAG), in industries such as chatbots and automotive experiences. It highlights the importance of context in LLMs and introduces semantic search, a strategy for finding relevant results by focusing on word associations and meanings. The article showcases how to set up and perform a semantic search using pgai, pgvector, and OpenAI in just 10 minutes. This involves installing required libraries, initializing the OpenAI client, setting up a database, creating a vectorizer, and defining a function for performing semantic searches. The tutorial demonstrates how to visualize the database and test the function with custom queries.
| Trend | Post Mentions | Total Month Mentions | Posts | Companies | MoM |
|---|---|---|---|---|---|
| Vector Search | 25 | 2,869 | 338 | 116 | -34% |
| RAG | 3 | 2,188 | 259 | 95 | +39% |
| Kubernetes | 2 | 1,369 | 188 | 87 | -27% |
| LLM | 2 | 4,587 | 525 | 176 | +56% |
| AI Agents | 1 | 1,166 | 249 | 116 | +1% |
| AI Coding Assistant | 1 | 696 | 89 | 45 | +23% |
| MCP | 1 | 304 | 40 | 16 | +26% |
Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.