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,433 | 274 | 99 | -40% |
| RAG | 3 | 1,794 | 220 | 80 | +16% |
| Kubernetes | 2 | 1,208 | 158 | 73 | -30% |
| LLM | 2 | 3,709 | 434 | 145 | +39% |
| AI Agents | 1 | 865 | 204 | 92 | -19% |
| AI Coding Assistant | 1 | 624 | 74 | 33 | +22% |
| MCP | 1 | 232 | 36 | 13 | +23% |
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.