# 知識庫數據

喺 Cherry Studio 知識庫入面新增嘅數據全部都會儲存在本地，喺新增過程中會複製一份文件放喺 Cherry Studio 數據儲存目錄

<figure><img src="/files/9abecae474099aac5371e04bd1ea1d0d4bd1fa04" alt=""><figcaption><p>知識庫處理流程圖</p></figcaption></figure>

向量資料庫：<https://turso.tech/libsql>

當文件被加入到 Cherry Studio 知識庫之後，檔案會被切分成幾個片段，然後呢啲片段會交俾嵌入模型去處理

當使用大模型進行問答嘅時候，會查詢同問題相關嘅文字片段，一併交俾大語言模型處理

如果對數據私隱有要求，建議使用本地嵌入資料庫同本地大語言模型


---

# 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.cherry-ai.com/docs/zhong-wen-fan-ti/knowledge-base/data.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.
