Skip to main content
AsyncPostgresDb stores a Workflow’s sessions and run history asynchronously in PostgreSQL. Use async Workflow methods such as arun() and aprint_response().

Usage

Install the sqlalchemy, psycopg, openai, and ddgs packages:

Run PostgreSQL

Install Docker Desktop, then start PostgreSQL with pgvector on port 5532:
async_postgres_for_workflow.py

Parameters