---
title: "CommSync Runs Text, Vector, and Hybrid Search on Postgres with Lakebase Search"
description: "CommSync, a unified SMS/email inbox, runs keyword, semantic and hybrid search entirely in Postgres using Neon's Lakebase Search extensions. lakebase_text provides BM25 search with top-K pushdown over tsvector, and lakebase_vector is a pgvector-compatible drop-in with an ANN index."
url: "https://swe.quest/articles/commsync-runs-text-vector-and-hybrid-search-on-postgres-with-lakebase-search-8b687b59899ef5ac"
canonical: "https://neon.com/blog/commsync-runs-text-vector-and-hybrid-search-on-postgres-with-lakebase-search"
source: "Neon"
published: "2026-07-30"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["search","postgres","vector-search","rag"]
---

# CommSync Runs Text, Vector, and Hybrid Search on Postgres with Lakebase Search

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-07-30, 5 min read, Case study. Original: [https://neon.com/blog/commsync-runs-text-vector-and-hybrid-search-on-postgres-with-lakebase-search](https://neon.com/blog/commsync-runs-text-vector-and-hybrid-search-on-postgres-with-lakebase-search)

## Summary

CommSync, a unified SMS/email inbox, runs keyword, semantic and hybrid search entirely in Postgres using Neon's Lakebase Search extensions. lakebase\_text provides BM25 search with top-K pushdown over tsvector, and lakebase\_vector is a pgvector-compatible drop-in with an ANN index. Warm inbox search went from about 19.5s with cold-start GIN to about 18.6ms. The cmd+k palette fuses lexical and semantic results with weighted RRF (k=60, lexical 1.0, semantic 0.8) in two tiers: a 110ms lexical pass per keystroke and a debounced 420ms hybrid pass. Agent RAG uses exact nearest-neighbor on small per-org knowledge bases, with tenancy and permissions expressed as plain WHERE clauses.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Search](https://swe.quest/tags/search.md) (Backend & APIs)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Vector search](https://swe.quest/tags/vector-search.md) (Data & databases)
- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)

## Prerequisites

- Postgres full-text search ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- vector embeddings ([easy posts on RAG & retrieval](https://swe.quest/tags/rag.md?difficulty=easy))
- pgvector basics

## Keywords

Neon, Lakebase Search, lakebase\_text, lakebase\_vector, BM25, Reciprocal Rank Fusion, pgvector, CommSync

## Related posts

- [Neon Docs search is now built on Neon](https://swe.quest/articles/neon-docs-search-is-now-built-on-neon-6358bcc8a0cf6214.md): Neon · 2026-10-26 · Medium · 6 min read · Search, PostgreSQL, Vector search, Caching, AI agents
  Neon's docs search now runs entirely on its own stack: Lakebase Postgres with the lakebase\_vector (pgvector-compatible ANN) and lakebase\_text (BM25) extensions, a Hono API on Neon Functions, and Neon AI Gateway for embeddings and reranking.
- [Lakebase Search: the retrieval primitive for agents on Neon](https://swe.quest/articles/lakebase-search-the-retrieval-primitive-for-agents-on-neon-08857239ea4fff67.md): Neon · 2026-09-30 · Medium · 6 min read · Vector search, PostgreSQL, Search, RAG & retrieval, AI agents
  Lakebase Search adds vector and BM25 search to Lakebase Postgres through two extensions, lakebase\_vector and lakebase\_text, so agents can query operational data without a separate search system. lakebase\_vector keeps its durable index in object storage, caches hot pages in NVMe and RAM, and combines hierarchical IVF with RaBitQ quantization.
- [Lakebase Search: vector and BM25 on Neon](https://swe.quest/articles/lakebase-search-vector-and-bm25-on-neon-b760351851c96b48.md): Neon · 2026-07-02 · Medium · 7 min read · Vector search, Search, PostgreSQL, Storage engines
  Neon's Lakebase Search adds two Postgres extensions, lakebase\_vector (IVF partitioning plus RaBitQ quantization, pgvector-compatible) and lakebase\_text (a BM25-native index with Block-Max WAND top-K pushdown), designed for Neon's separated compute and object-storage tiers.
- [Build an end-to-end RAG pipeline entirely in psql using pgrag and DeepSeek](https://swe.quest/articles/build-an-end-to-end-rag-pipeline-entirely-in-psql-using-pgrag-and-deepseek-250dc9ab3281f7d0.md): Neon · 2025-01-30 · Medium · 9 min read · RAG & retrieval, PostgreSQL, Vector search, LLMs
  pgrag, Neon's open-source Postgres extension, lets you build a complete RAG pipeline inside psql.
- [Semantic search using OpenAI, pg\_embedding and Neon](https://swe.quest/articles/semantic-search-using-openai-pg-embedding-and-neon-aeafbc27d93ca728.md): Neon · 2023-08-25 · Medium · 9 min read · Vector search, PostgreSQL, LLMs, Serverless, TypeScript
  A YC idea-matcher app implements semantic search by embedding ~4,400 YCombinator company descriptions with OpenAI's text-embedding-ada-002 (1536 dimensions) and storing them as real\[\] columns in Neon Postgres via the pg\_embedding extension.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
