This directory contains example configuration files for pplx. These examples demonstrate various use cases and configuration patterns.
full-example.yaml- Comprehensive reference showing all 29+ available options with detailed comments- Best for: Learning what's possible, creating custom configurations
- Use with:
pplx config init --template full-example
-
research.yaml- Academic and scholarly research configuration- Optimized for: Research papers, academic sources, authoritative content
- Features: Academic search mode, high context, verified domains
- Use with:
pplx config init --template research
-
creative.yaml- Creative writing and brainstorming configuration- Optimized for: Content generation, creative tasks, exploratory queries
- Features: High temperature, streaming output, diverse sources
- Use with:
pplx config init --template creative
-
news.yaml- News and current events configuration- Optimized for: Latest news, current events, trending topics
- Features: Reputable news sources, weekly recency filter
- Use with:
pplx config init --template news
Create a new config file using a template:
# Create config from a template
pplx config init --template research
# Create with examples and env check
pplx config init --template creative --with-examples --check-env
# Interactive wizard
pplx config init --interactiveCopy any example file to your config location:
# Copy to default config location
cp examples/config/research.yaml ~/.config/pplx/config.yaml
# Or to a custom location
cp examples/config/creative.yaml ./my-config.yaml
pplx --config ./my-config.yaml query "your question"Config files are loaded from these locations (in order of precedence):
- Path specified with
--configflag PPLX_CONFIG_FILEenvironment variable./pplx.yaml(current directory)~/.config/pplx/config.yaml(user config directory)/etc/pplx/config.yaml(system-wide config)
- Never commit config files with API keys to version control
- Use environment variables:
export PERPLEXITY_API_KEY=your-key - Set proper file permissions:
chmod 600 ~/.config/pplx/config.yaml - The tool will warn you if permissions are too permissive
All templates can be customized for your needs:
- Start with a template that matches your use case
- Adjust parameters like temperature, max_tokens, etc.
- Add/remove search domains
- Configure output preferences
- Save and test with
pplx query "test question"
See full-example.yaml for complete documentation of all options, including:
- Model settings: model, temperature, max_tokens, top_p, top_k
- Search filters: domains, recency, mode, context_size, location
- Date filtering: after_date, before_date, last_updated filters
- Output format: streaming, images, related questions, JSON
- Response control: JSON schema, regex patterns, reasoning effort
These templates are synchronized with the embedded templates in the pplx binary. They are automatically updated when new options are added to ensure examples remain current.
To verify templates are up to date:
# List available templates
pplx config init --help
# Generate a new config from latest template
pplx config init --template full-example --force- Run
pplx config --helpfor all configuration commands - Run
pplx config showto view your active configuration - Run
pplx config init --check-envto verify API key setup - Visit the Perplexity API Documentation for model details