Laminar SQL Editor is a tool that allows you to write and execute SQL queries on your data stored at Laminar.
The main use cases for this are:
The SQL Editor is currently in beta. Some functionality may change. We value your feedback and suggestions.
Laminar provides some useful syntactic sugar over standard PostgreSQL so that you don’t
have to write explicit join
s and you don’t depend on our internal data model too much.
For detailed reference of the syntax, see the reference page.
SELECT
queries are allowed.spans
traces
evaluation_results
evaluation_scores
evaluations
datasets
dataset_datapoints
For detailed information about the tables and columns, see the reference page.
In any page in your dashboard, click the Terminal icon in the top right corner.
You will see a sheet with an SQL editor.
This query will return the input and output of the spans in the last 3 days.
For more examples, see the examples page.
Results are displayed in a table or raw JSON view.
Once you have selected the results you want to export, click the “Export to Dataset” button.
Choose the dataset you want to export to and map the columns to the dataset data
, metadata
, and target
fields.