Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ai21.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The library can hold an unlimited number of files, but a maximum of 1GB of files.
File metadata
Files support the following metadata:

Filtering file results

When you create or update a file, you can optionally apply path and/or label values to a file. You can later search, query, or list files based on matching paths or labels. This can be useful to query subsets of documents. For example, you can assign a path of either /financial/USA or /financial/UK to certain documents and later query only US financial documents, only UK financial documents, or query all financial documents by specifying /financial/ as the path.