Prerequisites
- Python 3.10 or higher
- PostgreSQL with pgvector (setup instructions below)
- OpenAI API key
Code
hitl_confirmation.py
Testing the Example
Once the server is running, test the HITL flow:Usage
1
Create a virtual environment
Open the
Terminal
and create a python virtual environment.2
Set Environment Variables
3
Install libraries
4
Setup PostgreSQL Database
5
Run Example