Skip to main content

Update a Collection

Update with Client SDK

Three specific attributes (name, description, and metadata) are supported for updating a collection. You can use the update_collection method with the collection_id to update a specific collection.

import taskingai

collection = taskingai.retrieval.update_collection(
collection_id="YOUR_COLLECTION_ID",
name="New Collection Name",
description="New Collection Description",
metadata={"key": "value"}
)

Note that metadata will have no affect to information retrieval performance. It is only for storing additional information for the collection.