Key Features
- File Organization: Group related files into logical collections
- Collection Management: Create, update, and delete collections
- File Operations: Add and remove files from collections
- Bulk Processing: Handle multiple files efficiently
- Status Tracking: Monitor collection processing progress
Authentication
All endpoints require authentication using your API key:- API Key:
x-api-key: <key>
Available Endpoints
List Collections
Retrieve all your collections
Create Collection
Create a new file collection
Get Collection
Retrieve collection details
Update Collection
Modify collection metadata
Delete Collection
Remove a collection
Add File
Add files to a collection
Remove File
Remove files from a collection
Bulk Operations
Perform bulk file operations
Collection Lifecycle
1. Creation
Collections start empty and ready to receive files:2. File Addition
Add files individually or in bulk:- Single files: Add one file at a time
- Bulk upload: Add multiple files efficiently
- Validation: Ensure files exist and are accessible
3. Processing
Collections process their files for knowledge base integration:- Text extraction: Extract searchable content
- Indexing: Prepare for vector search
- Validation: Ensure content quality
4. Completion
Ready collections can be used in knowledge bases.Collection Status
pending
pending
Collection created but processing not started
running
running
Files are being processed for the collection
completed
completed
All files processed successfully
failed
failed
Processing failed - check error details
Data Sources
Collections contain data sources (files) with metadata:Unique data source identifier
Reference to the original file ID
Human-readable name of the file
Type of content (document, image, etc.)
Size of the file in bytes
Collection Organization
Best Practices
Common Patterns
- By Department: HR policies, Engineering docs, Sales materials
- By Product: Product A manuals, Product B guides
- By Content Type: FAQs, Policies, Procedures
- By Project: Project Alpha docs, Project Beta resources
Integration with Knowledge Bases
Collections serve as input for knowledge bases:- Collection Completion: Ensure all files are processed
- Knowledge Base Creation: Reference collections in KB configuration
- Processing: Knowledge base processes collection content
- Agent Integration: Agents can query the knowledge base
Collections must be in “completed” status before they can be used in knowledge bases.
Monitoring and Troubleshooting
Progress Tracking
Monitor collection processing:- Progress percentage: Overall completion status
- File counts: Total vs. processed files
- Error tracking: Failed files and reasons
Common Issues
- File access errors: Check file permissions and existence
- Processing failures: Verify file formats are supported
- Size limits: Ensure files meet size requirements