Documentation

Table of Content

Training & Knowledge Base

The way you structure your files and the content inside them is critical for chatbot performance and accuracy. Proper organization ensures the AI can retrieve exactly the information it needs, minimizing irrelevant or incorrect responses.

Use Separate Files for Each Topic

Maintaining a dedicated file for each topic ensures that the AI can retrieve information efficiently and reduces the likelihood of irrelevant or incomplete answers.

Best Practices:

  • One topic per file

  • Descriptive, consistent file names

  • Avoid combining unrelated subjects in a single document

Example:

Recommended:
- Product_Features.pdf
- Pricing_Guide.pdf
- Installation_Instructions.pdf

Not Recommended:
- Product_Info_All_in_One.pdf
Recommended:
- Product_Features.pdf
- Pricing_Guide.pdf
- Installation_Instructions.pdf

Not Recommended:
- Product_Info_All_in_One.pdf
Recommended:
- Product_Features.pdf
- Pricing_Guide.pdf
- Installation_Instructions.pdf

Not Recommended:
- Product_Info_All_in_One.pdf

Clear file separation improves retrieval precision and simplifies maintenance.

Organize Content Inside Each File

Structured content improves the AI’s ability to understand context, which enhances retrieval accuracy and response relevance.

Best Practices:

  1. Use clear headings and subheadings

    • H1: Main topic

    • H2: Subsections

    • H3: Detailed steps or explanations

  2. Break text into concise paragraphs

    • Each paragraph should cover a single concept or idea

    • Avoid huge blocks of text

  3. Incorporate lists, tables, and highlights

    • Bullet points or numbered lists improve readability

    • Tables or bolded text emphasize critical information

  4. Provide brief introductions for each section

    • Helps the AI understand context within a chunk

Example File Structure:

File: Installation_Instructions.pdf

H1: Installation Instructions

H2: System Requirements
- OS: Windows 10 or higher
- RAM: 8GB minimum
- Disk Space: 2GB

H2: Step-by-Step Installation
1. Download the installer
2. Run the setup file
3. Follow the on-screen instructions

H2: Troubleshooting
- Error A: Check connection
- Error B: Reboot and try again
File: Installation_Instructions.pdf

H1: Installation Instructions

H2: System Requirements
- OS: Windows 10 or higher
- RAM: 8GB minimum
- Disk Space: 2GB

H2: Step-by-Step Installation
1. Download the installer
2. Run the setup file
3. Follow the on-screen instructions

H2: Troubleshooting
- Error A: Check connection
- Error B: Reboot and try again
File: Installation_Instructions.pdf

H1: Installation Instructions

H2: System Requirements
- OS: Windows 10 or higher
- RAM: 8GB minimum
- Disk Space: 2GB

H2: Step-by-Step Installation
1. Download the installer
2. Run the setup file
3. Follow the on-screen instructions

H2: Troubleshooting
- Error A: Check connection
- Error B: Reboot and try again

Each heading and section represents a logical unit that can become an independently retrievable chunk.

Splitting Chunks

chunk is a coherent piece of text extracted from a file, typically 200–500 words, that the AI can index and retrieve independently.

Best Practices:

  • By headings: Each heading and its associated text becomes a chunk

  • By paragraphs: For unstructured documents, group related paragraphs into a single chunk

  • By topic: Ensure each chunk represents a single concept or instruction

Example Chunks from Installation_Instructions.pdf:

Chunk 1: System Requirements
"OS: Windows 10 or higher. RAM: 8GB minimum. Disk Space: 2GB."

Chunk 2: Step 1 - Download
"Download the installer from our website..."

Chunk 3: Step 2 - Install
"Run the setup file and follow the on-screen instructions..."

Chunk 4: Troubleshooting
"If Error A occurs, check your connection. If Error B occurs, reboot..."
Chunk 1: System Requirements
"OS: Windows 10 or higher. RAM: 8GB minimum. Disk Space: 2GB."

Chunk 2: Step 1 - Download
"Download the installer from our website..."

Chunk 3: Step 2 - Install
"Run the setup file and follow the on-screen instructions..."

Chunk 4: Troubleshooting
"If Error A occurs, check your connection. If Error B occurs, reboot..."
Chunk 1: System Requirements
"OS: Windows 10 or higher. RAM: 8GB minimum. Disk Space: 2GB."

Chunk 2: Step 1 - Download
"Download the installer from our website..."

Chunk 3: Step 2 - Install
"Run the setup file and follow the on-screen instructions..."

Chunk 4: Troubleshooting
"If Error A occurs, check your connection. If Error B occurs, reboot..."

Each chunk is focused on a single concept, enabling precise retrieval by the AI.