---
title: RAG Document Training
slug: rag-document-training
docTags: 
createdAt: 2026-03-23T17:20:38.124Z
---

## What You Will Learn

In this section, you will learn how to train your AI agent using **documents** through Retrieval-Augmented Generation (RAG).

Document Training allows the system to read uploaded documents and retrieve relevant information when users ask questions.

Instead of manually scripting responses, the AI agent searches the trained documents and generates answers based on the content.

This method is commonly used for:

- Product documentation
- Knowledge base articles
- Doctor directories
- Policies and guidelines

Documents can be uploaded in formats such as:

- **PDF**
- **Text documents**
- **Structured JSON files**

## Configuration Walkthrough

Follow the video below to understand how to upload documents and configure the knowledge base.

📹 **Document Training Setup Video**

::embed[]{url="https://youtu.be/K_tkxmlA4gE?si=BTzdY1GULU9odYGZ"}

The video explains how to:

- Upload a document
- Configure document details
- Start the indexing process
- Make the knowledge available for the AI agent

## Configure Document Training

Follow the step-by-step guide to upload and configure documents for the knowledge base.

➡️ [Document Setup Guide](docId\:KUoLQ7-zo0ugmMR9f3EpA)

***

## 📚 Next Steps

Once the document is indexed and the status shows **Ready to Search**, configure the agent workflow so the AI can retrieve answers from the trained documents.

➡️ **Proceed with&#x20;**[3. Path Setup](docId\:G-jippCSr0vJWz4rIchMf)
