# Perplexity Integration

### Overview

Perplexity is an advanced AI language model that leverages large language models to provide comprehensive and factual responses, making it a powerful tool for various applications, including content generation, language translation, summarization, and more.

### Generating a Perplexity API Key

To integrate Perplexity with the SkyDeck AI Platform, you need to generate an API key:

1. **Create an Account**: Register for a free account on the [Perplexity website](https://www.perplexity.ai/).
2. **Access API Keys**:
   * Log in to your Perplexity account.
   * Navigate to the settings.
   * Click on the API tab.
3. **Generate a New Key**:
   * Click on the "+ Generate" button to create a new API key.

### Adding the API Key to SkyDeck AI

To integrate Perplexity with SkyDeck AI, follow these steps:

1. **Log in to SkyDeck AI**: Access your SkyDeck AI Admin account.
2. **Navigate to Integrations**: Go to the integrations page.
3. **Add Perplexity Integration**:
   * Click the "+Add Integration" button.
   * Select "Perplexity" from the list of available integrations.
   * Enter your Perplexity API Key.
   * Configure any additional settings, such as selecting the desired Perplexity model.
4. **Save and Confirm**: After entering the API key and configuring settings, click "Save" to complete the integration.

### Supported Models

Perplexity offers several models, each optimized for different use cases and performance requirements. The latest models (as of September 2024) that SkyDeck supports:

#### Online Models

* **`llama-3.1-sonar-small-128k-online`**: Suitable for general online queries with moderate complexity.
* **`llama-3.1-sonar-large-128k-online`** and **`llama-3.1-sonar-huge-128k-online`** : Designed for more complex online queries requiring deeper contextual understanding.

#### Chat Models

* **`llama-3.1-sonar-small-128k-chat`**: Ideal for chat-based interactions with moderate complexity.
* **`llama-3.1-sonar-large-128k-chat`**: Optimized for more complex chat-based interactions.

### Verification of Successful Integration

After integrating Perplexity with the SkyDeck AI Platform, you should see Perplexity models available for selection in your SkyDeck AI GenStudio. The presence of these models indicates a successful integration.

<figure><img src="/files/WibSNl9OaRm21jotKujm" alt="perplexity models"><figcaption></figcaption></figure>

### Conclusion

Integrating Perplexity with the SkyDeck AI Platform offers a robust set of features and capabilities, leveraging advanced language models to deliver accurate and reliable answers. Ensure you stay updated with the latest models and features to maximize the benefits of this integration. For additional assistance or inquiries, please refer to the [Perplexity Documentation](https://docs.perplexity.ai/) or contact their support team.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.skydeck.ai/integrations/llms-and-databases/perplexity-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
