GET
/
datasets
import honeyhive
from honeyhive.models import operations

s = honeyhive.HoneyHive(
    bearer_auth="<YOUR_BEARER_TOKEN_HERE>",
)


res = s.datasets.get_datasets(project='<value>', type=operations.Type.EVALUATION, dataset_id='<value>')

if res.object is not None:
    # handle response
    pass
{
  "testcases": [
    {
      "project": "New Project",
      "name": "test-dataset",
      "description": "A test dataset",
      "type": "evaluation",
      "datapoints": [
        "66369748b5773befbdc661e2"
      ],
      "num_points": 1,
      "linked_evals": [],
      "saved": false,
      "pipeline_type": "event",
      "created_at": "2024-05-04T20:15:04.124Z",
      "updated_at": "2024-05-04T20:15:04.124Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

project
string
required

Project Name associated with the datasets like New Project

type
enum<string>

Type of the dataset - "evaluation" or "fine-tuning"

Available options:
evaluation,
fine-tuning
dataset_id
string

Unique dataset ID for filtering specific dataset like 663876ec4611c47f4970f0c3

Response

200 - application/json
Successful response
testcases
object[]