Describe the Bug
When using the Perplexity Search API in multi-query mode by passing a list of queries, only results for the first query are returned. Queries beyond the first one are seemingly ignored, despite the documentation suggesting support for multiple independent queries. This occurs regardless of the max_results value or how the request is made (via SDK, API Playground, or direct HTTP request).
Expected Behavior
The API should return a balanced mix of results covering all provided queriesâe.g., if three queries are given and max_results=10, approximately 3â4 results per query (or at least some representation from each). Each result should be clearly attributable to one of the input queries.
Actual Behavior
Only results related to the first query in the list are returned. No results correspond to the second or third queries, indicating that the API is not processing the full list of queries as intended.
Steps to Reproduce
Call the API with the following request:
from perplexity import Perplexity
client = Perplexity()
search = client.search.create(
query=\[ "renewable energy trends 2024", "solar power innovations", "wind energy developments" \], max_results=10 )
Observe the unexpected behavior: all results pertain only to ârenewable energy trends 2024â, with no mention of solar or wind energy innovations.
API Request & Response (if applicable)
Request Payload:
{ âqueryâ: [ ârenewable energy trends 2024â, âsolar power innovationsâ, âwind energy developmentsâ ], âmax_resultsâ: 10 }
Response (example):
All results entries are related to general renewable energy trends in 2024; none reflect content specific to solar or wind advancements.
Environment
- API Version: [latest search api]