Skip to main content
Add a PDF to a Knowledge base and let the agent retrieve relevant chunks to answer questions.

Code

knowledge.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 knowledge.py, then run:

Developer Resources