Skip to main content

Neon

Serverless PostgreSQL for conversation persistence.

Setup

  1. Create a Neon project at neon.tech
  2. Get your connection string

Quick Start

from praisonaiagents import Agent

agent = Agent(
    name="Assistant",
    instructions="You are a helpful assistant.",
    memory={
        "db": "postgresql://user:password@ep-xyz.us-east-1.aws.neon.tech/neondb",
        "session_id": "my-session"
    }
)

response = agent.start("Hello!")
print(response)

Environment Variables

export PRAISON_CONVERSATION_URL="postgresql://user:password@ep-xyz.us-east-1.aws.neon.tech/neondb"
import os
from praisonaiagents import Agent

agent = Agent(
    name="Assistant",
    memory={"db": os.getenv("PRAISON_CONVERSATION_URL")}
)

Features

  • Serverless: Auto-scales to zero
  • Branching: Create database branches for testing
  • PostgreSQL compatible: Full Postgres feature set