Skip to main content
Create an Agent that can
  • Read PDFs and store them in a knowledge base
  • Store the runs in PostgreSQL to provide long-term memory across sessions

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Run PgVector

3

Install libraries

4

Run the agent

Now the agent continues across sessions. Ask a question:
Then message bye to exit, start the app again and ask:
5

Start a new run

Run the agent_with_storage.py file with the --new flag to start a new run.
6

Stop PgVector

Information