Skill / SKILL.md

Postgres Hybrid Text Search

timescale/pg-aiguide

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). **Trigger when user asks to:** - Combine keyword and semantic search - Implement hybrid search or multi-modal retrieval - Use BM25/pg_textsearch with pgvector together - Implement RRF (Reciprocal Rank Fusion) for search - Build search that handles both exact terms and meaning **Keywords:** hybrid search, BM25, pg_textsearch, RRF, reciprocal rank fusion, keyword search, full-text search, reranking, cross-encoder Covers: pg_textsearch BM25 index setup, parallel query patterns, client-side RRF fusion (Python/TypeScript), weighting strategies, and optional ML reranking.
2 views 1,889 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Use this skill to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF). **Trigger when user asks to:** - Combine keyword and semantic search - Implement hybrid search or multi-modal retrieval - Use BM25/pg_textsearch with pgvector together - Implement RRF (Reciprocal Rank Fusion) for search - Build search that handles both exact terms and meaning **Keywords:** hybrid search, BM25, pg_textsearch, RRF, reciprocal rank fusion, keyword search, full-text search, reranking, cross-encoder Covers: pg_textsearch BM25 index setup, parallel query patterns, client-side RRF fusion (Python/TypeScript), weighting strategies, and optional ML reranking.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/timescale/pg-aiguide' skill-source

Use the complete skill-source/skills/postgres-hybrid-text-search directory with your client’s skill installer.

  • skills/postgres-hybrid-text-search

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/postgres-hybrid-text-search

Compatibility & requirements

Declared compatibility

Requires PostgreSQL 15+ with pgvector and pg_textsearch extensions

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
5539e5ffce2800b74ea9f6dd35533e2fadf277d8f726f9fa2d69f2917e4f6f8d
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills