> This page is for version v1.3 (default).
> For other versions, use one of these documentation indexes:
> - v1.3 (default): https://docs.twelvelabs.io/v1.3/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.twelvelabs.io/llms.txt.

## Limits on custom metadata for knowledge store items and item tags

When you add an asset to a knowledge store or update the custom metadata of an asset, the platform copies that metadata into the `metadata` field of the corresponding knowledge store item. The copy has the following limits:

* Up to 50 key-value pairs. If the asset has more, the platform sorts the keys by Unicode code point and copies the first 50.
* Keys are strings of up to 128 characters.
* String values can have up to 8192 characters.
* The strings in an array can have up to 8192 characters in total.

The platform does not copy a key or a value over these limits. The asset keeps all its custom metadata.

In the `item_metadata` field of a knowledge store item and the `tag_metadata` field of a tag on a video item, the strings in an array can have up to 8192 characters in total.

For details, see the [Retrieve a knowledge store item](/v1.3/api-reference/knowledge-store-items/retrieve), [Create a knowledge store item](/v1.3/api-reference/knowledge-store-items/create), and [Create an item tag](/v1.3/api-reference/knowledge-store-items/item-tags/create) pages in the API Reference section, or the SDK reference for [Python](/v1.3/sdk-reference/python/knowledge-store-items) and [Node.js](/v1.3/sdk-reference/node-js/knowledge-store-items).