For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Get Started
Docs & GuidesAPI Reference
Docs & GuidesAPI Reference
  • Introduction
    • Overview
    • Why Coactive
    • Release Notes
  • Getting started
    • Accepted Media Formats
    • Cloud Storage Access (Beta)
  • Administration
    • User Roles (RBAC)
    • Ingestion Observability (Beta)
  • Core Features
    • Agentic Search
    • Intelligent Search
    • Concepts
    • Query Engine
      • Overview
      • How to Build a Package
      • Scene Segmentation Guide
      • Configuration
  • Experimental
  • Deep Dives
    • Analyzing Concepts with SQL
    • Analyzing Dynamic Tags with SQL
    • The Power of Visual Data
    • Metadata Generation for Videos
    • Programmatically Retrieve SQL results
Get Started
LogoLogo
On this page
  • Enable Context Studio for a Dataset
  • Prerequisites
  • Python Script
  • Request Details
Core FeaturesContext Studio

Configuration

Was this page helpful?
Edit this page
Previous

Narrative Metadata

Next
Built with

Context Studio requires a single dataset to be enabled for the feature. You enable it by setting the context_studio_enabled flag on the dataset configuration.

Enable Context Studio for a Dataset

Use the script below to enable Context Studio for your dataset. Only one dataset can have Context Studio enabled at a time.

Prerequisites

  • Your dataset ID
  • An API access token (see API Authentication)

Python Script

1import json
2import requests
3
4DATASET_ID = '<your_dataset_id>'
5TOKEN = '<your_access_token>'
6
7response = requests.patch( # use .patch to update an existing config, .put for a new dataset config
8 url=f"https://api.coactive.ai/api/v0/datasets/{DATASET_ID}/config",
9 headers={
10 "accept": "application/json",
11 "Authorization": f"Bearer {TOKEN}",
12 },
13 json={
14 "context_studio_enabled": True
15 },
16 timeout=30.0,
17)
18print(f"{response.status_code=}, {json.dumps(response.json(), indent=2, sort_keys=True)}")

Request Details

ParameterDescription
DATASET_IDThe unique identifier of the dataset you want to enable for Context Studio
TOKENYour API access token
context_studio_enabledSet to True to enable Context Studio for the dataset

Use requests.patch() to update an existing dataset configuration, or requests.put() if configuring a new dataset.