# Create a Knowledge Base

A knowledge base is a centralized repository of information used to store, organize, and manage content in a structured and accessible manner. In the context of Epsilla Cloud, it serves as the foundational data source that powers AI-driven applications, such as chatbots and start search agents. A knowledge base can include documents, articles, PDFs, or any relevant files that contain information an AI system can reference to provide accurate and grounded responses. A knowledge base enhances the AI's ability to deliver precise and contextual answers, significantly improving personalization and reducing hallucinations.

### **Access the Knowledge Bases Tab**

On the navigation bar, click on the **Knowledge Bases** tab.

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-1e6daa03b61c4c5708f708ff9a10fe5d0d02a6f1%2FScreenshot%202024-09-28%20at%209.48.53%20PM.png?alt=media" alt="" width="253"><figcaption></figcaption></figure>

This will lead you to the page where you can create and manage all your knowledge bases.

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-ac760a41855f3b5d6fd90fadbb3fdf17e1c08daf%2FScreenshot%202024-09-28%20at%209.50.29%20PM.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

### **Click "Create Knowledge Base"**

Locate and click the **Create Knowledge Base** button. This will initiate the setup process for a new knowledge base.

### **Select Knowledge Base Type**

Choose the type of data source you'd like to use for your knowledge base. Epsilla Cloud supports several types, including:

* **Local Files** (e.g., PDFs, Word documents)
* **Websites**
* **Cloud Storage** (e.g., Google Drive, Dropbox, SharePoint, S3)
* **Note-Taking Apps** (e.g., Notion)

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-3f1682dd91da4b5fee8bba075bc8a0860028c99d%2FScreenshot%202024-09-28%20at%209.51.56%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

Here we choose **Local Files**.&#x20;

### Knowledge Base Name

Provide a **Knowledge Base Name**.

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-de494be582d7781e455910be3996170d2eba10f6%2FScreenshot%202024-09-29%20at%2011.45.11%20PM.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

### **Upload Data**

Select the documents you want to use. You can click the file uploader to pick files, or directly drag the files to upload:

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-0f8a04c448b628f27e2db61c22fa1611210b1661%2FScreenshot%202024-09-28%20at%209.56.51%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-3dcb9c1babb66db31f79a69945ae49a1dc4eb739%2FScreenshot%202024-09-28%20at%209.57.11%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Data Processing**

Once the data is uploaded, click **Create:**

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-023cbd693d82f4459bc51aaa03922196663b3950%2FScreenshot%202024-09-28%20at%209.57.34%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

Epsilla Cloud will automatically process the files (under the hood, Epsilla will load the files, chunk them, and embed into vectors. [Read more here](https://blog.epsilla.com/large-scale-smart-etl-for-unstructured-data-in-rag-systems-with-epsilla-7fd86fa8d6cd)),  You can monitor the progress of data processing:

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-c4ba3a4ae740b99497d304860c570dffbaadb032%2FScreenshot%202024-09-28%20at%209.57.47%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

### **Inspect Data**

You can inspect the processed data (chunks) at the **Data Storage** tab. By default, the first 20 chunks will be visualized:

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-7d94332e10db70b41d587054906b463fb602ddce%2FScreenshot%202024-09-28%20at%2010.03.01%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

Click a chunk to inspect the chunk data detail:

<figure><img src="https://2532879721-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM0ZX7fId7ifK45ldHWEp%2Fuploads%2Fgit-blob-c925632433a6eaccec7bbd620fe728b6bc9d2e13%2FScreenshot%202024-09-28%20at%2010.03.18%20PM.png?alt=media" alt=""><figcaption></figcaption></figure>

Read more about inspecting data at [Data Storage](https://epsilla-inc.gitbook.io/epsilladb/knowledge-base/data-storage).


---

# 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://epsilla-inc.gitbook.io/epsilladb/build-your-first-ai-agent/create-a-knowledge-base.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.
