Collections
Collections offers xAI API users a robust set of tools and methods to seamlessly integrate their enterprise requirements and internal knowledge bases with the xAI API. This feature enables efficient management, retrieval, and utilization of documents to enhance AI-driven workflows and applications.
There are two entities that users can create within the Collections service:
file- A
fileis a single entity of a user-uploaded file.
- A
collection- A
collectionis a group offileslinked together, with an embedding index for efficient retrieval of eachfile. - When you create a
collectionyou have the option to automatically generate embeddings for any files uploaded to thatcollection. You can then perform semantic search across files in multiplecollections. - A single
filecan belong to multiplecollectionsbut must be part of at least onecollection.
- A
File storage and retrieval
Visit the Collections tab on the xAI Console to create a new collection. Once created, you can add files to the collection. You can also add
files without adding them to a collection using our Files API.
All your collections and their associated files can be viewed in the Collections tab.
Your files and their embedding index are securely encrypted and stored on our servers. The index enables efficient retrieval of files during a relevance search.
Usage limits
Users can upload a maximum of 100,000 files per collection. We do not place any limits on the file size, etc.
Data Privacy
We do not use user data stored on Collections for model training purposes by default, unless the user has given consent.