Skip to main content
Set db and add_history_to_context=True so the agent recalls earlier messages in the same session.

Code

db.py

Usage

1

Set up your virtual environment

2

Set your API key

3

Install dependencies

4

Run PgVector

5

Run Agent

Save the code above as db.py, then run:

Developer Resources