Skip to main content

Supported Formats


Quick Start

1. Create a Dataset

2. Upload Documents

Use the Files API to upload documents, then associate them with the dataset.

Document Processing

Documents are processed asynchronously after upload:
Processing time depends on document size. PDFs with complex layouts take longer. Poll the file status or use webhooks to know when processing completes.

Best Practices

Organize by topic

Create separate datasets for different knowledge domains (e.g., “Product Docs”, “Legal”, “HR Policies”). This improves retrieval relevance and lets you control which knowledge each model can access.

Keep documents focused

Prefer multiple focused documents over one large document. The chunking algorithm works best with well-structured content.

Use descriptive filenames

Filenames appear in source citations. Use descriptive names like password-reset-guide.pdf instead of doc123.pdf.

Knowledge Bases Guide

Best practices for RAG

Files API

Upload and manage documents