# Knowledge Base Data

All data added to the Cherry Studio knowledge base is stored locally. During the adding process, a copy of the document is placed in the Cherry Studio data storage directory.

<figure><img src="/files/ade75a9173f41300ffb2ff9ff34cc89f128a428a" alt=""><figcaption><p>Knowledge Base Processing Flowchart</p></figcaption></figure>

Vector database:<https://turso.tech/libsql>

After a document is added to the Cherry Studio knowledge base, the file is split into several chunks, and then these chunks are handed over to the embedding model for processing.

When using a large model for Q\&A, the text chunks related to the question will be queried and handed over to the large language model for processing together.

If you have data privacy requirements, it is recommended to use a local embedding database and a local large language model.


---

# 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/en-us/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.
