Using Replit Agent? Learn how to add a configured Postgres database to your apps with a single prompt
Docs/AI & Embeddings

AI & Embeddings

Power AI agents with serverless Postgres — and build AI applications with Neon as your vector database

Neon enables AI agents to provision Postgres databases in seconds, execute SQL queries, and easily manage Neon infrastructure. With one-second provision times, scale-to-zero compute, and agent-friendly Neon API interfaces, Neon lets AI agents manage database fleets at scale while minimizing costs. Learn more about this use case.

Neon also supports vector data, a key component for AI applications. With the pgvector open-source extension, you can use Neon as a vector database for storing and querying embeddings. This allows you to use Postgres as your vector store, eliminating the need for data migration or third-party solutions.

Neon for AI Agents

Neon supports Postgres for AI agents with the following interfaces:

  • @neondatabase/toolkit — a terse client that lets you spin up a Postgres database in seconds and run SQL queries. It includes both the Neon TypeScript SDK and the Neon Serverless Driver, making it an perfect choice for AI agents that need to quickly set up an SQL database. Learn more.
  • Neon Model Context Protocol (MCP) server — enables any MCP Client to interact with Neon’s API using natural language. AI agents can use Neon's MCP server to perform actions such as creating databases, running SQL queries, and managing database migrations. Read the announcement.

Neon for AI Apps

Neon's AI Starter Kit provides resources, starter apps, and examples to help get you started with Neon as your vector database.

Ship faster with Neon's AI Starter Kit

Sign up for Neon Postgres and jumpstart your AI application. Our starter apps and resources will help you get up and running.

Sign Up

The Neon AI Starter Kit includes:

  • Neon Postgres with the latest version of the Postgres pgvector extension for storing vector embeddings
  • A variety of hackable, pre-built AI starter apps:
    • AI chat
    • RAG chat
    • Semantic search
    • Hybrid search
    • Reverse image search
    • Chat with PDF
  • A vector search optimization guide for better AI application performance
  • A scaling guide for scaling your app with Neon's Autoscaling and Read Replica features
  • A collection of AI apps built with Neon that you can reference while building your own app

AI basics

AI starter apps

Hackable, fully-featured, pre-built starter apps to get you up and running.

AI integrations

Learn how to integrate Neon Postgres with LLMs and AI platforms.

Preparing your AI app for production

AI apps built with Neon

AI applications built with Neon Postgres that you can reference as code examples or inspiration.

Feature your app here

Share your AI app on our #showcase channel on Discord for consideration.

AI tools

Learn about popular AI tools and how to use them with Neon Postgres.

Last updated on

Was this page helpful?