Skip to main content

File Upload: How to Add Knowledge to Your AI Agent

Upload files to your knowledge base. Learn about size limits, supported formats, and best practices.

Updated over 3 weeks ago

File Upload: How to Add Knowledge to Your AI Agent

Your AI Agent's performance depends on the quality of the knowledge you provide. This guide explains how to upload files effectively and optimize them for the best results.

πŸ“€ Upload Your Files

Adding knowledge documents is straightforward:

  • Drag & Drop: Drag your file into the upload area

  • Click to Select: Click the upload area and browse for your file

βš™οΈ Upload Restrictions

Make sure your files meet these requirements:

  • Maximum file size: 100 MB for PDFs, 9 MB for other file types

  • Allowed formats: PDF, TXT, DOCX, JSON, MD

βœ… Best Practices

How you structure your knowledge documents directly affects your AI Agent's accuracy. Here's what works best:

Use Plain Text with Q&A Structure

The most effective format is plain text (.txt) using a simple Question and Answer pattern:

Q: What is the Qualimero Website URL?
A: It is www.qualimero.com

This structure enables the AI to understand context and retrieve accurate answers efficiently.

Optimize PDFs Before Upload

For large PDF files, remove unnecessary elements before uploading:

  • Strip images and graphics

  • Remove non-text content

  • Focus on text-based information only

This minimizes noise and improves semantic understanding.

Keep Everything Text-Based

When possible, use pure text formats (.txt or .md). This ensures:

  • Better quality and consistency

  • Efficient indexing in the AI system

  • Faster processing and retrieval

πŸ’‘ Summary

Well-structured, text-based knowledge documents lead to better AI performance. Use the Q&A format, optimize your PDFs, and prioritize plain text for the best results.

Did this answer your question?