·postgres-hybrid-text-search
</>

postgres-hybrid-text-search

timescale/pg-aiguide

Hybrid search in PostgreSQL combining BM25 keyword search (pg_textsearch) with semantic search (pgvector) using RRF fusion

10Installs·1Trend·@timescale

Installation

$npx skills add https://github.com/timescale/pg-aiguide --skill postgres-hybrid-text-search

SKILL.md

Hybrid search combines keyword search (BM25) with semantic search (vector embeddings) to get the best of both: exact keyword matching and meaning-based retrieval. Use Reciprocal Rank Fusion (RRF) to merge results from both methods into a single ranked list.

This guide covers combining pgtextsearch (BM25) with pgvector. Requires both extensions. For high-volume setups, filtering, or advanced pgvector tuning (binary quantization, HNSW parameters), see the pgvector-semantic-search skill.

pgtextsearch is a new BM25 text search extension for PostgreSQL, fully open-source and available hosted on Tiger Cloud as well as for self-managed deployments. It provides true BM25 ranking, which often improves relevance compared to PostgreSQL's built-in tsrank and can offer better performance at scale. Note: pgtextsearch is currently in prerelease and not yet recommended for production use. pgtextsearch currentl...

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/timescale/pg-aiguide --skill postgres-hybrid-text-search
Category
</>Dev Tools
Verified
First Seen
2026-02-01
Updated
2026-02-18

Quick answers

What is postgres-hybrid-text-search?

Hybrid search in PostgreSQL combining BM25 keyword search (pg_textsearch) with semantic search (pgvector) using RRF fusion Source: timescale/pg-aiguide.

How do I install postgres-hybrid-text-search?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/timescale/pg-aiguide --skill postgres-hybrid-text-search Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/timescale/pg-aiguide