diff --git a/docs/source/notebooks/datasets.ipynb b/docs/source/notebooks/datasets.ipynb new file mode 100644 index 00000000..dedc3d9c --- /dev/null +++ b/docs/source/notebooks/datasets.ipynb @@ -0,0 +1,197 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "033684fb-65b2-4586-a959-68c614741ca2", + "metadata": {}, + "source": [ + "# Datasets\n", + "\n", + "Here, we'll see how to work with LangSmith datasets." + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "6d272fbf-710e-4a49-a0da-67e010541905", + "metadata": { + "tags": [] + }, + "outputs": [], + "source": [ + "from langchain_benchmarks import clone_public_dataset, download_public_dataset" + ] + }, + { + "cell_type": "markdown", + "id": "18ee0f96-e5c4-4ae9-aebf-7d8b88c51662", + "metadata": {}, + "source": [ + "Let's first download the dataset to the local file system" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "58b94f6d-0c91-4361-9b22-f758ffaa150a", + "metadata": { + "tags": [] + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Fetching examples...\n" + ] + }, + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "5a2fad8c0c3549ec96a3b38fe8a002b0", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + " 0%| | 0/21 [00:00