Skip to main content
Use get_dql_schema to discover what tables and columns are available for a collection. This is useful for programmatically building queries.

Get Schema

Parameters

str
required
ID of the collection.

Returns

dict
Schema response containing tables and rubrics.

Example: Find Metadata Columns

Tables

JSON operators work directly on agent_runs.metadata_json, transcript_groups.metadata_json, judge_results.output, and judge_results.result_metadata (stored as jsonb). The transcripts.messages and transcripts.metadata_json columns are stored as bytea (UTF-8 JSON) — wrap them in convert_from(col, 'UTF8')::jsonb before applying ->, ->>, jsonb_array_length, etc.

agent_runs

transcripts

transcript_groups

judge_results