Guides
Using Collections
Collections enable you to upload, store, and semantically search through your documents. Whether you're building a RAG application or need to search across large document sets, Collections provides the infrastructure to manage and query your content.
For an overview of what Collections is, please see Collections.
You can upload a maximum of 100,000 files per collection.
Looking for Files? If you want to attach files directly to chat messages for conversation context, see Files. Collections are different—they provide persistent document storage with semantic search across many documents.
What You Can Do
With Collections, you can:
- Create collections to organize your documents
- Upload documents in various formats (HTML, PDF, text, etc.)
- Search semantically across your documents using natural language queries
- Configure chunking and embeddings to optimize retrieval
- Manage documents by listing, updating, and deleting them
Getting Started
Choose how you want to work with Collections:
- Using the Console → - Create collections and upload documents through the xAI Console interface
- Using the API → - Programmatically manage collections with the SDK and REST API