> For the complete documentation index, see [llms.txt](https://docs.diaflow.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.diaflow.io/agent-builder/agent-builder/knowledge-base-support-ai-chat.md).

# Knowledge base (Support AI Chat)

## Quick Start

What is Knowledge Base?

Knowledge Base allows AI to reference your internal documents, policies, and data stored in Vector DB. When enabled, AI analyzes your prompts, retrieves relevant content from selected vector folders, and uses that information to generate accurate, context-aware answers.

<br>

What you can do:

\- Upload documents to Vector DB

\- Enable Knowledge Base in AI Chat

\- Ask questions that reference your internal data

\- Get answers grounded in your documents

\- Combine Knowledge Base with Web Search for comprehensive research

<br>

**Quick Start Steps:**<br>

**Step 1:** Access Vector Management

1\. Log into your Diaflow workspace

2\. Navigate to the Vectors page on the sidebar

3\. You'll see the main tab: Group (default landing view showing organized collections)

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

<br>

**Step 2**: Add Your First Document

1\. Click "**Create a vector group**" button

2\. Create your group with Name and Description (optional)

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

3\. In your newly created group, click the "Add file" button

4\. Choose file type: Documents, URLs, or Articles

<figure><img src="/files/57VEkaLiIt9Y47vubEhX" alt=""><figcaption></figcaption></figure>

5\. Upload a file:

&#x20;  \- Documents: PDF, DOCX, TXT, MD, CSV, XLSX, XLS, or JSON (under 50MB)

&#x20;  \- URLs: Crawl an individual URL or website sitemap

&#x20;  \- Articles: Write an article directly

6\. Click "**Create**"

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

<br>

**Expected Result**: Your document appears in the selected location with "Processing" status, then "Completed" when ready, or "Rejected" if over limitations.

<br>

**Step 3**: Integrate with AI Chat

1\. Return to the Dashboard page

2\. Click the Config icon (gear/settings icon)

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

3\. Click "Knowledge base" to open the vector folder selection window

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

4\. Select one folder to use as your Knowledge Base

5\. Click the "Confirm" button to apply your selection

6\. Enter your prompt in the input field to start asking questions

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

<br>

**Expected Result:** Your AI Chat now responds using knowledge from your uploaded documents. Answers will cite sources from your Knowledge Base when relevant.
