Create a virtual environment
Terminal
and create a python virtual environment.Set your API key
Install libraries
Set up PostgreSQL with pgvector
db_url
in the code to match your database configuration.Run Agent
For subsequent runs
knowledge_base.load(recreate=True)
line to avoid reloading the PDF.pgvector
, pypdf
, etc.) and have a PostgreSQL database with the pgvector extension available.