Perplexity
Index of Perplexity sonar-pro agent examples: basic runs, knowledge, memory, retries, structured output, and web search.
| Example | Description |
|---|---|
| Perplexity Basic | Run a basic Perplexity sonar-pro agent and print sync, streaming, and async responses. |
| Knowledge | Answer questions from a PDF knowledge base in PgVector using a Perplexity sonar-pro agent. |
| Memory | Use Perplexity for answers and an OpenAI memory manager to persist user memories in Postgres. |
| Retry | Review retry settings and why invalid model IDs cannot reliably exercise the retry path. |
| Perplexity Structured Output | Request a MovieScript JSON schema from Perplexity sonar-pro and validate the response. |
| Perplexity Web Search | Use Perplexity sonar-pro's native web search to answer a current news question. |