# Neon Docs search is now built on Neon

DevFeed: [Neon Docs search is now built on Neon](<https://devfeed.tech/articles/neon-docs-search-is-now-built-on-neon-101276.md>)

Original publisher: [Read original article](<https://neon.com/blog/neon-docs-search-lakebase-search>)

Author: Andre Landgraf

Published: 2026-10-26T12:00:00Z

Content type: article

Language: en

Sources: [Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [hybrid-search](<https://devfeed.tech/topics/hybrid-search.md>), [search-engines](<https://devfeed.tech/topics/search-engines.md>), [Embeddings](<https://devfeed.tech/topics/embeddings.md>), [AI-driven information retrieval](<https://devfeed.tech/topics/ai-driven-information-retrieval.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [Algolia](<https://devfeed.tech/topics/algolia.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-experience](<https://devfeed.tech/tags/agent-experience.md>), [agent-skill](<https://devfeed.tech/tags/agent-skill.md>), [agent-skills](<https://devfeed.tech/tags/agent-skills.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api](<https://devfeed.tech/tags/api.md>), [blog](<https://devfeed.tech/tags/blog.md>), [changelog](<https://devfeed.tech/tags/changelog.md>), [docs](<https://devfeed.tech/tags/docs.md>), [function](<https://devfeed.tech/tags/function.md>), [guides](<https://devfeed.tech/tags/guides.md>), [just](<https://devfeed.tech/tags/just.md>), [lakebase](<https://devfeed.tech/tags/lakebase.md>), [neon](<https://devfeed.tech/tags/neon.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [product](<https://devfeed.tech/tags/product.md>), [reference](<https://devfeed.tech/tags/reference.md>), [results](<https://devfeed.tech/tags/results.md>), [search](<https://devfeed.tech/tags/search.md>), [service](<https://devfeed.tech/tags/service.md>)

## AI overview

Neon replaced its hosted docs search with a standalone service built on Lakebase Postgres, Neon Functions, and Neon AI Gateway. It stores page chunks, embeddings, and text indexes together; a GitHub Action sends changed pages to a Function, which chunks markdown by heading, embeds it, and updates the database. Search combines BM25 keyword and vector results with reciprocal rank fusion, then reranks them. Because that full pipeline takes seconds, common queries use precomputed, cached hybrid rankings while uncached queries use BM25 alone. The excerpt reports cache latency of 1.9 ms p50 and 2.8 ms p95, and BM25 miss latency of 8.6 ms and 11.5 ms; long-tail queries therefore lack semantic ranking. On 171 real queries, the new system returned the expected page in the top five 94% of the time versus 80% for the previous search, with roughly similar round-trip time. The team also uses a labeled NFCorpus benchmark and post-deploy speed budgets to check regressions.

## Source excerpt

We just released a new search for neon.com. Results for the docs, API reference, guides, changelog and blog now come from our own search service: Lakebase Search in Lakebase Postgres, served by a Neon Function.