Skip to content

Design documents

Design reference for pplx-cli (pplx-export / pplx-ask) — the deep layer: pipelines, state machines, data contracts, and the Perplexity web API the tool is built against. For task-oriented usage, start with the Guide.

Purpose: system design reference for pplx_export/ (the Perplexity conversation archiving tool). Audience: agents / engineers taking over maintenance. The goal: after reading these documents you can locate the implementation of any mechanism (module/function/line), understand why it is designed this way, and modify it safely.

Division of labor with existing docs (these documents are a superset refinement of them, not a replacement):

  • The API reference pages below: field-tested reference for the Perplexity REST/GraphQL API (endpoints / responses / error semantics);
  • pplx_export/README.md: tool overview and usage (full pipeline map, conceptual ask sequence);
  • The system design pages below: architecture at the module/function/line level — dependencies, pipelines, state machines, data model, rate limiting and error routing.

Line references use the format file.py:NN, all relative to pplx_export/. Every mechanism description in these documents was verified against the source code (2026-07-23, __version__ = "0.1.0", pplx_export/__init__.py:31).

System design

API reference