You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor testset management documentation by removing description parameter and updating example outputs. This enhances clarity and consistency in the Jupyter notebook and markdown files related to testset creation.
This pattern shows how you can implement your own helper functions to filter and find testsets based on custom criteria. You can extend this to search by description, tags, or other metadata fields.
252
+
This pattern shows how you can implement your own helper functions to filter and find testsets based on custom criteria. You can extend this to search by tags or other metadata fields.
"source": "# Create a testset with simple data\ntestset = await ag.testsets.acreate(\n data=[\n {\"country\": \"Germany\", \"capital\": \"Berlin\"},\n {\"country\": \"France\", \"capital\": \"Paris\"},\n {\"country\": \"Spain\", \"capital\": \"Madrid\"},\n {\"country\": \"Italy\", \"capital\": \"Rome\"},\n {\"country\": \"Japan\", \"capital\": \"Tokyo\"},\n ],\n name=\"Country Capitals\",\n)\n\nprint(f\"✅ Created testset with ID: {testset.id}\")\nprint(f\" Name: {testset.name}\")\nprint(f\" Slug: {testset.slug}\")\n\n# Save the ID for later use\ntestset_id = testset.id"
126
94
},
127
95
{
128
96
"cell_type": "markdown",
129
97
"id": "852d13a8",
130
98
"metadata": {},
131
-
"source": [
132
-
"**Expected Output:**\n",
133
-
"```\n",
134
-
"✅ Created testset with ID: 01963413-3d39-7650-80ce-3ad5d688da6c\n",
135
-
" Name: Country Capitals\n",
136
-
" Slug: 3ad5d688da6c\n",
137
-
" Description: A testset of countries and their capitals for geography evaluation\n",
138
-
"```\n",
139
-
"\n",
140
-
"The `create_testset` function returns a `SimpleTestset` object with the following fields:\n",
141
-
"- `id`: Unique UUID for the testset\n",
142
-
"- `name`: The name you provided\n",
143
-
"- `slug`: A shortened identifier\n",
144
-
"- `description`: Your description\n",
145
-
"- `data`: The test data in a structured format\n"
146
-
]
99
+
"source": "**Expected Output:**\n```\n✅ Created testset with ID: 01963413-3d39-7650-80ce-3ad5d688da6c\n Name: Country Capitals\n Slug: 3ad5d688da6c\n```\n\nThe `acreate` function returns a `TestsetRevision` object with the following fields:\n- `id`: Unique UUID for the testset\n- `name`: The name you provided\n- `slug`: A shortened identifier\n- `data`: The test data in a structured format"
0 commit comments