> For the complete documentation index, see [llms.txt](https://docs.skydeck.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skydeck.ai/zh-cn/integrations/llms-and-databases/perplexity-integration.md).

# Perplexity 集成

### 概述

Perplexity 是一个先进的 AI 语言模型，利用大型语言模型提供全面和事实性的回应，使其成为各种应用（包括内容生成、语言翻译、摘要等）的强大工具。

### 生成一个 Perplexity API 密钥

要将 Perplexity 集成到 SkyDeck AI 平台中，您需要生成一个 API 密钥：

1. **创建一个账户**：在 [Perplexity 网站](https://www.perplexity.ai/) 注册一个免费账户。
2. **访问 API 密钥**：
   * 登录到您的 Perplexity 账户。
   * 导航到设置。
   * 点击 API 选项卡。
3. **生成新密钥**：
   * 点击“+ 生成”按钮以创建一个新的 API 密钥。

### 将API密钥添加到SkyDeck AI

要将Perplexity与SkyDeck AI集成，请按照以下步骤操作：

1. **登录SkyDeck AI**：访问您的SkyDeck AI管理员账户。
2. **导航到集成**：打开集成页面。
3. **添加Perplexity集成**：
   * 点击“+添加集成”按钮。
   * 从可用集成列表中选择“Perplexity”。
   * 输入您的Perplexity API密钥。
   * 配置任何其他设置，例如选择所需的Perplexity模型。
4. **保存并确认**：输入API密钥并配置设置后，点击“保存”以完成集成。

### 支持的模型

Perplexity 提供了几种模型，每种模型针对不同的用例和性能要求进行了优化。SkyDeck 支持的最新模型（截至 2024 年 9 月）：

#### 在线模型

* **`llama-3.1-sonar-small-128k-online`**：适合一般在线查询，复杂度适中。
* **`llama-3.1-sonar-large-128k-online`** 和 **`llama-3.1-sonar-huge-128k-online`**：专为需要更深层次上下文理解的复杂在线查询设计。

#### 聊天模型

* **`llama-3.1-sonar-small-128k-chat`**：适合中等复杂度的聊天交互。
* **`llama-3.1-sonar-large-128k-chat`**：针对更复杂的聊天交互进行了优化。

### 成功集成的验证

在将 Perplexity 与 SkyDeck AI 平台集成后，您应该在您的 SkyDeck AI GenStudio 中看到可供选择的 Perplexity 模型。这些模型的存在表明集成成功。

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

### 结论

将 Perplexity 与 SkyDeck AI 平台集成提供了一套强大的功能和能力，利用先进的语言模型来提供准确可靠的答案。确保您保持对最新模型和功能的更新，以最大化此集成的好处。如需更多帮助或咨询，请参阅 [Perplexity 文档](https://docs.perplexity.ai/) 或联系他们的支持团队。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
