Build and deploy a Lakebase Search API as a Neon Function
Wire vector, full-text, and hybrid search into a serverless HTTP API that runs next to your database.


Wire vector, full-text, and hybrid search into a serverless HTTP API that runs next to your database.
Compare Neon and Cloudflare D1 on the database engine, free plans, branching, backups, backend services, limits, and pricing, with cost examples.
Turn text into vectors with the OpenAI SDK, store them in a pgvector column, and search them by meaning, in TypeScript or Python. No OpenAI API key required.
Run BM25 keyword search and pgvector semantic search on the same table, then merge the two ranked lists with reciprocal rank fusion in one SQL query. TypeScript and Python examples included.
Stream replies from OpenAI, Anthropic, or Gemini models with the Vercel AI SDK, and save every conversation to Postgres so chats survive a page reload. One Neon project holds the database and the LLM access, with no provider API keys.
Point the OpenAI SDK at Neon AI Gateway once, then call GPT, Claude, and Gemini by changing the model string, in TypeScript or Python.