Home / Companies / Tiger Data / Blog / Post Details
Content Deep Dive

Combining Semantic Search and Full-Text Search in PostgreSQL (With Cohere, Pgvector, and Pgai)

Blog post from Tiger Data

Post Details
Company
Date Published
Author
Team Tiger Data
Word Count
3,633
Company Posts That Month
17
Language
English
Hacker News Points
-
Summary

This article discusses how to combine full-text search and semantic search in PostgreSQL using Cohere, Pgvector, and Pgai. Full-text search finds precise matches for keywords in a query, while semantic search understands the meaning of words and their relationships through vectors. Hybrid search combines the precision of keyword search with the contextual understanding of vector search, ensuring results are both precise and contextually relevant. The implementation involves using Cohere's embedding model and reranker, as well as leveraging Pgvector for efficient semantic searches on data and Pgai for AI-powered queries within PostgreSQL.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Vector Search 32 2,600 253 90 -44%
Kubernetes 2 1,530 167 62 +10%
RAG 2 1,737 187 65 -20%
Secrets Management 2 423 92 54 -59%
AI Agents 1 719 139 61 +67%
AI Coding Assistant 1 423 80 49 -17%
LLM 1 2,876 370 130 -20%
MCP 1 55 11 7 -26%