Code
cookbook/90_models/cerebras/knowledge.py
Usage
1
Set up your virtual environment
2
Set your API key
3
Install dependencies
4
Start your Postgres server
Ensure your Postgres server is running and accessible at the connection string used in
db_url.5
Run Agent (first time)
The first run will load and index the PDF. This may take a while.
6
Subsequent Runs
After the first run, comment out or remove the
knowledge.insert(...) call to avoid reloading the PDF each time.