Skip to content

Hi Coactive team!

This is a sample of what your docs might look like on Starport, based on your public docs.

Take a look! Ask AI, search, the MCP server, and Markdown copies all work.

Starport is a free and open-source docs framework based on Starlight and maintained by Promptless. Promptless is the AI agent that automatically updates your customer-facing docs.

Every annual Promptless plan comes with white-glove migration to Starport, where we migrate the content, tune the result with you, and you own the repository so you're never locked in.

Book a 15-minute walkthrough

Sample migration of Coactive docs to Starport, prepared by PromptlessBook 15-minute call

Query Engine

Coactive enhances Visual Analytics with a SQL interface designed to interact with your visual data, enabling users to perform advanced queries on dynamic tags, concepts, and visual metadata.

This document explains the SQL interface used to query various tables within the Coactive platform. By the end of this guide, your team will be able to leverage Coactive’s SQL capabilities to perform advanced analytics and unlock deeper insights into your visual data.

  1. Navigate to the Queries section from the platform;
  2. Select the Dataset you want to query and the embedding will automatically be selected.

Overview of the Coactive query engine

The first step when working with SQL is identifying which tables are available in the platform.

SHOW TABLES;

This will list all the tables accessible within your dataset, helping you identify the data resources you can work with.

Overview of the Coactive query engine

To understand the structure of a specific table, use the DESCRIBE statement.

DESCRIBE coactive_table;

This query will return all column names and their data types. For example, in coactive_table, you’ll find columns such as coactive_image_id, keyframe_index, path, concept columns, etc.

To measure the size of your dataset and estimate query performance, you can count the total number of rows in a table. For larger datasets, it’s often helpful to use a Common Table Expression (CTE) to structure your queries:

WITH row_count AS (
SELECT COUNT(*) AS total_rows
FROM coactive_table
)
SELECT
total_rows,
CONCAT('This table contains ', total_rows, ' rows.') AS summary
FROM row_count;
  • WITH row_count AS: Creates a temporary table to store the total row count for better readability.
  • CONCAT: Constructs a human-readable summary to provide clarity on the data volume.

Expected Output:

Overview of the Coactive query engine