# 知识

## 什么是知识？

知识是 Kompas AI 的核心功能之一，允许用户上传各种形式的信息并将其存储在内部数据库中，通过后续问题和上下文相关对话实现富有成效的交互。

该功能可以接受各种形式的数据，包括文档、图像和URL，所有这些都在机器人的答案生成过程中得以利用。每当用户提出特定问题时，知识会引用存储的信息，生成最适当的答案。

这种根据每个用户的环境和需求定制的高效对话系统在实际的业务环境中可能非常有价值。

## <mark style="background-color:blue;">团队知识</mark>

### 什么是团队知识？

团队知识是一种共享数据库，存储和管理整个团队可以共享和利用的信息。团队中的每个成员可使用同一机器人，并且提供一致的答案。例如，您可以将需要共享的重要信息，如公司政策文件或工作指南，存储在团队知识中，以确保所有团队成员获得一致的答案。

### 如何上传团队知识？

* 创建机器人时上传
  * 在创建机器人页面上，在团队知识下，单击“添加来源”，上传任意文件、URL等。

    <figure><img src="/files/DnGVVpV0O1MrSkhCVx9k" alt=""><figcaption></figcaption></figure>

    <figure><img src="/files/l2bJs26MFepNw1ijaIJH" alt=""><figcaption></figcaption></figure>
* 直接在应用程序中上传
  * 单击右上角的对话信息图标（ⓘ），单击上传到私有知识的数据，然后单击“设置为团队知识”，直接从应用程序上传到团队知识。

    <figure><img src="/files/oD1s0PokbejTfcjklCBm" alt=""><figcaption></figcaption></figure>

### 如何管理团队知识？

* 如何管理和删除
  * 在 Bot 管理页面上，单击 'pencil' 图标即可管理您的知识。
  * 您可以通过单击 'trash can' 图标来删除知识。

<figure><img src="/files/qG2qDveWuASms9rrkGCY" alt="" width="563"><figcaption><p>Bot Management page</p></figcaption></figure>

<figure><img src="/files/9IHz6JHvO3scXP68Ii0E" alt="" width="563"><figcaption><p>Edit Bot page</p></figcaption></figure>

## <mark style="background-color:purple;">私有知识</mark>

### 什么是私有知识？

私有知识可以被视为一种根据个人情况和需求存储和管理定制信息的个人数据库。这仅在您与团队的其他成员进行个人互动时适用，即使您们使用相同的机器人。例如，您个人的日程安排或私人项目等信息可以存储在私有知识中，供个人参考和利用。

### 如何使用私有知识？

* 直接在应用程序中上传
  * 当您直接在应用程序中上传文件或URL时，您将在右侧的对话信息中看到它被上传到私有知识中。

<figure><img src="/files/dhDcgjylEFZ3lpAC6HUk" alt="" width="485"><figcaption><p>PC App (Private Knowledge)</p></figcaption></figure>

* 如何上传？
  * 当您输入屏幕截图或文件时，它将自动上传到私有知识。
    * 照相机（仅移动设备）：从相机中拍摄的图像。
      * 在输入框中点击相机图标

        <figure><img src="/files/TAzNszWkz32PLwKncas9" alt="" width="563"><figcaption></figcaption></figure>
* 屏幕截图：屏幕截图图像

  * 单击截图图标或拖动保存的截图图像

  <figure><img src="/files/phR4Law0M9JiJ4aLEuF8" alt="" width="422"><figcaption><p>PC app</p></figcaption></figure>
* 文件：文档（PDF、DOCX）、静态图像（PNG、JPG等）文件

  * 单击或拖动照片或单击文件夹图标

  <figure><img src="/files/Mkq2wUp4EGtoERCjsxwZ" alt="" width="422"><figcaption><p>PC app</p></figcaption></figure>

  <figure><img src="/files/JOOd0eOtBHNzaekmgLC5" alt="" width="563"><figcaption><p>Mobile app</p></figcaption></figure>
* 语音：单击麦克风按钮将您的语音转换为文本

  * 在输入框中点击麦克风图标

  <figure><img src="/files/gMk7g6j6frlttUsAHyYN" alt="" width="422"><figcaption><p>PC app</p></figcaption></figure>

<figure><img src="/files/tZfgiqiC0LMiSKb3GHqP" alt="" width="563"><figcaption><p>Mobile app</p></figcaption></figure>

## <mark style="background-color:orange;">知识状态</mark>

通过“会话详情”中的“与他人分享此机器人”选项，您可以在'Action’选择是否使用/不使用知识。

<figure><img src="/files/LJjELmqFejfnf1GmvOwM" alt="" width="498"><figcaption><p>Share Knowledge to other member</p></figcaption></figure>

<figure><img src="/files/n2Eurmqzx9ifKkRx5TMb" alt="" width="563"><figcaption><p>Share Knowledge to other member</p></figcaption></figure>


---

# 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.kompas.ai/kompas-ai-docs-ver2/chinese/guide/zhi-shi.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.
