postgres-hybrid-text-search
PostgreSQL 中的混合搜索,使用 RRF 融合將 BM25 關鍵字搜索 (pg_textsearch) 與語義搜索 (pgvector) 相結合
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...
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/timescale/pg-aiguide --skill postgres-hybrid-text-search- 分類
- </>開發工具
- 認證
- —
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 postgres-hybrid-text-search?
PostgreSQL 中的混合搜索,使用 RRF 融合將 BM25 關鍵字搜索 (pg_textsearch) 與語義搜索 (pgvector) 相結合 來源:timescale/pg-aiguide。
如何安裝 postgres-hybrid-text-search?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/timescale/pg-aiguide --skill postgres-hybrid-text-search 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/timescale/pg-aiguide