A command-line tool that uses Perplexity’s Sonar API to find and summarize academic literature
sonar-pro
).python3.10
if that’s your target).
python3 research_finder.py ...
.
PPLX_API_KEY
) to function. You can provide it in one of these ways (checked in this order):
pplx_api_key
, .pplx_api_key
, PPLX_API_KEY
, or .PPLX_API_KEY
in the same directory as the script or in the current working directory containing just your API key.
sonar-use-cases/research_finder
directory or provide the full path.
query
: (Required) The research question or topic (enclose in quotes if it contains spaces).-m
, --model
: Specify the Perplexity model (default: sonar-pro
).-k
, --api-key
: Provide the API key directly.-p
, --prompt-file
: Path to a custom system prompt file.-j
, --json
: Output the results in JSON format.