Skip to main content
Using Langtrace to monitor your Perplexity LLM apps is quick and easy. Follow these steps:

Setup

  1. Install the Langtrace and Perplexity SDKs.
Note: You’ll need API keys from Langtrace and Perplexity. Sign up for Langtrace and/or Perplexity if you haven’t done so already.
Python
  1. Setup environment variables:
Shell

Usage

Generate a simple output with your deployment’s model:
You can now view your traces on the Langtrace dashboard: traces Want to see more supported methods? Checkout the sample code in the Langtrace Perplexity Python Example repository.