Create Dataset from History
This endpoint allows you to create a dataset based on a historical search query. Search filters can include tags, metadata, and other criteria such as time range and scores. This dataset is then stored in a given workspace.
Example Code
Headers
API key to authorize the operation.
Body
The name of the dataset to be created.
The ID of the workspace under which the dataset will be stored.
The end time for the dataset's time range filter.
The maximum number of rows that will be included in the dataset.
A list of metadata key-value pairs to filter by.
A list of metadata key-value pairs to filter by.
Filters requests by the specified prompt template, defaulting to its latest version if no versions are specified.
The search query for filtering the data.
Score thresholds and conditions for filtering request logs.
Only include favorited requests.
The start time for the dataset's time range filter.
A list of tags to filter by. This will perform an AND operation.
A list of tags to filter by. This will perform an OR operation.
Was this page helpful?