Skip to main content

Overview

Once you’ve created knowledge folders, you can upload documents to make them searchable. This guide covers the upload process, troubleshooting, and best practices for successful document processing.

Upload Process

Anam uses a secure three-step presigned URL process for all document uploads.
Document uploads are subject to file size limits. Need higher limits? Contact us about Enterprise plans with custom limits.

How It Works

For security and performance, all document uploads use a presigned URL flow:
1

Request presigned URL

Request an upload URL from Anam:
Response:
2

Upload to presigned URL

Upload the file directly to cloud storage:
This step uploads directly to cloud storage, bypassing Anam’s API servers for better performance with large files.
3

Confirm upload

Notify Anam that the upload is complete:
Processing begins automatically. The document will be ready for search in ~30 seconds.

Complete Presigned Upload Example

Monitoring Upload Progress

Check Document Status

After uploading, monitor the document’s processing status:
Document statuses:
  • UPLOADED: File uploaded, waiting for processing
  • PROCESSING: Content is being extracted and indexed
  • READY: Document is searchable
  • FAILED: Processing failed (check error message)

Batch Uploads

Upload multiple documents efficiently:
Process documents in batches of 4 for optimal performance. The system handles up to 4 documents concurrently.

Troubleshooting

Error: File size exceeds limitSolutions:
  • Split the document into smaller files
  • Compress images in PDFs
  • Remove unnecessary pages or content
  • Contact us about Enterprise plans with higher file size limits
Error: Upload quota exceededSolutions:
  • Delete unused or outdated documents to free up quota
  • Contact us about Enterprise plans with higher storage limits
  • Check current usage: GET /v1/knowledge/usage
Possible causes:
  • Invalid API key
  • Invalid folder ID
  • Unsupported file type
Solutions:
  1. Verify API key is valid and has proper permissions
  2. Confirm folder ID exists: GET /v1/knowledge/groups
  3. Check file extension is supported (PDF, TXT, MD, DOCX, CSV, JSON, LOG)
  4. Review error message in response
Status remains PROCESSING for > 5 minutesPossible causes:
  • Very large file (40-50MB)
  • Complex PDF with many images
  • Service temporarily slow
Solutions:
  1. Wait up to 10 minutes for large files
  2. Check document status via API
  3. If stuck for >10 minutes, delete and re-upload
  4. Contact support if issue persists
Status changes to FAILEDCommon causes:
  • Corrupted file
  • Encrypted or password-protected PDF
  • Invalid file format despite correct extension
  • File contains only images (no text)
Solutions:
  1. Check error message in document details
  2. Verify file opens correctly on your computer
  3. Remove password protection from PDFs
  4. Ensure PDFs contain extractable text (not just images)
  5. Try converting to a different supported format
Error when uploading to presigned URLSolutions:
  • Presigned URLs expire after 1 hour
  • Request a new presigned URL if expired
  • Upload the file immediately after receiving the URL

Best Practices

Next Steps

Create Knowledge Tools

Enable semantic search with knowledge tools

Knowledge Base Setup

Organize documents with folders

API Reference

Complete API documentation

Concepts

Learn how RAG works
Last modified on April 29, 2026