perplexity_search_web
Search the web via Perplexity AI with recency filters to retrieve current, citation-backed answers for time-sensitive queries.
Instructions
Search the web using Perplexity AI with recency filtering
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | The name of the model to use for generating completions. Options include sonar, sonar-pro, and other models listed at https://docs.perplexity.ai/guides/model-cards | |
| query | Yes | Search query | |
| top_k | No | Limits the number of high-probability tokens to consider for generation. Set to 0 to disable. | |
| top_p | No | Nucleus sampling threshold, controlling the token selection pool based on cumulative probability. | |
| stream | No | Whether to stream the response incrementally using server-sent events. | |
| recency | No | Filter results by recency | month |
| max_tokens | No | The maximum number of tokens to generate. Sum of max_tokens and prompt tokens should not exceed the model's context window limit. | |
| temperature | No | Controls generation randomness, with 0 being deterministic and values approaching 2 being more random. | |
| return_images | No | Whether to include images in the model's response. | |
| presence_penalty | No | Penalty for new tokens based on their current presence in the text, encouraging topic variety. Mutually exclusive with the frequency_penalty parameter. | |
| return_citations | No | Whether to include citations in the model's response. | |
| frequency_penalty | No | Multiplicative penalty for new tokens based on their frequency in the text to avoid repetition. Mutually exclusive with the presence_penalty parameter. |