0

Perplexity Cookbook

Example · مثال

Content

Perplexity Cookbook

Note: Fork and clone this repository if needed

1. Create and activate a virtual environment

python3 -m venv ~/.venvs/aienv
source ~/.venvs/aienv/bin/activate

2. Export your PERPLEXITY_API_KEY

export PERPLEXITY_API_KEY=***

3. Install libraries

uv pip install -U ddgs duckdb agno

4. Run basic Agent

python cookbook/90_models/perplexity/basic.py

5. Run Agent with Tools

  • Web Search
python cookbook/90_models/perplexity/web_search.py

6. Run Agent with Knowledge

python cookbook/90_models/perplexity/knowledge.py

Source and license

Source
Agno
Original
agno-agi/agno/cookbook/90_models/perplexity
License
Apache-2.0