pg_glot_hybrid
pg_glot · BM25 and dense-vector retrieval with reciprocal-rank fusion.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 102082 | pg_glot_hybrid | pg_glot | 0.0.1 | FTS | PostgreSQL | Rust |
PostgreSQL · 17
| Relationships | |
|---|---|
| Requires | pg_glot pg_textsearch vector |
Usage
Sources:
- extensions/pg_glot_hybrid/pg_glot_hybrid.control
- README.md
- Cargo.toml
- extensions/pg_glot_hybrid/Cargo.toml
- extensions/pg_glot_hybrid/src/lib.rs
- extensions/pg_glot_hybrid/src/customscan.rs
pg_glot_hybrid combines the CJK configurations of pg_glot, BM25 from pg_textsearch and dense vectors from vector. It offers glot.rank planner integration and the explicit glot.hybrid set-returning interface.
Core Workflow
Operational Boundaries
Install as a superuser. Preload both libraries shown below and restart for the intended planner path. Literal queries with plain ORDER BY/LIMIT and real column references are required for the custom scan. Without the hook, glot.rank falls back to a different, non-RRF score. The explicit glot.hybrid interface does not need that hook but requires a matching BM25 index, a vector index and a bigint key. Embeddings come from the application. The reviewed default target is PostgreSQL 17; inherited extension dependencies impose their own version constraints.