Add AI-powered vector and hybrid search directly to an existing Postgres database without a separate service.
Run metadata-filtered approximate search over database rows with must, should, and must_not conditions.
Build a Wikipedia-scale hybrid search demo combining dense vectors with full-text ranking.
Replace pgvector with a faster extension while matching recall on standard benchmarks.
| evokoa/pgcontext | anvia-hq/lexa | l0ng-ai/tty7 | |
|---|---|---|---|
| Stars | 82 | 83 | 81 |
| Language | Rust | Rust | Rust |
| Setup difficulty | moderate | easy | easy |
| Complexity | 4/5 | 2/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires PostgreSQL 17 or 18 and installing a Rust-built extension into your Postgres instance.
pgContext is a PostgreSQL extension, written in Rust, that turns the database into a full AI search engine. Instead of running a separate search service alongside your database and copying your data into it, pgContext keeps the search inside Postgres. Your existing tables remain the single source of truth for vectors, metadata, permissions, backups, and replication. The extension covers dense vector search using HNSW indexes, metadata-filtered approximate search, and hybrid retrieval that combines vector search with PostgreSQL's full-text ranking. It supports several distance metrics: L2, inner-product, cosine, and L1. Filters can be applied over registered columns and JSONB paths using a style similar to Qdrant, with must, should, and must_not conditions, plus range and equality checks. Results go through exact re-scoring against live rows before being returned, so approximate matches are verified under PostgreSQL's transaction visibility and row-level security rules. On the standard GloVe benchmark with 1.18 million vectors, pgContext matches pgvector's recall at every search setting while answering queries 3.8 to 5.3 times faster. At roughly 2.5 milliseconds per query, pgContext reaches 0.91 recall where pgvector reaches 0.75. The extension also ships with hybrid retrieval built in, fusing dense vector results with full-text ranking using reciprocal-rank fusion, rather than leaving that as application-level glue. The project is Apache-2.0 licensed and targets PostgreSQL 17 and 18. It is built by a company called Evokoa, which also offers a managed hosting version through a service called Polygres. Two live demos are available: a Wikipedia-scale hybrid search and an interactive memory demo with adjustable fusion weights. The README includes benchmark comparisons against pgvector and Qdrant, along with links to full reports and documentation. The full README is longer than what was shown.
A Postgres extension, written in Rust, that turns your database into an AI search engine with vector, hybrid, and filtered retrieval, no separate search service needed.
Mainly Rust. The stack also includes Rust, PostgreSQL, HNSW.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice and state any changes.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.