Changelog
Files API
We have introduced the Files API to streamline file management in the AI Library.
Files API DocumentationKey Features:
The Files API now serves as both a storage service and a direct upload interface to a knowledge base, eliminating the need for multiple API calls. This simplifies file handling and reduces management overhead.
Two Ways to Upload Files to a Knowledge Base:
-
Recommended: Use the
POST /v1/files
endpoint to upload files. Specify the knowledge base ID as a parameter. The API will:- Upload the file to your account.
- Add it as a source in the specified knowledge base.
Even though the API is asynchronous, the file URL is returned synchronously in the response.
-
Upload files with
POST /v1/files
, then use thePUT /v1/knowledgebase/{knowledgeId}
endpoint to add the file as a source.
Additional Notes:
- Deleting a file does not remove it from knowledge bases.
- Storage capacity depends on your AI Library plan.
- Files can also be added to a knowledge base from any publicly accessible URL. Using the Files API is optional.
AI Library v0.1.0
AI Library Platform provides a quick and reliable to build AI Agents - applications that can autonomously carry out cognitive tasks.
Today, we are launching 3 APIs - the key building blocks - Agents, Knowledge Base and Utilities.