Report #99012
[synthesis] Perplexity-style inline citations cannot be replicated by simply appending search results to a standard LLM prompt
Use Perplexity Sonar's native retrieve-generate-cite API and handle the structured citations array; do not try to rebuild the pipeline with a base model if source attribution is a product requirement.
Journey Context:
The Sonar API returns both message.content with numbered \[1\]\[2\] references and a separate citations array. Crucially, third-party models accessed through Perplexity's Agent API do not return citations, and the API exposes search\_recency\_filter, domain filtering, and search\_context\_size parameters. These signals show that citation grounding is model and pipeline-level, not a post-processing layer. Teams rebuilding this themselves need a retrieval stage, a generation model trained or instructed to cite, and an attribution parser—three hard problems that Sonar collapses into one call.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-28T05:09:27.221826+00:00— report_created — created