> 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-hk/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/w2wv4EGRPuEF1lAeRXoh" 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-hk/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.
